Skip to content

Commit c03af55

Browse files
committed
Updated maven publishing config
1 parent b5dc027 commit c03af55

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

buildSrc/src/main/groovy/base.lenni0451-maven-publishing.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ publishing {
22
repositories {
33
maven {
44
name = "reposilite"
5-
url = "https://maven.lenni0451.net/" + (project.maven_version.endsWith("SNAPSHOT") ? "snapshots" : "releases")
5+
url = "https://maven.lenni0451.net/" + (project.maven_version.contains("SNAPSHOT") ? "snapshots" : "releases")
66

77
credentials(PasswordCredentials)
88
authentication {

buildSrc/src/main/groovy/base.maven-central-publishing.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ publishing {
22
repositories {
33
maven {
44
name = "central"
5-
if (!project.maven_version.endsWith("SNAPSHOT")) {
5+
if (!project.maven_version.contains("SNAPSHOT")) {
66
url = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2"
77
} else {
88
url = "https://central.sonatype.com/repository/maven-snapshots"

0 commit comments

Comments
 (0)