File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ plugins {
10
10
id(" signing" )
11
11
}
12
12
13
- group = " cz.sazel.sqldelight"
14
- val versionBase = " 0.1.2"
13
+ val defaultGroupId = " cz.sazel.sqldelight"
14
+ val versionBase = " 0.1.3"
15
+
15
16
val localProperties = Properties ().apply {
16
17
try {
17
18
load(project.rootProject.file(" local.properties" ).inputStream())
@@ -20,6 +21,7 @@ val localProperties = Properties().apply {
20
21
}
21
22
}
22
23
24
+ group = System .getenv(" GROUP_ID" ) ? : localProperties[" groupId" ] as String? ? : defaultGroupId
23
25
version = System .getenv(" PACKAGE_VERSION" ) ? : localProperties[" packageVersion" ] as String? ? : " $versionBase -SNAPSHOT"
24
26
25
27
@@ -149,9 +151,9 @@ kotlin {
149
151
}
150
152
maven {
151
153
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"
155
157
url = uri(destination)
156
158
credentials {
157
159
username = localProperties[" sonatype.user" ] as String? ? : System .getenv(" SONATYPE_USER" )
You can’t perform that action at this time.
0 commit comments