On Thu, Dec 17, 2009 at 11:43 AM, tinca <[email protected]> wrote:

>
> Hello,
>
> Another attempt.
> Plugin sources copied into buildSrc dir of the project that want to use it,
> the project was attempted to build. Plugin was automatically built, but the
> project fails with the same as above:
> "Could not find property 'org' on root project ..."
>
> Now this seems to be really strange. gradle handles buildSrc without
> problem. It produces the plugin jar. Expectedly it finds and puts it on the
> root project's classpath (at least no reason to think otherwise). The
> target
> project's build however can not see it.
>

Have you checked the content of the jar. To clarify things you could add the
jar explicitly to the buildscript classpath of the build.gradle.

Which version of Gradle are you using?


>
> Could someone show/tell me a working plugin example that implements Plugin
> java class and distributed as jar for other projects?
>

I do this very often.


> Is there a way to see what classpath is seen by gradle when starting
> execution of a script?
>

At the beginning of your script you could write:

gradle.buildScriptClassLoader.getURLs().each { println it }

- Hans


>
> Thanks!
> Zsolt
>
> --
> View this message in context:
> http://old.nabble.com/custom-plugin%27s-class-is-not-found-tp26801277p26826158.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to