diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index a1398b3..b7b160f 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -1,7 +1,7 @@ name: Publish package to the Maven Central Repository on: - release: - types: [created] + release: + types: [created] jobs: publish: runs-on: ubuntu-latest @@ -12,22 +12,14 @@ jobs: with: java-version: "17" distribution: "temurin" - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - - name: Install gpg secret key - run: | - # Install gpg secret key - echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode | gpg --batch --import - # Verify that the key ID is shown in the logs - gpg --list-secret-keys --keyid-format LONG | grep "${{ secrets.OSSRH_GPG_SECRET_KEY_ID }}" + gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Publish to Central Repository env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - run: | - mvn \ - --no-transfer-progress \ - --batch-mode \ - -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \ - clean deploy + MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + run: mvn --batch-mode deploy diff --git a/node_modules/.pnpm-workspace-state.json b/node_modules/.pnpm-workspace-state.json deleted file mode 100644 index f416e62..0000000 --- a/node_modules/.pnpm-workspace-state.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "lastValidatedTimestamp": 1750960559706, - "projects": {}, - "pnpmfileExists": false, - "settings": { - "autoInstallPeers": true, - "dedupeDirectDeps": false, - "dedupeInjectedDeps": true, - "dedupePeerDependents": true, - "dev": true, - "excludeLinksFromLockfile": false, - "hoistPattern": [ - "*" - ], - "hoistWorkspacePackages": true, - "injectWorkspacePackages": false, - "linkWorkspacePackages": false, - "nodeLinker": "isolated", - "optional": true, - "preferWorkspacePackages": false, - "production": true, - "publicHoistPattern": [] - }, - "filteredInstall": false -} diff --git a/node_modules/.pnpm/lock.yaml b/node_modules/.pnpm/lock.yaml deleted file mode 100644 index c65e7f9..0000000 --- a/node_modules/.pnpm/lock.yaml +++ /dev/null @@ -1,16 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -overrides: - pricing4ts: link:../../../../../Library/pnpm/global/5/node_modules/pricing4ts - -importers: - - .: - dependencies: - pricing4ts: - specifier: link:../../../../../Library/pnpm/global/5/node_modules/pricing4ts - version: link:../../../../../Library/pnpm/global/5/node_modules/pricing4ts diff --git a/node_modules/pricing4ts b/node_modules/pricing4ts deleted file mode 120000 index c9df06c..0000000 --- a/node_modules/pricing4ts +++ /dev/null @@ -1 +0,0 @@ -../../../../../../Library/pnpm/global/5/node_modules/pricing4ts \ No newline at end of file diff --git a/pom.xml b/pom.xml index 74138a7..8dfd887 100644 --- a/pom.xml +++ b/pom.xml @@ -37,17 +37,6 @@ https://github.com/Alex-GF/pricingplans-4j/tree/main - - - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - - 2.14.2 1.9.7 @@ -177,8 +166,16 @@ Pricing4Java - - + + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 + true + + central + true + + org.apache.maven.plugins maven-gpg-plugin @@ -191,32 +188,11 @@ sign - - --pinentry-mode - loopback - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ossrh - https://s01.oss.sonatype.org/ - true - - - - com.thoughtworks.xstream - xstream - 1.4.15 - - - + maven-surefire-plugin 3.5.2