File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 4949 id : version
5050 uses : Kantis/semantic-version@master
5151 with :
52- version_format : " ${major}.${minor}.${patch}.${increment} -SNAPSHOT"
52+ version_format : " ${major}.${minor}.${patch}-SNAPSHOT"
5353
5454 - name : Setup JDK
5555 uses : actions/setup-java@v4
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ dependencyResolutionManagement {
6464 filter { includeModuleByRegex(" .*" , " .*kotlin-native-prebuilt.*" ) }
6565 }
6666
67- sonatypeSnapshots()
6867 google()
6968 gradlePluginPortal() // tvOS builds need to be able to fetch a Kotlin Gradle plugin
7069 }
@@ -74,18 +73,6 @@ dependencyResolutionManagement {
7473 gradlePluginPortal()
7574 mavenCentral()
7675 google()
77- sonatypeSnapshots()
7876 }
7977 }
8078}
81-
82- fun RepositoryHandler.sonatypeSnapshots () {
83- maven(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ) {
84- name = " SonatypeSnapshotS01"
85- mavenContent { snapshotsOnly() }
86- }
87- maven(" https://oss.sonatype.org/content/repositories/snapshots/" ) {
88- name = " SonatypeSnapshotsOSS"
89- mavenContent { snapshotsOnly() }
90- }
91- }
Original file line number Diff line number Diff line change @@ -10,15 +10,19 @@ class IsReleaseVersionTest : FreeSpec (
1010 " should return true for a release version" {
1111 isReleaseVersion("1.2.3") shouldBe true
1212 }
13+
1314 " should return false for a snapshot version" {
1415 isReleaseVersion("1.2.3-SNAPSHOT ") shouldBe false
1516 }
17+
1618 " should return false for a milestone version" {
1719 isReleaseVersion("1.2.3-M1 ") shouldBe false
1820 }
21+
1922 " should return false for a release candidate version" {
2023 isReleaseVersion("1.2.3-RC1 ") shouldBe false
2124 }
25+
2226 " should return false for a pre-release version" {
2327 isReleaseVersion("1.2.3-alpha1") shouldBe false
2428 }
You can’t perform that action at this time.
0 commit comments