ajoberstar / reckon

Infer a project's version from your Git repository.
Apache License 2.0
184 stars 28 forks source link

gradlew build create a scope version issue - How to fix it? #186

Closed balakmvertexinc closed 1 year ago

balakmvertexinc commented 1 year ago

We are trying to increment a major version, after merging a feature branch into main. However something is going wrong. Let us know how to resolve.

./gradlew reckonTagCreate -Preckon.scope=major -Preckon.stage=milestone

Reckoned version: 3.0.0-milestone.1

./gradlew build FAILURE: Build failed with an exception.

balakmvertexinc commented 1 year ago

git tag --list 0.1.0 0.1.0-milestone.10 0.1.0-milestone.11 0.1.0-milestone.12 0.1.0-milestone.13 0.1.0-milestone.14 0.1.0-milestone.15 0.1.0-milestone.16 0.1.0-milestone.17 0.1.0-milestone.18 0.1.0-milestone.19 0.1.0-milestone.2 0.1.0-milestone.20 0.1.0-milestone.21 0.1.0-milestone.22 0.1.0-milestone.23 0.1.0-milestone.24 0.1.0-milestone.25 0.1.0-milestone.26 0.1.0-milestone.3 0.1.0-milestone.4 0.1.0-milestone.5 0.1.0-milestone.6 0.1.0-milestone.7 0.1.0-milestone.8 0.1.0-milestone.9 0.1.0-rc.1 0.1.0-rc.2 1.0.0 1.1.0-milestone.1 1.1.0-milestone.2 1.1.0-milestone.3 1.1.0-milestone.4 1.1.0-milestone.5 1.1.0-milestone.6 1.1.0-milestone.7 1.1.0-milestone.8 2.0.0 2.0.0-rc.1 2.0.0-rc.2 3.0.0-milestone.1 CCB-8721

balakmvertexinc commented 1 year ago

git log --graph --oneline --decorate main

* f662c79 (HEAD -> main, tag: 3.0.0-milestone.1, origin/main, origin/HEAD) added schema and WSDL publishing. Updated to hsql to new s3 bucket (#31)
* cfbf40a EDGEA-209 SR 9.0.10.64 updates and addition of etlStoreJournalExport.zip (#18)
* fad29f0 edgea-230-updated jf cp command (#21)
* e02001b (tag: 1.0.0, tag: 0.1.0) Update publish-image-prod.yaml
* c83f4fc (tag: 0.1.0-rc.2) Edgea 230 - Validation  (#19)
* b1ecd12 (tag: 0.1.0-rc.1) update Workflow (#16)
* 5692ec1 added additional drivers to support SYNC service (#17)
* 6430fb0 Ite 531 test coverage (#14)
* f5b56e8 ITE-530 Setup PR check. Fixed sonarq critical errors. Updated README. (#12)
* 22f5474 (tag: 0.1.0-milestone.24) Ite 450 (#7)
* 4e7d06f ite-450 REST API enabled (#6)
*   511eea5 (tag: 0.1.0-milestone.23) Merge pull request #5 from vertexinc/ite-500
|\  
| * ba66f23 updated build.gradle to include oseries-cert-validation:9.0.6.0.2
|/  
*   c3b879e (tag: 0.1.0-milestone.22) Merge pull request #4 from vertexinc/ite-229
|\  
| * 8030155 code changed to send hostname and instancename from environment value
* | 18a9e8d Merge pull request #3 from vertexinc/ite-200
|\| 
| * 31f0347 (tag: 0.1.0-milestone.21, tag: 0.1.0-milestone.20) updated to docrepo url 
| * 69f44f7 updated to add container-image-id and container-image-name, error check at DocRepoAPI
|/  
*   6647edc (tag: 0.1.0-milestone.19) Merge pull request #2 from vertexinc/ITE-162-TelemetryScheduler
|\  
| * 3ad17d2 added ConditionalOnExpression & cleaned up
| * 991c9bc CR comments
| * 3b6fe52 ITE-162 Scheduled to push telemetry data
|/  
* c7e1b0a (tag: 0.1.0-milestone.18) updated code integrated sonarqube push for every build
* b39f56e updated code to start WTJ-ITI-DocRepo only if journal-log-automation-is-enabled
* 7f1e965 (tag: 0.1.0-milestone.17) updated gitaction flow to use self-hosted standard runners
*   c3865c3 (tag: 0.1.0-milestone.16) Merge pull request #1 f
|\  
| * 96118eb integrated code with docRepo Repository
| * 7427983 integreated with iti
|/  
* 864c088 (tag: 0.1.0-milestone.15) Fix for ITE-117
* f8dfc20 (tag: 0.1.0-milestone.14) updated code to use only PUTLC325 runner
* c3fb209 (tag: 0.1.0-milestone.13) removed license.dat file
* bb5f41e (tag: 0.1.0-milestone.12) updated to oseries version 9.0.4.0.147, 
* 78891f0 (tag: 0.1.0-milestone.11) reversed not creating the zip artifact
* e246e41 reversed not creating the zip artifact
* 1360342 (tag: 0.1.0-milestone.10) changed checkout to be deep copy.
* 25f725a (tag: 0.1.0-milestone.9) added check dependency on sonarqube
* 22d0c1c (tag: 0.1.0-milestone.8) added check dependency on sonarqube
* bb9cc49 (tag: 0.1.0-milestone.7) added check dependency on sonarqube
* 5d94ea7 (tag: 0.1.0-milestone.6) added check dependency on sonarqube
* dfcd97e (tag: 0.1.0-milestone.5) added check dependency on sonarqube
* e4d8e20 added check dependency on sonarqube
* 3c82f5c adding vertex sonarqube integration
* f7881ec (tag: 0.1.0-milestone.4) adding jar artifact, I hope
* 62ce4eb (tag: 0.1.0-milestone.3) Changed artifact to zip archive including jar and vertexRoot
* 0b35b17 (tag: 0.1.0-milestone.2) Changed artifact to zip archive including jar and vertexRoot
* 39f28bb Changed artifact to zip archive including jar and vertexRoot
* 8b14c73 Adding github action build and publish process
* ee6da41 Adding github action build and publish process
* 126cfd7 Attempt to fix test. Fixes clean build target by avoiding the test.
* e68339a Initial Commit
balakmvertexinc commented 1 year ago

reckon version 0.13.0

ajoberstar commented 1 year ago

It looks like the issue is that 2.0.0 isn't in the history of the commit you want to make 3.0.0-milestone.1. Reckon presumes that a v3 would be built on top of the code in v2.