From 23f8fa36545c6762f7aad5e3672edbf167f42925 Mon Sep 17 00:00:00 2001 From: Tunahan Cicek Date: Mon, 17 Jun 2024 16:44:37 +0200 Subject: [PATCH] Move maven publish build to parent pom and add profile for publishing extension --- .../publish-edc-ext-to-maven-central.yml | 2 +- libraries/edc-extension/pom.xml | 37 +----------- pom.xml | 56 +++++++++++++++---- 3 files changed, 47 insertions(+), 48 deletions(-) diff --git a/.github/workflows/publish-edc-ext-to-maven-central.yml b/.github/workflows/publish-edc-ext-to-maven-central.yml index 9376d258..096abc86 100644 --- a/.github/workflows/publish-edc-ext-to-maven-central.yml +++ b/.github/workflows/publish-edc-ext-to-maven-central.yml @@ -67,7 +67,7 @@ jobs: - name: Publish to the Maven Central Repository shell: bash run: | - mvn clean verify nexus-staging:deploy -f libraries/edc-extension/pom.xml -P release-to-central + mvn clean verify nexus-staging:deploy -P release-to-central env: MAVEN_USERNAME: "${{ secrets.ORG_OSSRH_USERNAME }}" MAVEN_PASSWORD: "${{ secrets.ORG_OSSRH_PASSWORD }}" diff --git a/libraries/edc-extension/pom.xml b/libraries/edc-extension/pom.xml index 1ecbded0..3ca9ffc9 100644 --- a/libraries/edc-extension/pom.xml +++ b/libraries/edc-extension/pom.xml @@ -119,13 +119,13 @@ - ${project.parent.basedir} + ../.. LICENSE NOTICE.md DEPENDENCIES - META-INF/ + META-INF ${project.basedir}/src/main/resources @@ -154,37 +154,4 @@ - - - - release-to-central - - false - - - - - org.apache.maven.plugins - maven-gpg-plugin - - - org.sonatype.plugins - nexus-staging-maven-plugin - - - - - - - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - diff --git a/pom.xml b/pom.xml index e05c212b..df30876c 100644 --- a/pom.xml +++ b/pom.xml @@ -119,14 +119,6 @@ 17 - - backend - access-control-service-interface - access-control-service-sql-impl - libraries/edc-extension - - - @@ -526,6 +518,43 @@ + + + release-to-central + + libraries/edc-extension + + + false + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + org.sonatype.plugins + nexus-staging-maven-plugin + + + + + + default + + backend + access-control-service-interface + access-control-service-sql-impl + libraries/edc-extension + + + + true + + + + Maven Central @@ -535,10 +564,13 @@ + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + - github - GitHub Packages - https://maven.pkg.github.com/eclipse-tractusx/sldt-digital-twin-registry + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ - +