Skip to content

Commit

Permalink
CUST-110209: do maven release on push and use the new SDK in smoke test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverchuk committed Aug 20, 2024
1 parent 06246e8 commit 1dc2c0b
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions solarwinds-otel-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,23 @@ publishing {
}
groupId = 'io.github.appoptics'
artifactId = "${archivesBaseName}"
version = "${versions.agent}"
version = "${versions.agent}-SNAPSHOT"
from components.java
artifact sourcesJar
artifact javadocJar
}
}
publishToMavenLocal
}
/*repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_TOKEN")
}
}
repositories {
// maven {
// name = "OSSRH"
// url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
// credentials {
// username = System.getenv("SONATYPE_USERNAME")
// password = System.getenv("SONATYPE_TOKEN")
// }
// }
maven {
name = "OSSRH-SNAPSHOT"
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
Expand All @@ -110,22 +110,11 @@ publishing {
password = System.getenv("SONATYPE_TOKEN")
}
}
}*/
}

uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: System.getenv("SONATYPE_USERNAME"), password: System.getenv("SONATYPE_TOKEN"))
}
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: System.getenv("SONATYPE_USERNAME"), password: System.getenv("SONATYPE_TOKEN"))
}
}
}
}



signing {
setRequired {
gradle.taskGraph.allTasks.any { (it.getClass() == PublishToMavenRepository.class) }
Expand Down

0 comments on commit 1dc2c0b

Please sign in to comment.