From 50722ca1599c35f317fb02adc2fc110bf1ddad2f Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 12 Aug 2025 15:49:30 +0530 Subject: [PATCH 01/23] update to central portal --- .github/workflows/release.yml | 8 +++++--- auto-generated-sdk/pom.xml | 27 +++++++++++++++++++++------ 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cacc538a..c56e5420 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,8 @@ env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} on: release: @@ -22,9 +24,9 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 - server-id: ossrh - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD + server-id: central + server-username: MAVEN_CENTRAL_USERNAME + server-password: MAVEN_CENTRAL_PASSWORD gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE diff --git a/auto-generated-sdk/pom.xml b/auto-generated-sdk/pom.xml index 5382cb54..6ec50b7d 100644 --- a/auto-generated-sdk/pom.xml +++ b/auto-generated-sdk/pom.xml @@ -5,15 +5,21 @@ engines-sdk jar engines-sdk - 6.2.0 + 6.2.1-SNAPSHOT https://github.com/factset/analyticsapi-engines-java-sdk SDK for FactSet Analytics Engines API - - ossrh - Central Repository OSSRH - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - + + Central Portal Snapshots + central-portal-snapshots + https://central.sonatype.com/repository/maven-snapshots/ + + false + + + true + + scm:git:git://github.com/factset/analyticsapi-engines-java-sdk.git @@ -91,6 +97,15 @@ + + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 + true + + central + + From 0ef6c176cbbee1ab6653d7c83f44922503084132 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 12 Aug 2025 15:59:08 +0530 Subject: [PATCH 02/23] update tests pom.xml --- tests/pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pom.xml b/tests/pom.xml index 72321621..202853af 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -3,7 +3,7 @@ com.factset tests - 0.0.1 + 0.0.2 @@ -116,7 +116,7 @@ system - ${project.basedir}/../auto-generated-sdk/target/engines-sdk-6.2.0.jar + ${project.basedir}/../auto-generated-sdk/target/engines-sdk-6.2.1-SNAPSHOT.jar com.factset.analyticsapi engines-sdk ${engines-sdk-version} @@ -142,7 +142,7 @@ 4.13.1 3.12.2 1.6.0 - 6.2.0 + 6.2.1-SNAPSHOT 4.0.1 From f6b6322980e3847be55c5337c41495b81ae35c48 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Wed, 13 Aug 2025 16:13:59 +0530 Subject: [PATCH 03/23] adding gpg import step --- .github/workflows/release.yml | 9 ++++++++- auto-generated-sdk/pom.xml | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c56e5420..45f98760 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,8 +30,15 @@ jobs: gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Import GPG key + run: | + echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" > private.key + gpg --batch --import private.key + echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf + rm -f private.key + - name: Build run: mvn -B package --file auto-generated-sdk/pom.xml - name: Publish to Apache Maven Central - run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy + run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy -Dgpg.passphrase="${{ secrets.MAVEN_GPG_PASSPHRASE }}" \ No newline at end of file diff --git a/auto-generated-sdk/pom.xml b/auto-generated-sdk/pom.xml index 6ec50b7d..d310fc4a 100644 --- a/auto-generated-sdk/pom.xml +++ b/auto-generated-sdk/pom.xml @@ -219,7 +219,7 @@ org.apache.maven.plugins maven-gpg-plugin - 1.6 + 3.2.8 sign-artifacts @@ -227,7 +227,7 @@ sign - + --pinentry-mode From d5b465f5734406d55cda89b394726c5608c03603 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Wed, 13 Aug 2025 17:01:17 +0530 Subject: [PATCH 04/23] fix --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45f98760..4e82c5f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,13 +32,11 @@ jobs: - name: Import GPG key run: | - echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" > private.key - gpg --batch --import private.key + echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf - rm -f private.key - name: Build run: mvn -B package --file auto-generated-sdk/pom.xml - name: Publish to Apache Maven Central - run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy -Dgpg.passphrase="${{ secrets.MAVEN_GPG_PASSPHRASE }}" \ No newline at end of file + run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy \ No newline at end of file From cddd2d9bc06c848f01de01e2e48ba4ba17cb41b9 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Wed, 13 Aug 2025 17:41:31 +0530 Subject: [PATCH 05/23] commenting out import gpg step --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e82c5f0..003d2585 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,10 +30,10 @@ jobs: gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - - name: Import GPG key - run: | - echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import - echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf +# - name: Import GPG key +# run: | +# echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import +# echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf - name: Build run: mvn -B package --file auto-generated-sdk/pom.xml From 8d2afd9a37a5243d52078511208f49f794d482f1 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Wed, 13 Aug 2025 18:45:05 +0530 Subject: [PATCH 06/23] Update release.yml --- .github/workflows/release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 003d2585..0a4bccad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,6 @@ name: Release env: MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} @@ -20,6 +18,11 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Import GPG key + run: | + echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import + echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf + - name: Set up JDK uses: actions/setup-java@v1 with: @@ -30,11 +33,6 @@ jobs: gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE -# - name: Import GPG key -# run: | -# echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import -# echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf - - name: Build run: mvn -B package --file auto-generated-sdk/pom.xml From 736bcbc4e44511370b5f73e1e96ebad4542ca6ea Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Thu, 14 Aug 2025 13:01:44 +0530 Subject: [PATCH 07/23] test code --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a4bccad..67b00db8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,10 @@ jobs: server-password: MAVEN_CENTRAL_PASSWORD gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - + + - name: List GPG secret keys + run: gpg --list-secret-keys --keyid-format LONG + - name: Build run: mvn -B package --file auto-generated-sdk/pom.xml From 165e4475fa97270b7ddb3e571f7c9c7b4c1b4b28 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 19 Aug 2025 16:21:30 +0530 Subject: [PATCH 08/23] Update release.yml --- .github/workflows/release.yml | 50 ++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67b00db8..a3a087e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,5 @@ name: Release -env: - MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} - MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} - on: release: types: [ published ] @@ -16,28 +10,40 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Import GPG key - run: | - echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import - echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf +# - name: Import GPG key +# run: | +# echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import +# echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 1.8 - server-id: central - server-username: MAVEN_CENTRAL_USERNAME - server-password: MAVEN_CENTRAL_PASSWORD - gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} - gpg-passphrase: MAVEN_GPG_PASSPHRASE - - name: List GPG secret keys - run: gpg --list-secret-keys --keyid-format LONG - - - name: Build + - name: Build with Maven run: mvn -B package --file auto-generated-sdk/pom.xml + - name: Publish to Github Packages Apache Maven + run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Set up Apache Maven Central + uses: actions/setup-java@v4 + with: # running setup-java again overwrites the settings.xml + distribution: 'temurin' + java-version: '11' + server-id: central # Value of the distributionManagement/repository/id field of the pom.xml + server-username: MAVEN_USERNAME # env variable for username in deploy + server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import + gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Publish to Apache Maven Central - run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy \ No newline at end of file + run: mvn deploy + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} \ No newline at end of file From 1078e3a97fe075c8cf138bc12001a6de8e4f867e Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 19 Aug 2025 16:43:31 +0530 Subject: [PATCH 09/23] Update release.yml --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3a087e3..1ee3880e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,7 @@ jobs: uses: actions/setup-java@v4 with: java-version: 1.8 + distribution: 'temurin' - name: Build with Maven run: mvn -B package --file auto-generated-sdk/pom.xml From f53e8877aaae067c6d909a6d04e08d88c974c736 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 19 Aug 2025 16:52:10 +0530 Subject: [PATCH 10/23] updating java version --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ee3880e..048dc025 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@v4 with: - java-version: 1.8 + java-version: '8' distribution: 'temurin' - name: Build with Maven From 964873cbea0c665ec9b01b7086b4350c76de0101 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 19 Aug 2025 17:11:32 +0530 Subject: [PATCH 11/23] Update release.yml --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 048dc025..308ebced 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v4 -# - name: Import GPG key -# run: | -# echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import -# echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf + - name: Import GPG key + run: | + echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import + echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf - name: Set up JDK uses: actions/setup-java@v4 From a789c41174d4f53863db0294e7cad91d09df5f8a Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 19 Aug 2025 18:02:02 +0530 Subject: [PATCH 12/23] Update release.yml --- .github/workflows/release.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 308ebced..1f28dcba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v3 - name: Import GPG key run: | @@ -22,25 +22,14 @@ jobs: with: java-version: '8' distribution: 'temurin' - - - name: Build with Maven - run: mvn -B package --file auto-generated-sdk/pom.xml - - - name: Publish to Github Packages Apache Maven - run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy - env: - GITHUB_TOKEN: ${{ github.token }} - - - name: Set up Apache Maven Central - uses: actions/setup-java@v4 - with: # running setup-java again overwrites the settings.xml - distribution: 'temurin' - java-version: '11' server-id: central # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Build with Maven + run: mvn -B package --file auto-generated-sdk/pom.xml - name: Publish to Apache Maven Central run: mvn deploy From 30e904df235726c49a17bce1a219106a21fd638c Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 19 Aug 2025 18:07:10 +0530 Subject: [PATCH 13/23] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f28dcba..50df38c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: run: mvn -B package --file auto-generated-sdk/pom.xml - name: Publish to Apache Maven Central - run: mvn deploy + run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy env: MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} From 206cc804426f4dbb782d13ffc668d9d69a4dbd45 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 19 Aug 2025 18:32:10 +0530 Subject: [PATCH 14/23] Update pom.xml --- auto-generated-sdk/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto-generated-sdk/pom.xml b/auto-generated-sdk/pom.xml index d310fc4a..2ce57225 100644 --- a/auto-generated-sdk/pom.xml +++ b/auto-generated-sdk/pom.xml @@ -9,7 +9,7 @@ https://github.com/factset/analyticsapi-engines-java-sdk SDK for FactSet Analytics Engines API - + Central Portal Snapshots central-portal-snapshots https://central.sonatype.com/repository/maven-snapshots/ @@ -19,7 +19,7 @@ true - + scm:git:git://github.com/factset/analyticsapi-engines-java-sdk.git From 73aab4cc1fb43595b11c436ae810b3f6dcd21db3 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 19 Aug 2025 19:27:39 +0530 Subject: [PATCH 15/23] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 50df38c1..5a035e63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: run: mvn -B package --file auto-generated-sdk/pom.xml - name: Publish to Apache Maven Central - run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy + run: cd auto-generated-sdk && mvn verify deploy env: MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} From c8c2bfb8887ec9d5d76c002e6463754e8c321540 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 26 Aug 2025 13:41:11 +0530 Subject: [PATCH 16/23] renaming username variable --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a035e63..1667e0b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: java-version: '8' distribution: 'temurin' server-id: central # Value of the distributionManagement/repository/id field of the pom.xml - server-username: MAVEN_USERNAME # env variable for username in deploy + server-username: MAVEN_PORTAL_USERNAME # env variable for username in deploy server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import gpg-passphrase: MAVEN_GPG_PASSPHRASE @@ -34,6 +34,6 @@ jobs: - name: Publish to Apache Maven Central run: cd auto-generated-sdk && mvn verify deploy env: - MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN__PORTAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} \ No newline at end of file From bd5cfd76acbe7d59229b71363529201565c7ee56 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 2 Sep 2025 17:17:06 +0530 Subject: [PATCH 17/23] adding jdk setup for snapshot --- .github/workflows/release.yml | 52 +++++++++++++++++++++++++++++------ auto-generated-sdk/pom.xml | 20 +++++++++++--- 2 files changed, 60 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1667e0b0..a683845e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,24 +16,60 @@ jobs: run: | echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf - - - name: Set up JDK + + - name: Extract version from pom.xml + id: get_version + run: | + version=$(xmllint --xpath "/*[local-name()='project']/*[local-name()='version']/text()" auto-generated-sdk/pom.xml) + echo "version=$version" >> $GITHUB_OUTPUT + if [[ "$version" == *SNAPSHOT* ]]; then + echo "is_snapshot=true" >> $GITHUB_OUTPUT + else + echo "is_snapshot=false" >> $GITHUB_OUTPUT + fi + + - name: Set up JDK for snapshot repository + if: steps.get_version.outputs.is_snapshot == 'true' + uses: actions/setup-java@v4 + with: + java-version: '8' + distribution: 'temurin' + server-id: central-portal-snapshots + server-username: MAVEN_PORTAL_USERNAME + server-password: MAVEN_CENTRAL_TOKEN + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Set up JDK for release repository + if: steps.get_version.outputs.is_snapshot == 'false' uses: actions/setup-java@v4 with: java-version: '8' distribution: 'temurin' - server-id: central # Value of the distributionManagement/repository/id field of the pom.xml - server-username: MAVEN_PORTAL_USERNAME # env variable for username in deploy - server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import + server-id: central + server-username: MAVEN_PORTAL_USERNAME + server-password: MAVEN_CENTRAL_TOKEN + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + +# - name: Set up JDK +# if: steps.get_version.outputs.is_snapshot == 'true' +# uses: actions/setup-java@v4 +# with: +# java-version: '8' +# distribution: 'temurin' +# server-id: central # Value of the distributionManagement/repository/id field of the pom.xml +# server-username: MAVEN_PORTAL_USERNAME # env variable for username in deploy +# server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy +# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import +# gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Build with Maven run: mvn -B package --file auto-generated-sdk/pom.xml - name: Publish to Apache Maven Central - run: cd auto-generated-sdk && mvn verify deploy + run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy env: - MAVEN__PORTAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_PORTAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} \ No newline at end of file diff --git a/auto-generated-sdk/pom.xml b/auto-generated-sdk/pom.xml index 2ce57225..f1fa751b 100644 --- a/auto-generated-sdk/pom.xml +++ b/auto-generated-sdk/pom.xml @@ -9,7 +9,7 @@ https://github.com/factset/analyticsapi-engines-java-sdk SDK for FactSet Analytics Engines API - + Central Portal Snapshots central-portal-snapshots https://central.sonatype.com/repository/maven-snapshots/ @@ -19,6 +19,14 @@ true + + + Central Portal Releases + central + https://central.sonatype.com + + true + @@ -102,9 +110,6 @@ central-publishing-maven-plugin 0.8.0 true - - central - @@ -237,6 +242,13 @@ + + org.sonatype.central + central-publishing-maven-plugin + + central + + From aaa5bb2550c2f0e7145df61db88bdb8823b05dd0 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Tue, 2 Sep 2025 17:40:21 +0530 Subject: [PATCH 18/23] adding install xmllint step --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a683845e..8dacee00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,9 @@ jobs: echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | gpg --batch --import echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf + - name: Install xmllint + run: sudo apt-get update && sudo apt-get install -y libxml2-utils + - name: Extract version from pom.xml id: get_version run: | From 3570f774cc1a2b9fd02cf6ef09b8c83c2766f7db Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Wed, 3 Sep 2025 10:47:31 +0530 Subject: [PATCH 19/23] Update pom.xml --- auto-generated-sdk/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/auto-generated-sdk/pom.xml b/auto-generated-sdk/pom.xml index f1fa751b..d487b7bd 100644 --- a/auto-generated-sdk/pom.xml +++ b/auto-generated-sdk/pom.xml @@ -247,6 +247,7 @@ central-publishing-maven-plugin central + validated From 108cd5a5e116e3de760080e2c8295f7f114b1139 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Fri, 19 Sep 2025 15:12:25 +0530 Subject: [PATCH 20/23] Update release.yml --- .github/workflows/release.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8dacee00..07b52743 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,18 +54,6 @@ jobs: server-password: MAVEN_CENTRAL_TOKEN gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - -# - name: Set up JDK -# if: steps.get_version.outputs.is_snapshot == 'true' -# uses: actions/setup-java@v4 -# with: -# java-version: '8' -# distribution: 'temurin' -# server-id: central # Value of the distributionManagement/repository/id field of the pom.xml -# server-username: MAVEN_PORTAL_USERNAME # env variable for username in deploy -# server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy -# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import -# gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Build with Maven run: mvn -B package --file auto-generated-sdk/pom.xml From d72777d597cb6c8d133304e60e32508126507e97 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Wed, 22 Oct 2025 12:34:25 +0530 Subject: [PATCH 21/23] removing snapshot --- auto-generated-sdk/pom.xml | 2 +- tests/pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auto-generated-sdk/pom.xml b/auto-generated-sdk/pom.xml index d487b7bd..ee598e7b 100644 --- a/auto-generated-sdk/pom.xml +++ b/auto-generated-sdk/pom.xml @@ -5,7 +5,7 @@ engines-sdk jar engines-sdk - 6.2.1-SNAPSHOT + 6.2.1 https://github.com/factset/analyticsapi-engines-java-sdk SDK for FactSet Analytics Engines API diff --git a/tests/pom.xml b/tests/pom.xml index ac943fc0..7ee3a4c4 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -116,7 +116,7 @@ system - ${project.basedir}/../auto-generated-sdk/target/engines-sdk-6.2.1-SNAPSHOT.jar + ${project.basedir}/../auto-generated-sdk/target/engines-sdk-6.2.1.jar com.factset.analyticsapi engines-sdk ${engines-sdk-version} @@ -142,7 +142,7 @@ 4.13.1 3.25.1 1.6.0 - 6.2.1-SNAPSHOT + 6.2.1 4.0.1 From 1d50ffebeeb77e3328db0ca18b2e661e0ada4411 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Wed, 22 Oct 2025 16:54:56 +0530 Subject: [PATCH 22/23] Update pom.xml --- auto-generated-sdk/pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auto-generated-sdk/pom.xml b/auto-generated-sdk/pom.xml index ee598e7b..1e480006 100644 --- a/auto-generated-sdk/pom.xml +++ b/auto-generated-sdk/pom.xml @@ -110,6 +110,9 @@ central-publishing-maven-plugin 0.8.0 true + + ${groupId}-${artifactId}-${version} + From 60322f9ca77e14e4caa235028c321bb5a1e7d359 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Wed, 22 Oct 2025 20:28:28 +0530 Subject: [PATCH 23/23] Update pom.xml --- auto-generated-sdk/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-generated-sdk/pom.xml b/auto-generated-sdk/pom.xml index 1e480006..700c8f58 100644 --- a/auto-generated-sdk/pom.xml +++ b/auto-generated-sdk/pom.xml @@ -111,7 +111,7 @@ 0.8.0 true - ${groupId}-${artifactId}-${version} + ${project.groupId}-${project.artifactId}-${project.version}