Skip to content

Commit f400878

Browse files
committed
preparation for release version
1 parent 875e4f9 commit f400878

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build.gradle.kts

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ plugins {
1010
id("signing")
1111
}
1212

13-
group = "cz.sazel.sqldelight"
14-
val versionBase = "0.1.2"
13+
val defaultGroupId = "cz.sazel.sqldelight"
14+
val versionBase = "0.1.3"
15+
1516
val localProperties = Properties().apply {
1617
try {
1718
load(project.rootProject.file("local.properties").inputStream())
@@ -20,6 +21,7 @@ val localProperties = Properties().apply {
2021
}
2122
}
2223

24+
group = System.getenv("GROUP_ID") ?: localProperties["groupId"] as String? ?: defaultGroupId
2325
version = System.getenv("PACKAGE_VERSION") ?: localProperties["packageVersion"] as String? ?: "$versionBase-SNAPSHOT"
2426

2527

@@ -149,9 +151,9 @@ kotlin {
149151
}
150152
maven {
151153
val isSnapshot = version.toString().endsWith("SNAPSHOT")
152-
val destination = if (isSnapshot) {
153-
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"
154-
} else "https://oss.sonatype.org/content/repositories/snapshots/"
154+
val destination = if (!isSnapshot) {
155+
"https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
156+
} else "https://s01.oss.sonatype.org/content/repositories/snapshots"
155157
url = uri(destination)
156158
credentials {
157159
username = localProperties["sonatype.user"] as String? ?: System.getenv("SONATYPE_USER")

0 commit comments

Comments
 (0)