From c70196c6bb7f323434045b9488db99bc0c04963d Mon Sep 17 00:00:00 2001 From: xdevanshux Date: Fri, 13 Feb 2026 19:11:16 +0530 Subject: [PATCH 1/6] changes --- .github/workflows/main.yml | 44 +++++++++++++++++++++++++++----------- pom.xml | 17 ++++++++++----- 2 files changed, 43 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b0cdcf3..f40adc9e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,13 @@ +# Release to Maven Central via Central Publisher Portal +# https://central.sonatype.org/publish/publish-portal-guide/ +# +# Required GitHub secrets (Settings → Secrets and variables → Actions): +# CENTRAL_TOKEN_USERNAME - Portal token username (from https://central.sonatype.com/usertoken) +# CENTRAL_TOKEN_PASSWORD - Portal token password (from same page; save on first view, cannot be retrieved later) +# GPG_SECRET_KEY - Armored GPG private key for signing +# GPG_PASSPHRASE - Passphrase for the GPG key +# PAT - Personal access token with repo scope (for pushing commits/tags) +# name: IABGPP-Java Release on: @@ -14,15 +24,15 @@ jobs: steps: # Checkout the repository with full history for tagging - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - # Set up Java (assuming Java 11, adjust if different) + # Set up Java - name: Set up Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: - distribution: 'adopt' + distribution: 'temurin' java-version: '21' # Import GPG secret key for signing @@ -31,16 +41,26 @@ jobs: echo "${{ secrets.GPG_SECRET_KEY }}" > secret_key.asc gpg --import --no-tty --batch secret_key.asc || { echo "GPG import failed"; cat secret_key.asc; exit 1; } rm -f secret_key.asc - # gpg --list-secret-keys - - # Generate settings.xml with Maven repository credentials + # Generate settings.xml with Central Publisher Portal token credentials + # Token from: https://central.sonatype.com/usertoken - name: Create settings.xml + env: + CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }} + CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }} run: | mkdir -p ~/.m2 cat > ~/.m2/settings.xml << EOF - - ~/.m2 false false org.sonatype.plugins sonatype-nexus-snapshots TiW/t45q ${{ secrets.SONATYPE_PWD }} sonatype-nexus-staging TiW/t45q ${{ secrets.SONATYPE_PWD_STAGING }} + + + + central + ${CENTRAL_TOKEN_USERNAME} + ${CENTRAL_TOKEN_PASSWORD} + + EOF @@ -52,14 +72,13 @@ jobs: - name: Set release version run: mvn versions:set -DnewVersion=${{ github.event.inputs.version }} -DgenerateBackupPoms=false - # Build and deploy the release + # Build and deploy to Central Publisher Portal (mvn deploy uploads bundle and publishes) - name: Deploy release run: | echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf echo "use-agent" >> ~/.gnupg/gpg.conf export GPG_TTY=$(tty || echo /dev/tty) mvn clean deploy --settings ~/.m2/settings.xml -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" -Prelease - # mvn clean deploy --settings ~/.m2/settings.xml -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" -Prelease -Dmaven.javadoc.skip=true # Commit the release version and create a tag - name: Commit and tag release @@ -80,7 +99,6 @@ jobs: NEW_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) git add . git commit -m "$NEW_VERSION" - # git commit -m "${{ github.event.inputs.version }}-SNAPSHOT" # Push commits and tags to GitHub - name: Push changes @@ -88,4 +106,4 @@ jobs: git status git push; git push --tags env: - GITHUB_TOKEN: ${{secrets.PAT}} + GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/pom.xml b/pom.xml index 892005fc..9b5db157 100644 --- a/pom.xml +++ b/pom.xml @@ -40,11 +40,7 @@ Sonatype Nexus Snapshots https://s01.oss.sonatype.org/content/repositories/snapshots/ - - sonatype-nexus-staging - Nexus Release Repository - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - + @@ -113,6 +109,17 @@ release + + org.sonatype.central + central-publishing-maven-plugin + 0.10.0 + true + + central + true + published + + org.apache.maven.plugins maven-source-plugin From 2e12f77c66c67b48f33aabfe183b694398920aa2 Mon Sep 17 00:00:00 2001 From: xdevanshux Date: Fri, 13 Feb 2026 19:19:27 +0530 Subject: [PATCH 2/6] namespace updated and creds --- .github/workflows/main.yml | 12 ++++++------ README.md | 10 +++++----- iabgpp-encoder/pom.xml | 2 +- iabgpp-extras-jackson/pom.xml | 4 ++-- iabgpp-extras/pom.xml | 2 +- pom.xml | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f40adc9e..68345e09 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,13 +8,13 @@ # GPG_PASSPHRASE - Passphrase for the GPG key # PAT - Personal access token with repo scope (for pushing commits/tags) # -name: IABGPP-Java Release +name: IABGPP-DevJava Release on: workflow_dispatch: inputs: version: - description: 'The release version (e.g., 3.x.x)' + description: 'The release version (e.g., 1.x.x)' required: true default: '' @@ -46,8 +46,8 @@ jobs: # Token from: https://central.sonatype.com/usertoken - name: Create settings.xml env: - CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }} - CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }} + CENTRAL_TOKEN_USERNAME: KFFdn4 + CENTRAL_TOKEN_PASSWORD: 7Wa4UatigIhxhmTPZT4xmBWVxwuWu0CMm run: | mkdir -p ~/.m2 cat > ~/.m2/settings.xml << EOF @@ -57,8 +57,8 @@ jobs: central - ${CENTRAL_TOKEN_USERNAME} - ${CENTRAL_TOKEN_PASSWORD} + KFFdn4 + 7Wa4UatigIhxhmTPZT4xmBWVxwuWu0CMm diff --git a/README.md b/README.md index fa9345d3..5694cb2e 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ Encode/decode consent information with the IAB GPP Framework #### Maven -The official iabgpp java library is distributed through maven central. Please [search maven central](https://search.maven.org/search?q=g:com.iabgpp) for the current release version. +The official iabgpp java library is distributed through maven central. Please [search maven central](https://search.maven.org/search?q=g:io.github.xdevanshux) for the current release version. #### Decoding ``` - com.iabgpp + io.github.xdevanshux iabgpp-encoder VERSION @@ -39,7 +39,7 @@ Integer uspV1Notice = uspV1Section.getNotice(); ``` - com.iabgpp + io.github.xdevanshux iabgpp-encoder VERSION @@ -78,13 +78,13 @@ List respectively. The `iabgpp-extras-jackson` library uses Jackson 2.10.3 to pa ``` - com.iabgpp + io.github.xdevanshux iabgpp-extras VERSION - com.iabgpp + io.github.xdevanshux iabgpp-extras-jackson VERSION diff --git a/iabgpp-encoder/pom.xml b/iabgpp-encoder/pom.xml index 03e794e5..f8ced4c0 100644 --- a/iabgpp-encoder/pom.xml +++ b/iabgpp-encoder/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - com.iabgpp + io.github.xdevanshux iabgpp-core 3.2.5-SNAPSHOT diff --git a/iabgpp-extras-jackson/pom.xml b/iabgpp-extras-jackson/pom.xml index 99819c6e..0469af37 100644 --- a/iabgpp-extras-jackson/pom.xml +++ b/iabgpp-extras-jackson/pom.xml @@ -6,7 +6,7 @@ iabgpp-core - com.iabgpp + io.github.xdevanshux 3.2.5-SNAPSHOT @@ -22,7 +22,7 @@ - com.iabgpp + io.github.xdevanshux iabgpp-extras 3.2.5-SNAPSHOT diff --git a/iabgpp-extras/pom.xml b/iabgpp-extras/pom.xml index 592a99ad..f62c8809 100644 --- a/iabgpp-extras/pom.xml +++ b/iabgpp-extras/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - com.iabgpp + io.github.xdevanshux iabgpp-core 3.2.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 9b5db157..e2d00cef 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.iabgpp + io.github.xdevanshux iabgpp-core 3.2.5-SNAPSHOT IAB GPP Core Library From ca0a937356f39768cb94650c7a7498697e3da6d0 Mon Sep 17 00:00:00 2001 From: xdevanshux Date: Fri, 13 Feb 2026 19:24:08 +0530 Subject: [PATCH 3/6] name added --- iabgpp-encoder/pom.xml | 1 + iabgpp-extras-jackson/pom.xml | 1 + iabgpp-extras/pom.xml | 1 + 3 files changed, 3 insertions(+) diff --git a/iabgpp-encoder/pom.xml b/iabgpp-encoder/pom.xml index f8ced4c0..400e9a13 100644 --- a/iabgpp-encoder/pom.xml +++ b/iabgpp-encoder/pom.xml @@ -11,6 +11,7 @@ iabgpp-encoder + IAB GPP Encoder jar diff --git a/iabgpp-extras-jackson/pom.xml b/iabgpp-extras-jackson/pom.xml index 0469af37..386b5a68 100644 --- a/iabgpp-extras-jackson/pom.xml +++ b/iabgpp-extras-jackson/pom.xml @@ -11,6 +11,7 @@ iabgpp-extras-jackson + IAB GPP Extras Jackson jar diff --git a/iabgpp-extras/pom.xml b/iabgpp-extras/pom.xml index f62c8809..452f3ebf 100644 --- a/iabgpp-extras/pom.xml +++ b/iabgpp-extras/pom.xml @@ -11,6 +11,7 @@ iabgpp-extras + IAB GPP Extras jar From 85f8bafe81e7e009d3f9640096b068290a91b10b Mon Sep 17 00:00:00 2001 From: xdevanshux Date: Fri, 13 Feb 2026 19:25:20 +0530 Subject: [PATCH 4/6] name changed --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68345e09..02051c85 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ # GPG_PASSPHRASE - Passphrase for the GPG key # PAT - Personal access token with repo scope (for pushing commits/tags) # -name: IABGPP-DevJava Release +name: IABGPP-Java Release on: workflow_dispatch: From 1ee0ee6c31e54f409dbf852ee055bf70cb11d2af Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Fri, 13 Feb 2026 14:01:24 +0000 Subject: [PATCH 5/6] 1.1.2 --- iabgpp-encoder/pom.xml | 2 +- iabgpp-extras-jackson/pom.xml | 4 ++-- iabgpp-extras/pom.xml | 2 +- pom.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iabgpp-encoder/pom.xml b/iabgpp-encoder/pom.xml index 400e9a13..0b0b651d 100644 --- a/iabgpp-encoder/pom.xml +++ b/iabgpp-encoder/pom.xml @@ -7,7 +7,7 @@ io.github.xdevanshux iabgpp-core - 3.2.5-SNAPSHOT + 1.1.2 iabgpp-encoder diff --git a/iabgpp-extras-jackson/pom.xml b/iabgpp-extras-jackson/pom.xml index 386b5a68..4b56fca5 100644 --- a/iabgpp-extras-jackson/pom.xml +++ b/iabgpp-extras-jackson/pom.xml @@ -7,7 +7,7 @@ iabgpp-core io.github.xdevanshux - 3.2.5-SNAPSHOT + 1.1.2 iabgpp-extras-jackson @@ -25,7 +25,7 @@ io.github.xdevanshux iabgpp-extras - 3.2.5-SNAPSHOT + 1.1.2 diff --git a/iabgpp-extras/pom.xml b/iabgpp-extras/pom.xml index 452f3ebf..520fa964 100644 --- a/iabgpp-extras/pom.xml +++ b/iabgpp-extras/pom.xml @@ -7,7 +7,7 @@ io.github.xdevanshux iabgpp-core - 3.2.5-SNAPSHOT + 1.1.2 iabgpp-extras diff --git a/pom.xml b/pom.xml index e2d00cef..1f206bae 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.github.xdevanshux iabgpp-core - 3.2.5-SNAPSHOT + 1.1.2 IAB GPP Core Library https://github.com/IABTechLabs/iabtcf-java Encode and decode consent information with the IAB GPP v3.0. From 64e722592060f7c5d2e4fd905e00cdcbcac68732 Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Fri, 13 Feb 2026 14:01:29 +0000 Subject: [PATCH 6/6] 1.1.3-SNAPSHOT --- iabgpp-encoder/pom.xml | 2 +- iabgpp-extras-jackson/pom.xml | 4 ++-- iabgpp-extras/pom.xml | 2 +- pom.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iabgpp-encoder/pom.xml b/iabgpp-encoder/pom.xml index 0b0b651d..d2c5128d 100644 --- a/iabgpp-encoder/pom.xml +++ b/iabgpp-encoder/pom.xml @@ -7,7 +7,7 @@ io.github.xdevanshux iabgpp-core - 1.1.2 + 1.1.3-SNAPSHOT iabgpp-encoder diff --git a/iabgpp-extras-jackson/pom.xml b/iabgpp-extras-jackson/pom.xml index 4b56fca5..946be8d6 100644 --- a/iabgpp-extras-jackson/pom.xml +++ b/iabgpp-extras-jackson/pom.xml @@ -7,7 +7,7 @@ iabgpp-core io.github.xdevanshux - 1.1.2 + 1.1.3-SNAPSHOT iabgpp-extras-jackson @@ -25,7 +25,7 @@ io.github.xdevanshux iabgpp-extras - 1.1.2 + 1.1.3-SNAPSHOT diff --git a/iabgpp-extras/pom.xml b/iabgpp-extras/pom.xml index 520fa964..9026ffdc 100644 --- a/iabgpp-extras/pom.xml +++ b/iabgpp-extras/pom.xml @@ -7,7 +7,7 @@ io.github.xdevanshux iabgpp-core - 1.1.2 + 1.1.3-SNAPSHOT iabgpp-extras diff --git a/pom.xml b/pom.xml index 1f206bae..0dd1bf81 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.github.xdevanshux iabgpp-core - 1.1.2 + 1.1.3-SNAPSHOT IAB GPP Core Library https://github.com/IABTechLabs/iabtcf-java Encode and decode consent information with the IAB GPP v3.0.