From dd87c971eee6eb5a1b45062dd0892211e813400a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BE=D0=B1=D0=BE=D0=BB=D0=B5=D0=B2=20=D0=92=D0=B0?= =?UTF-8?q?=D1=81=D0=B8=D0=BB=D0=B8=D0=B9?= Date: Wed, 29 Jul 2026 11:37:31 +0300 Subject: [PATCH] Remove legacy plugin ID and fix signing for Gradle Plugin Portal - Remove mapstructLegacy plugin (com.github.akazver.mapstruct) - only io.github.akazver.mapstruct remains - Add signing keys to publish-gradle-portal job (required by vanniktech plugin) - Remove migration section from README (no longer needed) This fixes both publishing failures: - Gradle Plugin Portal: signing tasks now have configured signatory - Maven Central: no more 'Namespace com.github.akazver.mapstruct is not allowed' error --- .github/workflows/main.yml | 2 ++ README.md | 4 ---- build.gradle | 7 ------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c17246e..0108156 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -131,6 +131,8 @@ jobs: env: GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} run: ./gradlew publishPlugins - name: Create GitHub Release diff --git a/README.md b/README.md index 4884096..dee42c9 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,6 @@ plugins { } ``` -## Migration from older versions - -If you were using the old plugin ID `com.github.akazver.mapstruct`, you can continue using it for backward compatibility. However, we recommend migrating to the new ID `io.github.akazver.mapstruct` - ## How it works The plugin automatically: diff --git a/build.gradle b/build.gradle index db17a6c..f372f29 100644 --- a/build.gradle +++ b/build.gradle @@ -22,13 +22,6 @@ gradlePlugin { implementationClass = 'io.github.akazver.gradle.plugins.mapstruct.MapstructPlugin' tags.set(['mapstruct', 'mapping', 'lombok', 'spring', 'quarkus', 'camel', 'protobuf']) } - mapstructLegacy { - id = 'com.github.akazver.mapstruct' - displayName = 'MapStruct Plugin (Legacy)' - description = 'Automatic MapStruct configuration (legacy ID, use io.github.akazver.mapstruct instead)' - implementationClass = 'io.github.akazver.gradle.plugins.mapstruct.MapstructPlugin' - tags.set(['mapstruct', 'mapping', 'lombok', 'spring', 'quarkus', 'camel', 'protobuf']) - } } }