The build script set the project version at the beginning using getGitVersion(). This one is used in the manifest.
The generated jar names use getReleaseVersion() which has the abbreviated version to keep the names as they were before.
Examples :
Building a "dirty" driver locally:
getGitVersion => 1.0.3-54-g472accaae-dirty
getReleaseVersion => 1.0.3-54-SNAPSHOT
Driver name = mongodb-jdbc-1.0.3-SNAPSHOT.jar
Driver version = 1.0.3-54-g472accaae-dirty
Building a tagged driver (expected behavior 😉):
getGitVersion => 1.1.1
getReleaseVersion => 1.1.1
Driver name = mongodb-jdbc-1.1.1.jar
Driver version = 1.1.1
The build script set the project version at the beginning using getGitVersion(). This one is used in the manifest. The generated jar names use getReleaseVersion() which has the abbreviated version to keep the names as they were before.
Examples :
Building a "dirty" driver locally: getGitVersion => 1.0.3-54-g472accaae-dirty getReleaseVersion => 1.0.3-54-SNAPSHOT Driver name = mongodb-jdbc-1.0.3-SNAPSHOT.jar Driver version = 1.0.3-54-g472accaae-dirty
Building a tagged driver (expected behavior 😉): getGitVersion => 1.1.1 getReleaseVersion => 1.1.1 Driver name = mongodb-jdbc-1.1.1.jar Driver version = 1.1.1