You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some modules rely on the publish.gradle file to generate the Automatic Module Name in the manifest, based on the groupName and archivesBaseName of the project. However, the archivesName contains hyphens that are not valid according to the Java Language Specification.
As a result, all Automatic Module Names are now explicitly specified in each build.gradle file:
org.mongodb.mongodb-driver-kotlin-coroutine is renamed to org.mongodb.driver.kotlin.coroutine org.mongodb.mongodb-driver-kotlin-sync is renamed to org.mongodb.driver.kotlin.sync org.mongodb.bson-kotlin is renamed to org.mongodb.bson.kotlin org.mongodb.bson-kotlinx is renamed to org.mongodb.bson.kotlinx org.mongodb.mongo-scala-driver is renamed to org.mongodb.driver.scala org.mongodb.mongo-scala-bson is renamed to org.mongodb.bson.scala
Should we remove Automatic-Module-Name configuration from publish.gradle entirely since it's rarely correct (bson is the only module without a hyphen, and driver-legacy should not have a module name)?
Should we remove Automatic-Module-Name configuration from publish.gradle entirely since it's rarely correct (bson is the only module without a hyphen, and driver-legacy should not have a module name)?
Agree, I've removed the Automatic-Module-Name configuration from publish.gradle, as it indeed seems unnecessary. Thank you!
With explicit naming in each build.gradle, it might be worth considering adding a validation check in publish.gradle after projects evaluation stage to ensure Automatic-Module-Name's are correctly specified and not overlooked if we have added a new module.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description :
Some modules rely on the
publish.gradlefile to generate the Automatic Module Name in the manifest, based on thegroupNameandarchivesBaseNameof the project. However, thearchivesNamecontains hyphens that are not valid according to the Java Language Specification.As a result, all Automatic Module Names are now explicitly specified in each build.gradle file:
org.mongodb.mongodb-driver-kotlin-coroutineis renamed toorg.mongodb.driver.kotlin.coroutineorg.mongodb.mongodb-driver-kotlin-syncis renamed toorg.mongodb.driver.kotlin.syncorg.mongodb.bson-kotlinis renamed toorg.mongodb.bson.kotlinorg.mongodb.bson-kotlinxis renamed toorg.mongodb.bson.kotlinxorg.mongodb.mongo-scala-driveris renamed toorg.mongodb.driver.scalaorg.mongodb.mongo-scala-bsonis renamed toorg.mongodb.bson.scalaJAVA-5213
JAVA-5202