Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2786

Upgrade Gradle to 4.5.1

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.7.0
    • None
    • Build
    • None
    • Windows 10
      Oracle JDK 9.0.4

    Description

      Hello,

      Gradle failed with Oracle JDK 9.
      See https://discuss.gradle.org/t/could-not-determine-java-version-from-9-0-1/24457

      I can reproduce this error with Gradle 4.0.1:

      D:\github\mongo-java-driver (master)
      λ gradlew -v
       
      FAILURE: Build failed with an exception.
       
      * What went wrong:
      Could not determine java version from '9.0.4'.
       
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      

      And it's better with Gradle 4.5.1:

      D:\github\mongo-java-driver (build-with-java-9)
      λ gradlew -v
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/C:/Users/f.hassak/.gradle/wrapper/dists/gradle-4.5.1-bin/a5vbgfvpwtoqz8v2cdivxz28k/gradle-4.5.1/lib/groovy-all-2.4.12.jar) to method java.lang.Object.finalize()
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
       
      ------------------------------------------------------------
      Gradle 4.5.1
      ------------------------------------------------------------
       
      Build time:   2018-02-05 13:22:49 UTC
      Revision:     37007e1c012001ff09973e0bd095139239ecd3b3
       
      Groovy:       2.4.12
      Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
      JVM:          9.0.4 (Oracle Corporation 9.0.4+11)
      OS:           Windows 10 10.0 amd64
      
      

      For warning, see

      https://github.com/gradle/gradle/issues/2995,
      https://issues.apache.org/jira/browse/GROOVY-8339

      Compile is success (but gradlew check failed...)

      gradlew compileJava
       
      BUILD SUCCESSFUL in 2s
      

      Farès

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            fares.hassak@gmail.com Farès Hassak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: