-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for automatically generating SemVer branches (#5000)
* Added support for automatically generating SemVer branches * Revert a temporary snapshot version in root pom.xml * Fix a broken UI integration test
- Loading branch information
1 parent
930434e
commit 82b076a
Showing
18 changed files
with
337 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
app/src/main/java/io/apicurio/registry/semver/SemVerConfigProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.apicurio.registry.semver; | ||
|
||
import io.apicurio.common.apps.config.Dynamic; | ||
import io.apicurio.common.apps.config.Info; | ||
import jakarta.inject.Singleton; | ||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
|
||
import java.util.function.Supplier; | ||
|
||
@Singleton | ||
public class SemVerConfigProperties { | ||
|
||
@Dynamic(label = "Ensure all version numbers are 'semver' compatible", description = "When enabled, validate that all artifact versions conform to Semantic Versioning 2 format (https://semver.org).") | ||
@ConfigProperty(name = "apicurio.semver.validation.enabled", defaultValue = "false") | ||
@Info(category = "semver", description = "Validate that all artifact versions conform to Semantic Versioning 2 format (https://semver.org).", availableSince = "3.0.0") | ||
public Supplier<Boolean> validationEnabled; | ||
|
||
@Dynamic(label = "Automatically create semver branches", description = "When enabled, automatically create or update branches for major ('A.x') and minor ('A.B.x') artifact versions.") | ||
@ConfigProperty(name = "apicurio.semver.branching.enabled", defaultValue = "false") | ||
@Info(category = "semver", description = "Automatically create or update branches for major ('A.x') and minor ('A.B.x') artifact versions.", availableSince = "3.0.0") | ||
public Supplier<Boolean> branchingEnabled; | ||
|
||
@Dynamic(label = "Coerce invalid semver versions", description = "When enabled and automatically creating semver branches, invalid versions will be coerced to Semantic Versioning 2 format (https://semver.org) if possible.", requires = "apicurio.semver.branching.enabled=true") | ||
@ConfigProperty(name = "apicurio.semver.branching.coerce", defaultValue = "false") | ||
@Info(category = "semver", description = "If true, invalid versions will be coerced to Semantic Versioning 2 format (https://semver.org) if possible.", availableSince = "3.0.0") | ||
public Supplier<Boolean> coerceInvalidVersions; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.