Skip to content

Commit

Permalink
Prep for 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wsargent committed Dec 3, 2024
1 parent 81a833f commit c6c3026
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
38 changes: 21 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,10 @@ test {

// https://github.com/gradle-nexus/publish-plugin/?tab=readme-ov-file#publishing-to-maven-central-via-sonatype-ossrh
nexusPublishing {
repositories {
if (System.getenv("SONATYPE_PWD")) {
sonatype {
username = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_PWD")
}
}
repositories {
// the user token is set outside the project
// https://central.sonatype.org/publish/generate-token/
sonatype()
}
}

Expand Down Expand Up @@ -70,26 +67,33 @@ publishing { //https://docs.gradle.org/current/userguide/publishing_maven.html
artifact javadocJar

pom {
name = tasks.jar.archiveBaseName
description = "JMXBuilder"
url = "https://github.com/tersesystems/jmxbuilder"
name.set("JMXBuilder")
description.set("JMXBuilder")
url.set("https://github.com/tersesystems/jmxbuilder")
licenses {
license {
name = 'Apache2'
url = 'https://github.com/tersesystems/jmxbuilder/blob/main/LICENSE'
name.set("Apache2")
url.set("https://github.com/tersesystems/jmxbuilder/blob/main/LICENSE")
}
}
developers {
developer {
id.set("wsargent")
name.set("Will Sargent")
email.set("[email protected]")
}
}
scm {
url = 'https://github.com/tersesystems/jmxbuilder.git'
connection.set("scm:git:https://github.com/tersesystems/jmxbuilder.git")
developerConnection.set("scm:git:https://github.com/tersesystems/jmxbuilder.git")
url.set("https://github.com/tersesystems/jmxbuilder.git")
}
}
}
}
}

signing { // https://docs.gradle.org/current/userguide/signing_plugin.html
if (System.getenv("PGP_KEY")) {
useInMemoryPgpKeys(System.getenv("PGP_KEY"), System.getenv("PGP_PWD"))
sign publishing.publications.mavenJava
}
useGpgCmd()
sign publishing.publications.mavenJava
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
group = com.tersesystems.jmxbuilder
artifactId = jmxbuilder
artifactIdMaven = jmxbuilder
version = 1.0.0-SNAPSHOT
version = 1.0.0

signing.gnupg.keyName = 0x9033D60F5F798D53

Expand Down

0 comments on commit c6c3026

Please sign in to comment.