Error when running gradle setupCIWorkspace
lesliev opened this issue · 4 comments
I think I've done everything correctly.
My Java:
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
I'm on Ubuntu 14.04.
➜ Equivalent-Exchange-3 git:(master) cat build.properties
#
#Sat Dec 28 00:14:08 EST 2013
minecraft_version=1.6.4
forge_version=9.11.1.964
mod_version=0.1
When I run setupCIWorkspace:
➜ Equivalent-Exchange-3 git:(master) gradle setupCIWorkspace
FAILURE: Build failed with an exception.
* Where:
Build file '/home/leslie/dev/git/external/Equivalent-Exchange-3/build.gradle' line: 18
* What went wrong:
A problem occurred evaluating root project 'Equivalent-Exchange-3'.
> Could not generate a proxy class for class net.minecraftforge.gradle.user.patch.UserPatchExtension.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.441 secs
➜ Equivalent-Exchange-3 git:(master) gradle --version
------------------------------------------------------------
Gradle 1.4
------------------------------------------------------------
Gradle build time: Monday, 9 September 2013 8:44:25 PM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.3 compiled on April 8 2014
Ivy: non official version
JVM: 1.7.0_55 (Oracle Corporation 24.55-b03)
OS: Linux 3.13.0-24-generic amd64
When I run it with a stacktrace, these are the top lines:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'Equivalent-Exchange-3'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:127)
at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
at org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:43)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:466)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:77)
at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:23)
at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:21)
at org.gradle.api.internal.Actions$CompositeAction.execute(Actions.java:78)
at org.gradle.api.internal.Actions$TransformingActionAdapter.execute(Actions.java:130)
at org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:442)
at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:437)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:40)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
Let me know if any of that means anything to you or if you need some other info.
Thanks!
See #672
The README says "gradle setupCIWorkspace".
In any case, setupCiWorkspace produces the same error:
Could not generate a proxy class for class net.minecraftforge.gradle.user.patch.UserPatchExtension.
I don't know what that means. Does it need to generate proxy classes?
Reading the instructions again a few times, the only thing that might be different is that I'm using Oracle Java not OpenJdk. That shouldn't make a difference I don't think?
Line 18 of /home/leslie/dev/git/external/Equivalent-Exchange-3/build.gradle says:
apply plugin: 'forge'
The full trace:
22:19:12.880 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
22:19:12.881 [ERROR] [org.gradle.BuildExceptionReporter]
22:19:12.881 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
22:19:12.882 [ERROR] [org.gradle.BuildExceptionReporter] Build file '/home/leslie/dev/git/external/Equivalent-Exchange-3/build.gradle' line: 18
22:19:12.882 [ERROR] [org.gradle.BuildExceptionReporter]
22:19:12.882 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
22:19:12.882 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'Equivalent-Exchange-3'.
22:19:12.883 [ERROR] [org.gradle.BuildExceptionReporter] > Could not generate a proxy class for class net.minecraftforge.gradle.user.patch.UserPatchExtension.
22:19:12.885 [ERROR] [org.gradle.BuildExceptionReporter]
22:19:12.885 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
22:19:12.886 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'Equivalent-Exchange-3'.
22:19:12.886 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
22:19:12.887 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:127)
22:19:12.887 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
22:19:12.887 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:43)
22:19:12.888 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:466)
22:19:12.888 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:77)
22:19:12.888 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:23)
22:19:12.889 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:21)
22:19:12.889 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.Actions$CompositeAction.execute(Actions.java:78)
22:19:12.889 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.Actions$TransformingActionAdapter.execute(Actions.java:130)
22:19:12.890 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:442)
22:19:12.890 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:437)
22:19:12.890 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:40)
22:19:12.891 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
22:19:12.891 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
22:19:12.891 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
22:19:12.892 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:38)
22:19:12.892 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:39)
22:19:12.892 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:25)
22:19:12.893 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
22:19:12.893 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
22:19:12.893 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
22:19:12.894 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
22:19:12.894 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
22:19:12.894 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
22:19:12.895 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
22:19:12.895 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
22:19:12.895 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:48)
22:19:12.896 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
22:19:12.896 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:39)
22:19:12.896 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
22:19:12.897 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
22:19:12.897 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:26)
22:19:12.897 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.GradleException: Could not generate a proxy class for class net.minecraftforge.gradle.user.patch.UserPatchExtension.
22:19:12.898 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractClassGenerator.generate(AbstractClassGenerator.java:201)
22:19:12.898 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.ClassGeneratorBackedInstantiator.newInstance(ClassGeneratorBackedInstantiator.java:36)
22:19:12.899 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultConvention.create(DefaultConvention.java:114)
22:19:12.899 [ERROR] [org.gradle.BuildExceptionReporter] at net.minecraftforge.gradle.common.BasePlugin.apply(BasePlugin.java:84)
22:19:12.899 [ERROR] [org.gradle.BuildExceptionReporter] at net.minecraftforge.gradle.common.BasePlugin.apply(BasePlugin.java:35)
22:19:12.900 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultProjectsPluginContainer.providePlugin(DefaultProjectsPluginContainer.java:107)
22:19:12.900 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultProjectsPluginContainer.addPluginInternal(DefaultProjectsPluginContainer.java:71)
22:19:12.901 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultProjectsPluginContainer.apply(DefaultProjectsPluginContainer.java:37)
22:19:12.901 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyPlugin(DefaultObjectConfigurationAction.java:101)
22:19:12.902 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:32)
22:19:12.902 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:72)
22:19:12.902 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:114)
22:19:12.903 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.apply(AbstractProject.java:854)
22:19:12.903 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.Project$apply.call(Unknown Source)
22:19:12.903 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.groovy:34)
22:19:12.904 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.Script$apply.callCurrent(Unknown Source)
22:19:12.904 [ERROR] [org.gradle.BuildExceptionReporter] at build_6ar64j3udhfbedelto5iqk4nl5.run(/home/leslie/dev/git/external/Equivalent-Exchange-3/build.gradle:18)
22:19:12.904 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
22:19:12.904 [ERROR] [org.gradle.BuildExceptionReporter] ... 32 more
22:19:12.905 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: org/gradle/api/ProjectConfigurationException
22:19:12.905 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractClassGenerator.generate(AbstractClassGenerator.java:100)
22:19:12.905 [ERROR] [org.gradle.BuildExceptionReporter] ... 49 more
22:19:12.905 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: org.gradle.api.ProjectConfigurationException
22:19:12.906 [ERROR] [org.gradle.BuildExceptionReporter] ... 50 more
Fixed it.
Even the lastest Ubuntu 14.04 ships with a really old Gradle, v1.4. These errors seem to happen in 1.4, 1.5 and 1.7.
I added the PPA here: https://launchpad.net/~cwchien/+archive/gradle
...and installed Gradle 1.12.
That compiled everything fine.
I'd update the README but the other PR is 5 days old already.