Skip to content

Commit b7d0648

Browse files
authored
chore: maven publishing repo fix (#257)
* maven publishing repo fix * disable maven publish
1 parent 1c3c2c0 commit b7d0648

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

build.gradle.kts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,16 @@ subprojects {
117117
}
118118
}
119119
}
120-
repositories {
121-
maven {
122-
val snapshotUrl = uri("https://oss.sonatype.org/content/repositories/snapshots")
123-
val releaseUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
124-
url = if (version.safeAs<String>()?.endsWith("SNAPSHOT") == true) snapshotUrl else releaseUrl
125-
credentials {
126-
username = project.findProperty("sonatypeUsername")?.safeAs() ?: ""
127-
password = project.findProperty("sonatypePassword")?.safeAs() ?: ""
128-
}
120+
}
121+
122+
extensions.getByType<PublishingExtension>().repositories {
123+
maven {
124+
val snapshotUrl = uri("https://oss.sonatype.org/content/repositories/snapshots")
125+
val releaseUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
126+
url = if (version.safeAs<String>()?.endsWith("SNAPSHOT") == true) snapshotUrl else releaseUrl
127+
credentials {
128+
username = project.findProperty("sonatypeUsername")?.safeAs() ?: ""
129+
password = project.findProperty("sonatypePassword")?.safeAs() ?: ""
129130
}
130131
}
131132
}

interop_testing/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ tasks.named("startScripts") {
6969
dependsOn(testServiceClientStartScripts)
7070
dependsOn(testServiceServerStartScripts)
7171
}
72+
73+
tasks.withType<AbstractPublishToMaven> {
74+
enabled = false
75+
}

0 commit comments

Comments
 (0)