Skip to content

Commit

Permalink
Update Maven Repo (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenoid authored Dec 14, 2023
1 parent 34a45bd commit 4aa042f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildSrc/src/main/kotlin/fw-maven-publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ fun MavenPom.configureScm() {
}

fun MavenArtifactRepository.configureUrl() {
val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
val releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"

val isSnapshot = project.ext.properties["PUBLICATION_VERSION"].toString().endsWith("SNAPSHOT", true)

Expand All @@ -88,7 +88,7 @@ fun MavenArtifactRepository.configureUrl() {

fun MavenArtifactRepository.configureCredentials() {
credentials {
username = System.getenv("MOHSENOID_OSSRH_USERNAME")
password = System.getenv("MOHSENOID_OSSRH_PASSWORD")
username = System.getenv("MOHSENOID_S01_OSSRH_USERNAME")
password = System.getenv("MOHSENOID_S01_OSSRH_PASSWORD")
}
}

0 comments on commit 4aa042f

Please sign in to comment.