Skip to content

Commit

Permalink
fix: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortezz committed Aug 24, 2024
1 parent 49fbda5 commit ebc48f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("maven-publish")
}

val isRelease = System.getenv().containsKey("RELEASE")
val isRelease = System.getenv("RELEASE") == "true"

val nexusUser = System.getenv()["NEXUS_USER"]
val nexusPass = System.getenv()["NEXUS_PASS"]
Expand All @@ -18,7 +18,7 @@ repositories {

maven {
name = "ekalia"
url = uri("https://nexus.ekalia.fr/repository/maven-release/")
url = uri("https://nexus.ekalia.fr/repository/maven-releases/")
}
}

Expand All @@ -30,7 +30,7 @@ publishing {
}

repositories {
maven("https://nexus.ekalia.fr/repository/maven-${if (isRelease) "release" else "snapshots"}/") {
maven("https://nexus.ekalia.fr/repository/maven-${if (isRelease) "releases" else "snapshots"}/") {
if (isInCi) {
credentials {
username = nexusUser
Expand Down

0 comments on commit ebc48f2

Please sign in to comment.