Hi,

I am using gradle to build my project for which I am also developing a
plugin. I started to use buildSrc as it seems to be the easiest approach.
The plugin has external jar dependencies and also depends on the 'root'
project classes. It took me some time to figure out that buildSrc can have
its own build.gradle file to specify the external dependencies because I was
assuming that the compile dependencies of the root project are also
available for buildSrc:compileGroovy. I think this information should be
added to the user guide.

But now I am facing the problem that my plugin also uses the class from the
root project. This means that I would like to add the
rootProjectDir/build/classes/main to the classpath of the build script. Is
this possible?

In fact it seems to me that buildSrc behaves as a subproject, e.g. there is
:buildSrc:compileJava task, but I it is not listed by the projects task.
Also I guess it is not good practice to use multi-project build support. I
would appreciate some clarification on the relationship between buildSrc and
subproject.

Thanks in advance and also for this great tool :) !

Kovax

Reply via email to