Skip to content

Commit

Permalink
NH-33952: Release Java Agent 0.15.0
Browse files Browse the repository at this point in the history
- [JIRA](https://swicloud.atlassian.net/browse/NH-33952)
- use a single publication
- exclude local publishing from signing
  • Loading branch information
cleverchuk committed Feb 22, 2023
1 parent f240d0f commit 276c45c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 58 deletions.
33 changes: 5 additions & 28 deletions agent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,34 +168,8 @@ publishing {
artifact javadocJar
}
}
localInstall(MavenPublication){
pom {
name = "${archivesBaseName}"
description = "${archivesBaseName}"
url = "www.solarwinds.com"
scm {
url = 'https://www.solarwinds.com'
}
developers {
developer {
id = 'APM'
name = 'The APM Agent team'
}
}
licenses {
license {
name = 'Librato Open License'
}
}
groupId = 'io.github.appoptics'
artifactId = "${archivesBaseName}"
version = "${versions.agent}"
from components.java
artifact sourcesJar
artifact javadocJar
}
}
publishLocalInstallPublicationToMavenLocal

publishToMavenLocal
}
repositories {
// -- uncomment the lines below to publish the agent artifact to the Maven central --
Expand All @@ -219,6 +193,9 @@ publishing {
}

signing {
setRequired {
gradle.taskGraph.allTasks.any { (it.getClass() == PublishToMavenRepository.class) }
}
def signingKey = System.getenv("SIGNING_KEY")
def signingPassword = System.getenv("SIGNING_PASSWORD")
useInMemoryPgpKeys(signingKey, signingPassword)
Expand Down
4 changes: 2 additions & 2 deletions mvnlocalPub.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env zsh
# This script exist to enable conveniently building and publishing the artifacts to local maven repo
./gradlew clean build
./gradlew agent:publishLocalInstallPublicationToMavenLocal
./gradlew solarwinds-otel-sdk:publishLocalInstallPublicationToMavenLocal
./gradlew agent:publishToMavenLocal
./gradlew solarwinds-otel-sdk:publishToMavenLocal

32 changes: 4 additions & 28 deletions solarwinds-otel-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,34 +74,7 @@ publishing {
artifact javadocJar
}
}
localInstall(MavenPublication){
pom {
name = "${archivesBaseName}"
description = "${archivesBaseName}"
url = "www.solarwinds.com"
scm {
url = 'https://www.solarwinds.com'
}
developers {
developer {
id = 'APM'
name = 'The APM Agent team'
}
}
licenses {
license {
name = 'Librato Open License'
}
}
groupId = 'io.github.appoptics'
artifactId = "${archivesBaseName}"
version = "${versions.agent}"
from components.java
artifact sourcesJar
artifact javadocJar
}
}
publishLocalInstallPublicationToMavenLocal
publishToMavenLocal
}
repositories {
maven {
Expand All @@ -124,6 +97,9 @@ publishing {
}

signing {
setRequired {
gradle.taskGraph.allTasks.any { (it.getClass() == PublishToMavenRepository.class) }
}
def signingKey = System.getenv("SIGNING_KEY")
def signingPassword = System.getenv("SIGNING_PASSWORD")
useInMemoryPgpKeys(signingKey, signingPassword)
Expand Down

0 comments on commit 276c45c

Please sign in to comment.