Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions hexagonal-spring-rules/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ def resolveVersion = {
def proc = cmd.execute()
proc.waitForOrKill(10_000)
def tag = proc.text.readLines()
.findAll { it.startsWith('architecture-validator-hexagonal-spring-rules-v') || it.startsWith('spring-rules-v') }
.findAll { it.startsWith('hexagonal-spring-rules-v') }
.sort()
.last()

if (tag) {
def v = tag
.replaceFirst(/^architecture-validator-hexagonal-spring-rules-v/, '')
.replaceFirst(/^spring-rules-v/, '')
.replaceFirst(/^hexagonal-spring-rules-v/, '')
logger.lifecycle('[hexagonal-spring-rules] version from GitHub release: ' + v)
return v
}
Expand Down
8 changes: 8 additions & 0 deletions hexagonal-spring-rules/release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

module.exports = {
branches: ["main"],
// Scoped to this module's own tag namespace so its version history is independent of the
// other modules in this repo. Previously this had no explicit tagFormat, which meant it fell
// back to semantic-release's default "v${version}" - the same format sedr-library used
// explicitly, so the two projects' tags collided and their version counters became
// interleaved. A "hexagonal-spring-rules-v0.5.0" tag is seeded on the commit that was the
// last real release under the old shared scheme, so numbering continues from there instead
// of restarting.
tagFormat: "hexagonal-spring-rules-v${version}",
plugins: [
["@semantic-release/commit-analyzer", {
preset: 'angular',
Expand Down
Loading