From 571821c085456ccf9f4cbd832e3041a71081a866 Mon Sep 17 00:00:00 2001 From: Roman Zabaluev Date: Tue, 5 Mar 2024 12:15:59 +0700 Subject: [PATCH 1/2] Update plugin --- serde-api/pom.xml | 24 ++++++++++++------------ settings.xml | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/serde-api/pom.xml b/serde-api/pom.xml index 9452dd3ac..f9435cad1 100644 --- a/serde-api/pom.xml +++ b/serde-api/pom.xml @@ -62,18 +62,18 @@ maven-jar-plugin 3.3.0 - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - ossrh - https://s01.oss.sonatype.org/ - true - - - + + org.sonatype.central + central-publishing-maven-plugin + 0.4.0 + true + + central + true + true + + + org.apache.maven.plugins maven-source-plugin 2.2.1 diff --git a/settings.xml b/settings.xml index 7935a5f53..e3dd1641d 100644 --- a/settings.xml +++ b/settings.xml @@ -1,7 +1,7 @@ - ossrh + central ${server.username} ${server.password} @@ -14,4 +14,4 @@ - \ No newline at end of file + From f11e8f0e33f07222e70f6105487b57d41b8a33b1 Mon Sep 17 00:00:00 2001 From: Roman Zabaluev Date: Thu, 7 Mar 2024 19:32:39 +0700 Subject: [PATCH 2/2] Update workflow --- .github/workflows/release-serde-api.yml | 6 +- serde-api/pom.xml | 217 ++++++++++++------------ 2 files changed, 114 insertions(+), 109 deletions(-) diff --git a/.github/workflows/release-serde-api.yml b/.github/workflows/release-serde-api.yml index af5b1db0d..746769152 100644 --- a/.github/workflows/release-serde-api.yml +++ b/.github/workflows/release-serde-api.yml @@ -33,4 +33,8 @@ jobs: - name: Publish to Maven Central run: | - mvn source:jar javadoc:jar package gpg:sign -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} -Dserver.username=${{ secrets.NEXUS_USERNAME }} -Dserver.password=${{ secrets.NEXUS_PASSWORD }} nexus-staging:deploy -pl serde-api -s settings.xml + mvn source:jar javadoc:jar package gpg:sign \ + -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \ + -Dserver.username=${{ secrets.NEXUS_USERNAME }} \ + -Dserver.password=${{ secrets.NEXUS_PASSWORD }} \ + central-publishing:publish -pl serde-api -s settings.xml diff --git a/serde-api/pom.xml b/serde-api/pom.xml index f9435cad1..3c2e3b3a1 100644 --- a/serde-api/pom.xml +++ b/serde-api/pom.xml @@ -1,67 +1,67 @@ + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - 4.0.0 - jar + 4.0.0 + jar - - 17 - 17 - + + 17 + 17 + - - - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - + + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + - kafbat-ui-serde-api - kafbat-ui-serde-api - http://github.com/kafbat/kafka-ui - - - The Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - - - - - Kafbat - maintainers@kafbat.io - Kafbat - https://kafbat.io/ - - - - scm:git:git://github.com/kafbat/kafka-ui.git - scm:git:ssh://github.com:kafbat/kafka-ui.git - https://github.com/kafbat/kafka-ui - - io.kafbat.ui - serde-api - 1.0.0 + kafbat-ui-serde-api + kafbat-ui-serde-api + http://github.com/kafbat/kafka-ui + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + Kafbat + maintainers@kafbat.io + Kafbat + https://kafbat.io/ + + + + scm:git:git://github.com/kafbat/kafka-ui.git + scm:git:ssh://github.com:kafbat/kafka-ui.git + https://github.com/kafbat/kafka-ui + + io.kafbat.ui + serde-api + 1.0.0 - - - - - org.apache.maven.plugins - maven-install-plugin - 2.5.2 - - - org.apache.maven.plugins - maven-jar-plugin - 3.3.0 - + + + + + org.apache.maven.plugins + maven-install-plugin + 2.5.2 + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + org.sonatype.central central-publishing-maven-plugin @@ -74,55 +74,56 @@ - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - 8 - - 3.5.0 - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - - - --pinentry-mode - loopback - - - - - - + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + 8 + + 3.5.0 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.1.0 + + + sign-artifacts + verify + + sign + + + + + + + --pinentry-mode + loopback + + + + + +