-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle build fails with "java.lang.NoClassDefFoundError: org/gradle/api/plugins/MavenPlugin" #112
Comments
same, what is the status of this? |
Also getting this with releases 1.1.6 and 1.1.5. Didn't test the others. Lowering gradle version only gave me different errors. Honestly, I have no clue what to do. Tried JDK 20 and 17, with Java 20, gradle 8.1.1, 7.6, 7.5. What is going on? |
FYI I managed to resolve this by using Java 11. |
Same issue with gradle |
I using Mac. And using brew |
This worked for me (thanks for the indication to run with the gradle downgrade version 6): brew install gradle@6 |
same here, did you already solve it? |
Try using gradle 7.6.3 |
just for reference, this works
|
I am also facing same issue on gradle 8.0. |
Regarding this error message: As far as I know (now) the old maven plugin was finally removed, so if that is still used instead of the maven-publish plugin it will fail (no matter what Java version is used). In my case it was indirectly used by another plugin (shadow) where I had to switch to the latest version. https://docs.gradle.org/current/userguide/upgrading_version_6.html#removal_of_the_legacy_maven_plugin |
Same, spring-boot for me I think, works in gradle 7 but not 8 |
I've recently tried cloning and building this library, but I've found that I'm unable to build it using either the Gradle wrapper or a locally-installed version of Gradle.
I first tried installing via the Gradle wrapper (
./gradlew clean build
), but it failed with this error:The documentation recommends to build the library by running
gradle clean build
(i.e. a locally-installed instance of Gradle), so I'll focus on that for this issue. The steps below reflect my attempt to build this library on macOS with no prior version of Gradle installed.Steps To Reproduce
git clone https://github.com/aws/aws-msk-iam-auth.git
brew install gradle
gradle clean build --stacktrace
Output
Running the last step produces the following output:
Environment
The text was updated successfully, but these errors were encountered: