Skip to content

fix: declare Gradle plugin feature compatibility for portal publishing - #5411

Merged
djankows merged 2 commits into
masterfrom
fix/gradle-plugin-publish-compatibility
Nov 19, 2026
Merged

djankows merged 2 commits into
masterfrom
fix/gradle-plugin-publish-compatibility

Conversation

@djankows

Copy link
Copy Markdown
Member

io.swagger.core.v3.swagger-gradle-plugin 3.0.0 is already on the Gradle Plugin Portal. It was published from the 3.0.0 branch with configurationCache = true and isolatedProjects = true. The
portal checks each new upload against the most recently published version, regardless of release line. Master still used com.gradle.plugin-publish 0.21.0, which can't send compatibility declarations at
all. So every 2.x upload now looks like it removes them and gets rejected.

Changes

  • modules/swagger-gradle-plugin/build.gradle
    • Bump com.gradle.plugin-publish from 0.21.0 to 2.2.1. This is the first version whose bundled compatibility plugin supports isolatedProjects.
    • Move the pluginBundle {} settings (website, vcsUrl, displayName, description, tags) into gradlePlugin {}.
    • Declare configurationCache = true and isolatedProjects = true, matching 3.0.0. Both are accurate for this plugin: SwaggerPlugin only registers a task on its own project, and ResolveTask doesn't
      call getProject() while it runs.
  • .github/workflows/release.yml
    • Add a Set up Java 17 step before Run post release script. plugin-publish 2.2.1's Gradle metadata requires a Java 17+ runtime, and Gradle won't resolve it on Java 11. The Maven build, deploy and
      javadoc steps still run on Java 11.

@djankows
djankows merged commit 0cc7399 into master Nov 19, 2026
7 checks passed
@djankows
djankows deleted the fix/gradle-plugin-publish-compatibility branch November 19, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants