Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Add missing value to the set of possible value mappigns for PREFLGIHT…
Browse files Browse the repository at this point in the history
… release (#43)
  • Loading branch information
Azurelol authored Mar 22, 2022
1 parent d13419b commit edd2c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class DefaultVersionPluginExtension implements VersionPluginExtension {
preflightStrategy.set(versionScheme.map({ scheme ->
switch (scheme) {
case VersionScheme.wdk:
WdkStrategies.PRE
WdkStrategies.PREFLIGHT
break
default:
null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import wooga.gradle.version.internal.release.semver.StrategyUtil
class WdkStrategies {
static final SemVerStrategy DEVELOPMENT = SemverV1Strategies.DEVELOPMENT
static final SemVerStrategy SNAPSHOT = SemverV1Strategies.SNAPSHOT
static final SemVerStrategy PRE = SemverV1Strategies.SNAPSHOT.copyWith(
static final SemVerStrategy PREFLIGHT = SemverV1Strategies.SNAPSHOT.copyWith(
releaseStage: ReleaseStage.Preflight,
// TODO: Must start Between m-r
stages: ['pre'] as SortedSet,
stages: ['pre', 'preflight'] as SortedSet,
preReleaseStrategy: StrategyUtil.all(StrategyUtil.closure({ state ->
def stage = Strategies.PreRelease.STAGE_FIXED.infer(state).inferredPreRelease
def integration = Strategies.PreRelease.STAGE_TIMESTAMP.infer(state).inferredPreRelease
Expand Down

0 comments on commit edd2c22

Please sign in to comment.