[GRADLE-2049] Tooling API: Provide support for 'allpojects' processing Created: 16/Jan/12 Updated: 04/Jan/13 Resolved: 16/Jan/12
|Resolution:||Not A Bug||Votes:||0|
#Change '$GRADLE_HOME/samples/java/multiproject/build.gradle' as follows
Run the program below:
Expected: get the dependencies correctly listed
|Comment by Adam Murdoch [ 16/Jan/12 ]|
This build will also fail if you run it with 'gradle' from the command-line. That is, it's not a problem with the tooling API. It's failing because allprojects is applied to the root project in addition to the subprojects, however the root project does not have the java plugin applied to it, and so does not have a testCompile configuration defined.
You might, for example, change the 'subprojects' to 'allprojects' in your example.
|Comment by Szczepan Faber [ 16/Jan/12 ]|
Though, the error message should say something like "xxx configuration not found. You forgot to declare it or you didn't apply the plugin that declares this configuration", etc. Denis, I closed this bug but let us know if there's something we're missing.
|Comment by Denis Zhdanov [ 16/Jan/12 ]|
Cool, sorry, forgot to check that from the command line.