Skip to content

Commit 05dd70e

Browse files
committed
changing snapshot version format
1 parent 3a1a1fb commit 05dd70e

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

.github/workflows/gradle_task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
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

build-logic/repositories.gradle.kts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff 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-
}

build-logic/src/test/kotlin/IsReleaseVersionTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)