Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19418

Fix gradle build with JDK 17

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta2
    • build

    Description

      Running ./gradlew check with JAVA_HOME set to JDK 17, build fails with the following message:

      Could not determine the dependencies of task ':ignite-arch-test:checkstyleTest'.
      > Could not resolve all task dependencies for configuration ':ignite-arch-test:testCompileClasspath'.
         > Could not resolve project :packaging.
           Required by:
               project :ignite-arch-test
            > No matching variant of project :packaging was found. The consumer was configured to find an API of a library compatible with Java 11, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally but:
                - Variant 'apiElements' capability org.apache.ignite:packaging:3.0.0-SNAPSHOT declares an API of a library, packaged as a jar, and its dependencies declared externally:
                    - Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11
      

      Attachments

        Issue Links

          Activity

            People

              vpakhnushev Vadim Pakhnushev
              vpakhnushev Vadim Pakhnushev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m