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/08/18 11:02:57 UTC
(iggy) branch master updated: chore(java): Rename artifact from iggy-java-sdk to iggy (#2112)
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 1e058480 chore(java): Rename artifact from iggy-java-sdk to iggy (#2112)
1e058480 is described below
commit 1e0584800ac54fbee9a5ef2be2f03564796b7226
Author: Nandakumar Vadivelu <na...@apache.org>
AuthorDate: Mon Aug 18 16:32:54 2025 +0530
chore(java): Rename artifact from iggy-java-sdk to iggy (#2112)
Fixes #2111
This PR also does
- skip signing snapshot artifacts.
- moves both producer and consumer example into one sub-project.
---
.github/workflows/publish_java_sdk_snapshots.yml | 4 +--
.../{simple-consumer => }/build.gradle.kts | 2 +-
.../java/examples/simple-producer/build.gradle.kts | 36 ----------------------
.../org/apache/iggy/consumer}/SimpleConsumer.java | 2 +-
.../org/apache/iggy/producer}/SimpleProducer.java | 2 +-
foreign/java/java-sdk/build.gradle.kts | 2 +-
foreign/java/settings.gradle.kts | 16 +++-------
7 files changed, 11 insertions(+), 53 deletions(-)
diff --git a/.github/workflows/publish_java_sdk_snapshots.yml b/.github/workflows/publish_java_sdk_snapshots.yml
index ebf5fbe7..4e86a89b 100644
--- a/.github/workflows/publish_java_sdk_snapshots.yml
+++ b/.github/workflows/publish_java_sdk_snapshots.yml
@@ -40,7 +40,7 @@ jobs:
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
- name: Build
- run: foreign/java/dev-support/checks/build.sh build -x test -x checkstyleMain -x checkstyleTest
+ run: foreign/java/dev-support/checks/build.sh build -x test -x checkstyleMain -x checkstyleTest -x sign
- name: Run tests
run: foreign/java/dev-support/checks/build.sh test
@@ -61,4 +61,4 @@ jobs:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }}
if: steps.extract_version.outputs.snapshot == 'SNAPSHOT'
- run: foreign/java/dev-support/checks/build.sh build -x test -x checkstyleMain -x checkstyleTest publish
+ run: foreign/java/dev-support/checks/build.sh build -x test -x checkstyleMain -x checkstyleTest -x sign publish
diff --git a/foreign/java/examples/simple-consumer/build.gradle.kts b/foreign/java/examples/build.gradle.kts
similarity index 96%
rename from foreign/java/examples/simple-consumer/build.gradle.kts
rename to foreign/java/examples/build.gradle.kts
index a3c2f11f..54a409c1 100644
--- a/foreign/java/examples/simple-consumer/build.gradle.kts
+++ b/foreign/java/examples/build.gradle.kts
@@ -29,7 +29,7 @@ repositories {
}
dependencies {
- implementation(project(":iggy-java-sdk"))
+ implementation(project(":iggy"))
implementation("org.slf4j:slf4j-api:2.0.9")
runtimeOnly("ch.qos.logback:logback-classic:1.4.12")
runtimeOnly("io.netty:netty-resolver-dns-native-macos:4.2.1.Final:osx-aarch_64")
diff --git a/foreign/java/examples/simple-producer/build.gradle.kts b/foreign/java/examples/simple-producer/build.gradle.kts
deleted file mode 100644
index a3c2f11f..00000000
--- a/foreign/java/examples/simple-producer/build.gradle.kts
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-plugins {
- id("java")
-}
-
-group = "org.apache.iggy"
-version = "0.5.0-SNAPSHOT"
-
-repositories {
- mavenCentral()
-}
-
-dependencies {
- implementation(project(":iggy-java-sdk"))
- implementation("org.slf4j:slf4j-api:2.0.9")
- runtimeOnly("ch.qos.logback:logback-classic:1.4.12")
- runtimeOnly("io.netty:netty-resolver-dns-native-macos:4.2.1.Final:osx-aarch_64")
-}
diff --git a/foreign/java/examples/simple-consumer/src/main/java/org/apache/iggy/SimpleConsumer.java b/foreign/java/examples/src/main/java/org/apache/iggy/consumer/SimpleConsumer.java
similarity index 99%
rename from foreign/java/examples/simple-consumer/src/main/java/org/apache/iggy/SimpleConsumer.java
rename to foreign/java/examples/src/main/java/org/apache/iggy/consumer/SimpleConsumer.java
index 5fd439f7..fa146369 100644
--- a/foreign/java/examples/simple-consumer/src/main/java/org/apache/iggy/SimpleConsumer.java
+++ b/foreign/java/examples/src/main/java/org/apache/iggy/consumer/SimpleConsumer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.apache.iggy;
+package org.apache.iggy.consumer;
import org.apache.iggy.message.Message;
import org.slf4j.Logger;
diff --git a/foreign/java/examples/simple-producer/src/main/java/org/apache/iggy/SimpleProducer.java b/foreign/java/examples/src/main/java/org/apache/iggy/producer/SimpleProducer.java
similarity index 98%
rename from foreign/java/examples/simple-producer/src/main/java/org/apache/iggy/SimpleProducer.java
rename to foreign/java/examples/src/main/java/org/apache/iggy/producer/SimpleProducer.java
index f761daba..a5ea2003 100644
--- a/foreign/java/examples/simple-producer/src/main/java/org/apache/iggy/SimpleProducer.java
+++ b/foreign/java/examples/src/main/java/org/apache/iggy/producer/SimpleProducer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.apache.iggy;
+package org.apache.iggy.producer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/foreign/java/java-sdk/build.gradle.kts b/foreign/java/java-sdk/build.gradle.kts
index 4dedb6fa..33f4187e 100644
--- a/foreign/java/java-sdk/build.gradle.kts
+++ b/foreign/java/java-sdk/build.gradle.kts
@@ -73,7 +73,7 @@ publishing {
publications {
create<MavenPublication>("maven") {
groupId = "org.apache.iggy"
- artifactId = "iggy-java-sdk"
+ artifactId = "iggy"
version = "0.5.0-SNAPSHOT"
from(components["java"])
diff --git a/foreign/java/settings.gradle.kts b/foreign/java/settings.gradle.kts
index 19745cce..653ef334 100644
--- a/foreign/java/settings.gradle.kts
+++ b/foreign/java/settings.gradle.kts
@@ -17,16 +17,10 @@
* under the License.
*/
-rootProject.name = "iggy-java-client"
+rootProject.name = "iggy-java-sdk"
-include("iggy-java-sdk")
-project(":iggy-java-sdk").projectDir = file("java-sdk")
+include("iggy")
+project(":iggy").projectDir = file("java-sdk")
-include("iggy-java-example")
-project(":iggy-java-example").projectDir = file("examples")
-
-include("iggy-java-example:simple-producer")
-project(":iggy-java-example:simple-producer").projectDir = file("examples/simple-producer")
-
-include("iggy-java-example:simple-consumer")
-project(":iggy-java-example:simple-consumer").projectDir = file("examples/simple-consumer")
+include("iggy-example")
+project(":iggy-example").projectDir = file("examples")