[GRADLE-3068] Can't call evaluate() on Project instances returned from ProjectBuilder with gradle-1.12-rc-1 Created: 17/Apr/14  Updated: 21/Apr/14  Resolved: 17/Apr/14

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.12-rc-2

Type: Bug
Reporter: Gradle Forums Assignee: Radim Kubacki
Resolution: Fixed Votes: 0


 Description   

[Example project that demonstrates the issue]([1]https://github.com/stormbeta/gradle-r...)

Calling evaluate() on Project instances built using ProjectBuilder causes a NoClassDefFound exception inside Gradle:

java.lang.NoClassDefFoundError: org/gradle/tooling/internal/impl/DefaultGradleProject
at org.gradle.plugins.ide.internal.tooling.ToolingRegistrationAction.execute(ToolingRegistrationAction.java:29)
at org.gradle.plugins.ide.internal.tooling.ToolingRegistrationAction.execute(ToolingRegistrationAction.java:24)
at org.gradle.configuration.project.PluginsProjectConfigureActions.execute(PluginsProjectConfigureActions.java:31)
at org.gradle.configuration.project.PluginsProjectConfigureActions.execute(PluginsProjectConfigureActions.java:22)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:493)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:80)
at BreakingTest.can evaluate ProjectBuilder(BreakingTest.groovy:15)
Caused by: java.lang.ClassNotFoundException: org.gradle.tooling.internal.impl.DefaultGradleProject
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 9 more

If I switch back to gradle-1.11 there's no issue.
----------------------------------------------------------------------------------------
[1] https://github.com/stormbeta/gradle-regression


Generated at Wed Jun 30 12:39:03 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.