From 67e947dbd48481a9655d5f549e1992e97025c3d1 Mon Sep 17 00:00:00 2001 From: Lishen Yao Date: Tue, 14 Jan 2025 11:45:28 +0800 Subject: [PATCH] Use SN bom (#1606) * Use sn bom * Add other jars --- .github/workflows/pr_test.yml | 5 +++ pom.xml | 77 ++++++++--------------------------- scripts/build.sh | 4 +- 3 files changed, 26 insertions(+), 60 deletions(-) diff --git a/.github/workflows/pr_test.yml b/.github/workflows/pr_test.yml index ef1426bb..2cdb8eeb 100644 --- a/.github/workflows/pr_test.yml +++ b/.github/workflows/pr_test.yml @@ -38,6 +38,11 @@ jobs: distribution: 'temurin' java-version: 17 + - name: Configure Maven Settings + uses: s4u/maven-settings-action@v2.7.0 + with: + servers: '[{"id": "github", "username": "streamnativebot", "password": "${{ secrets.SNBOT_GITHUB_TOKEN }}"}]' + - name: License check run: mvn license:check diff --git a/pom.xml b/pom.xml index 61d843ff..3f3651a0 100644 --- a/pom.xml +++ b/pom.xml @@ -51,8 +51,9 @@ 2.22.0 6.14.3 4.0.2 - 4.0.0-ursa-5-SNAPSHOT - 4.1.94.Final + 4.1.0-SNAPSHOT + 4.1.0-SNAPSHOT + 4.1.115.Final 2.18.0 1.16 1.2.2 @@ -76,58 +77,20 @@ io.streamnative pulsar-broker - ${pulsar.version} - provided - - - io.grpc - grpc-all - - - io.grpc - grpc-core - - - io.grpc - grpc-testing - - - io.grpc - grpc-auth - - - - - - - io.grpc - grpc-all - ${grpc.version} - - - org.apache.logging.log4j - log4j-core - ${log4j2.version} - - - org.apache.logging.log4j - log4j-slf4j-impl - ${log4j2.version} org.projectlombok lombok - ${lombok.version} io.netty netty-codec-mqtt - ${mqtt.codec.version} commons-beanutils commons-beanutils ${apache.commons.bean-utils.version} + test org.testng @@ -150,24 +113,21 @@ dev.cel cel - 0.5.2 - - provided - - com.fasterxml.jackson - jackson-bom - ${jackson.version} - import - pom - + + io.streamnative + streamnative-bom + ${sn.bom.version} + pom + import + - + @@ -390,16 +350,15 @@ https://repo1.maven.org/maven2 - snapshot + nexus-snapshot https://s01.oss.sonatype.org/content/repositories/snapshots - ossrh - https://s01.oss.sonatype.org/service/local/repositories/0/content - - - nexus-snapshot - https://s01.oss.sonatype.org/content/repositories/snapshots + github + https://maven.pkg.github.com/streamnative/streamnative-bom + + true + diff --git a/scripts/build.sh b/scripts/build.sh index 212eb97b..a3968553 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -28,5 +28,7 @@ ASSETS_DIR=release mkdir $ASSETS_DIR mvn clean install -DskipTests -Dmaven.wagon.http.retryHandler.count=3 -mv mqtt-broker/target/pulsar-protocol-handler-mqtt-*.nar ./$ASSETS_DIR +mv mqtt-broker/target/pulsar-protocol-handler-mqtt-*.jar ./$ASSETS_DIR/pulsar-protocol-handle +mv mqtt-common/target/pulsar-protocol-handler-mqtt-common-*.jar ./$ASSETS_DIR/ +mv mqtt-proxy/target/pulsar-protocol-handler-mqtt-proxy-*.jar ./$ASSETS_DIR/ cp README.md ./$ASSETS_DIR/pulsar-protocol-handler-mqtt-readme.md \ No newline at end of file