[JAVA-2991] Allow driver to be built with Java 11 Created: 26/Sep/18  Updated: 28/Oct/23  Resolved: 27/Nov/18

Status: Closed
Project: Java Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.9.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently the driver can not be build with Java 11 due to a limitation of Gradle 4.5.  

 
```FAILURE: Build failed with an exception.
 
* What went wrong:
Could not determine java version from '11'.```

 

Determine if a later version of Gradle enables Java 11 builds, and if so upgrade to it if there are no other issues.



 Comments   
Comment by Farès Hassak [ 27/Nov/18 ]

I'm also able to build with Java 11. Fixed by commit d076619

Comment by Jeffrey Yemin [ 27/Nov/18 ]

Farès Hassak I'm able to build with Java 11 now.  Can you confirm on your end?

Comment by Farès Hassak [ 29/Sep/18 ]

Now we can build with java 11.

Check if issue exists with release plugin like JAVA-2844,

New warning message :

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
 Creating a custom task named 'wrapper' has been deprecated. This is scheduled to be removed in Gradle 5.0. You can configure the existing task using the 'wrapper { }' syntax or create your custom task under a different name.
 at /mongo-java-driver/build.gradle:320

warning: [options] source value 6 is obsolete and will be removed in a future release
 warning: [options] target value 1.6 is obsolete and will be removed in a future release

javadoc: warning - You have specified the HTML version as HTML 4.01 by using the -html4 option.
 The default is currently HTML5 and the support for HTML 4.01 will be removed
 in a future release. To suppress this warning, please ensure that any HTML constructs
 in your comments are valid in HTML5, and remove the -html4 option.

We can create a task for migrating javadoc from html4 to html5. 

Comment by Farès Hassak [ 27/Sep/18 ]

Same as https://jira.mongodb.org/browse/JAVA-2844

Upgrade  Gradle to 4.10 : https://docs.gradle.org/4.10/release-notes.html (

  • [#5791 - Upgrade to ASM 6.2 (support java 11)

and spotbug to 3.1.7 : https://github.com/spotbugs/spotbugs/blob/3.1.7/CHANGELOG.md

Generated at Thu Feb 08 08:58:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.