[JAVA-4876] Update the build to modern Gradle Created: 09/Feb/23  Updated: 16/Jan/24

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

Type: Epic Priority: Unknown
Reporter: Ross Lawley Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: FY2024Q2-candidate, roadmap, tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-4581 Update gradle build Closed
Related
related to JAVA-5291 Use Gradle version catalogs to declar... Backlog
related to JAVA-5136 Move the tests from the JAVA_5109 bra... Backlog
related to JAVA-5109 Try creating tests that verify interr... Closed
Quarter: FY24Q2, FY24Q4
Documentation Changes Summary: 1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?
Scope Cost Estimate: 0
Cost to Date: 0
Final Cost Estimate: 0
Cost Threshold %: 100

 Description   

The current build is confusing and hard to understand.

This adds risk when changing the build and for managing it going forward.

The core issues are:

  • Centralized configuration in the root buiid.gradle, making changes difficult to understand
  • Script plugins in the gradle directory
  • Non standard directory layout
  • Non standard dependencies library version information

Recommend updating to use:



 Comments   
Comment by Valentin Kavalenka [ 25/Aug/23 ]

A comment with details on my attempt to upgrade to Gradle 8.3 in JAVA-5109: https://jira.mongodb.org/browse/JAVA-5109?focusedCommentId=5657035&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-5657035

Comment by Ross Lawley [ 25/Aug/23 ]

Updating to Gradle 8.3 to add Java support hits an issue with the optional plugin.

It should be noted that the optional plugin should be removed in favour of features: see https://blog.gradle.org/optional-dependencies

Comment by Ross Lawley [ 10/Mar/23 ]

ashni.mehta@mongodb.com - good spot I tried and failed to see if we already had a ticket. Have marked JAVA-4581 as a dupe of this ticket as we have more information here.

Comment by Ashni Mehta [ 10/Mar/23 ]

Hey ross@mongodb.com - is this related to https://jira.mongodb.org/browse/JAVA-4581?

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