swagger-api / swagger-api/swagger-codegen
[java] composite build with gradle > 7.X is failing (Plugin with id 'maven' not found)
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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