summaryrefslogtreecommitdiff
path: root/buildSrc/src
diff options
context:
space:
mode:
authorvincent van beek <vincent@vlogic.nl>2026-04-24 12:01:41 +0200
committerGitHub <noreply@github.com>2026-04-24 11:01:41 +0100
commitf9aba13b6d0f26d3a2a3f9de788d43aa2f4a82b7 (patch)
tree17f70c4a8713fcfa0492496e1cd2c684ed10b335 /buildSrc/src
parentf0ad5da61e40aca737e5aed181426c2ce7a58bbc (diff)
Fix maven (#409)
* attempt to fix the maven publish step * fix publishing to maven central
Diffstat (limited to 'buildSrc/src')
-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)
- }
- }
}