Skip to content

Commit

Permalink
chore: Added nexus configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Maas committed Jul 25, 2024
1 parent 78ce211 commit 91f6da8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/openapi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ repositories {

kotlin {
tasks {
named("build") {
finalizedBy("publish")
}

// Temporary fix for this issue: https://github.com/OpenAPITools/openapi-generator/issues/17658
register<Copy>("fixOpenApiGeneratorIssue") {
from(
Expand Down Expand Up @@ -161,4 +165,16 @@ publishing {
from(components["kotlin"])
}
}
repositories {
maven {
name = "sphereon-opensource-snapshots"
val snapshotsUrl = "https://nexus.sphereon.com/content/groups/sphereon-opensource-snapshots"
val releasesUrl = "https://nexus.sphereon.com/content/groups/sphereon-opensource-releases"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsUrl else releasesUrl)
credentials {
username = System.getenv("NEXUS_USERNAME")
password = System.getenv("NEXUS_PASSWORD")
}
}
}
}

0 comments on commit 91f6da8

Please sign in to comment.