Skip to content

Commit

Permalink
chore: maven publishing repo fix (#257)
Browse files Browse the repository at this point in the history
* maven publishing repo fix

* disable maven publish
  • Loading branch information
jamesward authored May 4, 2021
1 parent 1c3c2c0 commit b7d0648
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
19 changes: 10 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,16 @@ subprojects {
}
}
}
repositories {
maven {
val snapshotUrl = uri("https://oss.sonatype.org/content/repositories/snapshots")
val releaseUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
url = if (version.safeAs<String>()?.endsWith("SNAPSHOT") == true) snapshotUrl else releaseUrl
credentials {
username = project.findProperty("sonatypeUsername")?.safeAs() ?: ""
password = project.findProperty("sonatypePassword")?.safeAs() ?: ""
}
}

extensions.getByType<PublishingExtension>().repositories {
maven {
val snapshotUrl = uri("https://oss.sonatype.org/content/repositories/snapshots")
val releaseUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
url = if (version.safeAs<String>()?.endsWith("SNAPSHOT") == true) snapshotUrl else releaseUrl
credentials {
username = project.findProperty("sonatypeUsername")?.safeAs() ?: ""
password = project.findProperty("sonatypePassword")?.safeAs() ?: ""
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions interop_testing/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,7 @@ tasks.named("startScripts") {
dependsOn(testServiceClientStartScripts)
dependsOn(testServiceServerStartScripts)
}

tasks.withType<AbstractPublishToMaven> {
enabled = false
}

0 comments on commit b7d0648

Please sign in to comment.