Gradle build fails with Could not initialize class hudson.plugins.gradle.Messages

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Blocker
    • Component/s: gradle-plugin
    • Environment:

      When using a gradle build step the job fails after running the gradle build, as follows:

      :clean
      :compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
      1 warning
      
      :processResources UP-TO-DATE
      :classes
      :war
      :assemble
      :compileTestJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
      1 warning
      :processTestResources
      :testClasses
      :test
      :check
      :build
      
      BUILD SUCCESSFUL
      
      Total time: 47.208 secs
      FATAL: Could not initialize class hudson.plugins.gradle.Messages
      java.lang.NoClassDefFoundError: Could not initialize class hudson.plugins.gradle.Messages
      	at hudson.plugins.gradle.Gradle$DescriptorImpl.getDisplayName(Gradle.java:388)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.getBuildStepName(AbstractBuild.java:818)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:796)
      	at hudson.model.Build$BuildExecution.build(Build.java:205)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1720)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Archiving artifacts
      Recording test results
      Notifying upstream projects of job completion
      Finished: FAILURE
      

            Assignee:
            Stefan Wolf
            Reporter:
            Sarah Sloan
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: