Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor tag retrieval and add tag ordering by version
- Loading branch information
1 parent
aa25708
commit 856d7f2
Showing
46 changed files
with
566 additions
and
489 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
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
20 changes: 0 additions & 20 deletions
20
src/main/groovy/pl/allegro/tech/build/axion/release/domain/ScmPositionContext.groovy
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/main/groovy/pl/allegro/tech/build/axion/release/domain/ScmState.groovy
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,19 @@ | ||
package pl.allegro.tech.build.axion.release.domain | ||
|
||
class ScmState { | ||
|
||
final boolean onReleaseTag | ||
|
||
final boolean onNextVersionTag | ||
|
||
final boolean noReleaseTagsFound | ||
|
||
final boolean hasUncommittedChanges | ||
|
||
ScmState(boolean onReleaseTag, boolean onNextVersionTag, boolean noReleaseTagsFound, boolean hasUncommittedChanges) { | ||
this.onReleaseTag = onReleaseTag | ||
this.onNextVersionTag = onNextVersionTag | ||
this.noReleaseTagsFound = noReleaseTagsFound | ||
this.hasUncommittedChanges = hasUncommittedChanges | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
src/main/groovy/pl/allegro/tech/build/axion/release/domain/VersionContext.groovy
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,22 @@ | ||
package pl.allegro.tech.build.axion.release.domain | ||
|
||
import com.github.zafarkhaja.semver.Version | ||
import pl.allegro.tech.build.axion.release.domain.scm.ScmPosition | ||
|
||
class VersionContext { | ||
|
||
final Version version | ||
|
||
final boolean snapshot | ||
|
||
final Version previousVersion | ||
|
||
final ScmPosition position | ||
|
||
VersionContext(Version version, boolean snapshot, Version previousVersion, ScmPosition position) { | ||
this.version = version | ||
this.snapshot = snapshot | ||
this.previousVersion = previousVersion | ||
this.position = position | ||
} | ||
} |
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.