Skip to content

Commit

Permalink
Fix an issue where version modifier is unused (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcrawford-figure authored Jan 31, 2023
1 parent ee0620b commit 95c0ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/figure/gradle/semver/SemverExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ abstract class SemverExtension @Inject constructor(objects: ObjectFactory, priva

git.hasBranch(GitRef.Branch.DEVELOP.name).isNotEmpty() -> {
log.semverInfo("Enabling Git Flow mode")
initialConfig.withBranchMatchingConfig(flowVersionCalculatorStrategy { nextPatch() })
initialConfig.withBranchMatchingConfig(flowVersionCalculatorStrategy(versionModifier.get()))
}

else -> {
log.semverInfo("Enabling Flat mode")
initialConfig.withBranchMatchingConfig(flatVersionCalculatorStrategy { nextPatch() })
initialConfig.withBranchMatchingConfig(flatVersionCalculatorStrategy(versionModifier.get()))
}
}
}
Expand Down

0 comments on commit 95c0ad5

Please sign in to comment.