Not able to use example build.gradle file with Java 8

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: gradle-jpi-plugin
    • None

      Downloaded the repository from https://github.com/jenkinsci/gradle-jpi-plugin and tried to use the build.gradle file in the "doc" folder (https://github.com/jenkinsci/gradle-jpi-plugin/tree/master/doc).

      $ ../gradlew build.gradle
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
      
      FAILURE: Build failed with an exception.
      
      * Where:
      Script 'https://raw.github.com/jenkinsci/gradle-jpi-plugin/master/install' line: 22
      
      * What went wrong:
      A problem occurred evaluating script.
      > Failed to apply plugin [id 'org.jenkins-ci.jpi']
         > Plugin with id 'org.jenkins-ci.jpi' not found.
      
      * 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: 4.355 secs
      

      Using Java 1.8.0_25 on Windows 7.

      Also tried to copy the build.gradle file from README.md (https://github.com/jenkinsci/gradle-jpi-plugin/blob/master/README.md)

      With the gradle wrapper from gradle-jpi-plugin:

      $ ../gradle-jpi-plugin-master/gradlew build
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
      :localizer
      :stapler
      :compileJava UP-TO-DATE
      :compileGroovy UP-TO-DATE
      :processResources UP-TO-DATE
      :classes UP-TO-DATE
      :javadoc UP-TO-DATE
      :javadocJar
      :jpi FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':jpi'.
      > java/util/HashMap$Entry
      
      * 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: 1 mins 13.436 secs
      

      Gradle wrapper version of the gradle-jpi-plugin:

      $ ../gradle-jpi-plugin-master/gradlew -version
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
      
      ------------------------------------------------------------
      Gradle 2.1
      ------------------------------------------------------------
      
      Build time:   2014-09-08 10:40:39 UTC
      Build number: none
      Revision:     e6cf70745ac11fa943e19294d19a2c527a669a53
      
      Groovy:       2.3.6
      Ant:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013
      JVM:          1.8.0_05 (Oracle Corporation 25.5-b02)
      OS:           Windows 7 6.1 amd64
      

            Assignee:
            Daniel Spilker
            Reporter:
            Hallvard Nygård
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: