#1011618 mongo-java-driver: FTBFS with OpenJDK 17 due to unsupported javac source/target level 6

#1011618#5
Date:
2022-05-25 12:07:22 UTC
From:
To:
mongo-java-driver fails to build with OpenJDK 17 because it invokes javac
with the source/target options set to 6. Since OpenJDK 12 the minimum
version supported is 7.


  Compiling with JDK Java compiler API.
  error: Source option 6 is no longer supported. Use 7 or later.
  error: Target option 6 is no longer supported. Use 7 or later.
  Started Gradle worker daemon (0.454 secs) with fork options DaemonForkOptions{executable=/usr/lib/jvm/java-17-openjdk-amd64/bin/java, minHeapSize=null, maxHeapSize=null, jvmArgs=[], classpath=[], keepAliveM>
  This JVM does not support getting OS memory, so no OS memory status updates will be broadcast
  Initialized native services in: /<<PKGBUILDDIR>>/.gradle/native
  Compiling with JDK Java compiler API.
  :bson:compileJava FAILED
  :bson:compileJava (Thread[Task worker for ':' Thread 3,5,main]) completed. Took 1.532 secs.
  error: Source option 6 is no longer supported. Use 7 or later.
  error: Target option 6 is no longer supported. Use 7 or later.
  :mongo-java-driver:compileJava FAILED

#1011618#10
Date:
2022-05-31 14:52:19 UTC
From:
To:
The source/target level is now automatically adjusted by Gradle (since gradle/4.4.1-14)