summaryrefslogtreecommitdiff
path: root/buildSrc/src/main/kotlin
diff options
context:
space:
mode:
authorvincent van beek <vincent@vlogic.nl>2026-04-23 20:07:10 +0200
committervincent van beek <vincent@vlogic.nl>2026-04-23 20:07:10 +0200
commit7fcce6ee2f9a76f2a8ad56d444ed0e904a613552 (patch)
tree17f70c4a8713fcfa0492496e1cd2c684ed10b335 /buildSrc/src/main/kotlin
parentbdd372e1224522aa1fe4485b78dcd76dd19343e5 (diff)
fix publishing to maven central
Diffstat (limited to 'buildSrc/src/main/kotlin')
-rw-r--r--buildSrc/src/main/kotlin/publishing-conventions.gradle.kts15
1 files changed, 0 insertions, 15 deletions
diff --git a/buildSrc/src/main/kotlin/publishing-conventions.gradle.kts b/buildSrc/src/main/kotlin/publishing-conventions.gradle.kts
index 3100412a..4616df36 100644
--- a/buildSrc/src/main/kotlin/publishing-conventions.gradle.kts
+++ b/buildSrc/src/main/kotlin/publishing-conventions.gradle.kts
@@ -20,15 +20,11 @@
* SOFTWARE.
*/
-import org.gradle.api.credentials.PasswordCredentials
-
plugins {
`maven-publish`
signing
}
-val isSnapshot = project.version.toString().contains("SNAPSHOT")
-
// Ensure project is built successfully before publishing it
tasks.withType<PublishToMavenRepository>().configureEach {
dependsOn(tasks.assemble)
@@ -82,15 +78,4 @@ publishing {
}
}
}
-
- repositories {
- maven {
- val releasesRepoUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
- val snapshotsRepoUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
-
- name = "ossrh"
- url = if (isSnapshot) snapshotsRepoUrl else releasesRepoUrl
- credentials(PasswordCredentials::class)
- }
- }
}