swagger-api / swagger-api/swagger-codegen

[java] composite build with gradle > 7.X is failing (Plugin with id 'maven' not found)

Open
#11,952 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Generated code with java, so not sure if this might be a problem for other languages too.

A composite build with gradle > 7.X is failing with:

* What went wrong:
A problem occurred evaluating project ':generated-api'.
> Plugin with id 'maven' not found.

In Gradle 7.x the maven plugin has been removed. You should use the
The maven plugin was removed in gradle > 7.X: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html#removal_of_the_legacy_maven_plugin.
Please use the maven-publish plugin if gradle >= 7.X.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the composite build and the generated-api project, then review the Gradle 7 migration note linked in the issue. Verify the build configuration that applies the removed Maven plugin; done means the composite build succeeds on Gradle 7 or later using the supported publishing plugin.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.