Commit 53204f2
committed
ci(publish): abort snapshot publish unless the POM version is a -SNAPSHOT
Add a guard step to the publish-snapshot job that resolves project.version via
`mvn help:evaluate` and fails the job unless the version ends in -SNAPSHOT.
central-publishing routes purely by version: a release version (no -SNAPSHOT)
deployed through the snapshot path lands in the permanent Maven Central release
store, not the snapshot store. This guard stops that from ever happening from the
snapshot job; releases continue to go through the v* tag path.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JGZdUCy6YnTzKSJKA6B6KZ1 parent cc41470 commit 53204f2
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
909 | 918 | | |
910 | 919 | | |
911 | 920 | | |
| |||
0 commit comments