[JAVA-2903] Add deploy-time check for valid git version Created: 05/Jul/18  Updated: 28/Oct/23  Resolved: 16/Aug/18

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

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

Issue Links:
Related
is related to JAVA-2902 Incorrect clientMetadata for 3.8.0 dr... Closed

 Description   

The deployment step in the build, where the jar files are copied to Sonatype, should first check that the build version (derived from git describe matches the project version (from build.gradle), e.g. if the project version is 3.8.0-beta3, then the build version must also be 3.8.0-beta3.

This will prevent accidentally deploying to Sonatype from a git tree that is not identical to the tagged version.



 Comments   
Comment by Githook User [ 17/Aug/18 ]

Author:

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

Message: Added publishArchives version checking task

JAVA-2903
Branch: 3.8.x
https://github.com/mongodb/mongo-java-driver/commit/93a5eb34ad0ee49d476d75028e6d0fa2dbdd54c8

Comment by Githook User [ 16/Aug/18 ]

Author:

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

Message: Added publishArchives version checking task

JAVA-2903
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/5599d32bb7b7c08c84e855b85ca4c3a9c9ffae0c

Comment by Ross Lawley [ 15/Aug/18 ]

PR: https://github.com/rozza/mongo-java-driver/pull/288

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