Skip to content

Commit

Permalink
fix: change to release url in nexus
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Ribó <[email protected]>
  • Loading branch information
elribonazo committed Jul 16, 2024
1 parent 447272d commit 2ee28eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ allprojects {

// Allowed projects to publish to maven
val allowedProjectsToPublish = listOf("apollo")
if (allowedProjectsToPublish.contains(project.name)) {
if (allowedProjectsToPublish.contains(project.name) && project.name.contains("androidDebug")) {
publishing {
publications {
withType<MavenPublication> {
Expand Down Expand Up @@ -179,7 +179,7 @@ nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/"))
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/releases/"))
username.set(System.getenv("OSSRH_USERNAME"))
password.set(System.getenv("OSSRH_TOKEN"))
}
Expand Down

0 comments on commit 2ee28eb

Please sign in to comment.