You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by pi...@apache.org on 2025/06/16 06:20:49 UTC
(iggy) branch master updated: chore(sdk): Java SDK - publish artifacts to apache maven repo (#1869)
This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 7bfcb8a6 chore(sdk): Java SDK - publish artifacts to apache maven repo (#1869)
7bfcb8a6 is described below
commit 7bfcb8a6ab641522c49305216e310be7d9cf863d
Author: Nandakumar Vadivelu <na...@apache.org>
AuthorDate: Mon Jun 16 11:50:46 2025 +0530
chore(sdk): Java SDK - publish artifacts to apache maven repo (#1869)
Configure gradle to publish artifacts to Apache maven repo.
Fixes #1868
---
foreign/java/java-sdk/build.gradle.kts | 44 +++++++++++++++++-----------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/foreign/java/java-sdk/build.gradle.kts b/foreign/java/java-sdk/build.gradle.kts
index 4b9ea164..ff673835 100644
--- a/foreign/java/java-sdk/build.gradle.kts
+++ b/foreign/java/java-sdk/build.gradle.kts
@@ -74,18 +74,27 @@ publishing {
pom {
name = "Apache Iggy Java Client SDK"
- description = "Official Java client SDK for Apache Iggy message streaming"
+ description = "Official Java client SDK for Apache Iggy.\n" +
+ "Apache Iggy (Incubating) is an effort undergoing incubation at the Apache Software Foundation (ASF), " +
+ "sponsored by the Apache Incubator PMC."
url = "https://github.com/apache/iggy"
+ packaging = "jar"
licenses {
license {
name = "Apache License, Version 2.0"
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
- scm {
- url = "https://github.com/apache/iggy"
- connection = "scm:git:git://github.com/apache/iggy.git"
- developerConnection = "scm:git:git://github.com/apache/iggy.git"
+ developers {
+ developer {
+ name = "Apache Iggy"
+ email = "dev@iggy.apache.org"
+ }
+ scm {
+ url = "https://github.com/apache/iggy"
+ connection = "scm:git:git://github.com/apache/iggy.git"
+ developerConnection = "scm:git:git://github.com/apache/iggy.git"
+ }
}
}
}
@@ -93,24 +102,15 @@ publishing {
repositories {
maven {
- url = uri(layout.buildDirectory.dir("staging-deploy"))
- }
- }
-}
+ val releasesRepoUrl = "https://repository.apache.org/service/local/staging/deploy/maven2"
+ val snapshotsRepoUrl = "https://repository.apache.org/content/repositories/snapshots/"
-jreleaser {
- signing {
- setActive("ALWAYS")
- armored = true
- }
- deploy {
- maven {
- mavenCentral {
- create("sonatype") {
- setActive("ALWAYS")
- url = "https://central.sonatype.com/api/v1/publisher"
- stagingRepository("build/staging-deploy")
- }
+ url = uri(if ((version as String).endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
+
+ credentials {
+ // Assumes 'apacheUserName' and 'apachePassWord' are available as properties
+ username = System.getenv("secrets.NEXUS_USER")
+ password = System.getenv("secrets.NEXUS_PASSWORD")
}
}
}