[JAVA-4357] Update Gradle to use Tool chains Created: 19/Oct/21  Updated: 28/Oct/23  Resolved: 15/Nov/21

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

Type: Improvement Priority: Unknown
Reporter: Esha Bhargava Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: size-small
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to JAVA-4460 Publishing archives requires all util... Closed
Quarter: FY22Q4

 Description   

Which will give us Java 17 support



 Comments   
Comment by Githook User [ 15/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Build: Split util project

So can compile spock annotations with the same java version as the tests
using it. The javadoc taglets are now only required for the javadoc
task.

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/cb6e96bde6d30e5a1637bda4f2c77a57e8ade5b5

Comment by Githook User [ 15/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Evergreen: Support new java toolchain feature

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b72005e10215445248a5fdbdd551c10c5f904f3f

Comment by Githook User [ 15/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Build: Updated configs

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8c00b12dc995a04aabf45bbd37e847a3605ef6bf

Comment by Githook User [ 15/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Build: Added java toolchain to build.gradle

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c88cf6ca45dd62e0a06cd121205d985cea178129

Comment by Githook User [ 15/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Build: Update gradle wrapper to 6.9.1

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/bd2e877b76c93a5b0ca5b79826095c19a9842633

Comment by Jeffrey Yemin [ 11/Nov/21 ]

Commits have been reverted because .class files had major version 55 (Java 11) after these changes, instead of the expected 52 (Java 8).

a188380 Revert "Evergreen: Fix setting JAVA_HOME setting" - Jeff Yemin
97e021b Revert "Evergreen: Fix sourcing javaConfig.bash for serverless" - Jeff Yemin
9d5e581 Revert "Evergreen: Fix sourcing javaConfig.bash" - Jeff Yemin
c142cec Revert "Evergreen: Support new java toolchain feature" - Jeff Yemin
7399618 Revert "Build: Updated configs" - Jeff Yemin
7ebe71c Revert "Build: Added java toolchain to build.gradle" - Jeff Yemin
8f94793 Revert "Build: Update gradle wrapper to 6.9.1" - Jeff Yemin

Comment by Githook User [ 10/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Evergreen: Fix setting JAVA_HOME setting

run-mongodb-aws-ecs-test.sh can install jdk, so don't set the
JAVA_HOME if the expected location doesn't exist.

JAVA-4401 JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/5f2aa6c212f76d65cd705a80102d4948b4ce2aff

Comment by Githook User [ 09/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Evergreen: Fix sourcing javaConfig.bash for serverless

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/94551c74e952af7ce3bb90cfcda33b327a9e65cb

Comment by Githook User [ 09/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Evergreen: Fix sourcing javaConfig.bash

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/59dc792205f567f93ca15b76167afdad2b2a67bd

Comment by Githook User [ 08/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Evergreen: Support new java toolchain feature

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/6ba562e7815286098d012dfb0b641ad042dcf43f

Comment by Githook User [ 08/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Build: Updated configs

Updated checkstyle, spock and spotbugs versions

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/cc061eef07bc54c5bd4b64b0be424c870b76d87a

Comment by Githook User [ 08/Nov/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Build: Added java toolchain to build.gradle

JAVA-4357
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1fe07610a34d2e4a2e533698bbbdb8a08f801c9f

Comment by Jeffrey Yemin [ 05/Nov/21 ]

Blocked on

Comment by Jeffrey Yemin [ 05/Nov/21 ]

Currently our use of Stubs in Spock tests causes the driver-core:compileTestGroovy stage to fail. This should become unblocked once Groovy 4 is released and a Spock version supporting groovy 4 is released.

So we're effectively blocked from using toolchains until then?

Comment by Ross Lawley [ 05/Nov/21 ]

Code: https://github.com/mongodb/mongo-java-driver/compare/master...rozza:JAVA-4357

Currently our use of Stubs in Spock tests causes the driver-core:compileTestGroovy stage to fail. This should become unblocked once Groovy 4 is released and a Spock version supporting groovy 4 is released.

Another frustration with using Gradle wrapper 6.9.1 is you cannot use Java 17 as the local Java version unlike when using Gradle wrapper 7.2

Comment by Jeffrey Yemin [ 29/Oct/21 ]

This was in progress, but I couldn't figure out how to change one of the deprecated things into a non-deprecated equivalent. Moving back to scheduled

Generated at Thu Feb 08 09:01:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.