-
Notifications
You must be signed in to change notification settings - Fork 129
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
In Gradle 8.0, plugin doesn't work together with gradle-docker-plugin #421
Comments
|
@3ric-T Thanks for submitting this issue I have the same problem. Unfortunately I'm not familiar enough with plugin development to resolve this properly. However I come with workaround and decided to use some ugly hack to resolve this ASAP. I'm using only part of `gradle.ospackage.plugin', so I'm not applying it, but manually registering only required parts. I wasn't testing generated package yet, but it looks valid. Here is part of my build.gradle script:
|
Thanks for this workaround, @karbi ! |
@3ric-T Anything happening on this issue? |
@gjvoosten No news unfortunately. We finally migrate from
to
which seems to be the RPM dedicated part of the preceding but packaged alone. So it does not suffer from the bug. |
Thanks @3ric-T, as it happens we also only need Rpm, so we'll be making the same change. |
Expected Behavior
As a user of
gradle-ospackage-plugin
plugin,I want to have a plugin which runs together with latest version of
gradle-docker-plugin
under version 8.0 of gradle wrapperSo that I can build both Docker images and RPM packages of my application in the same project
Current Behavior
Build fails with the following error:
Partial stacktrace is:
Full stacktrace is attached to the issue
With version 7.6 of Gradle, there is no issue. It seems that you are using an outdated version of
docker-remote-api
in rootbuild.gradle
file:and it can be related to the deprecation of some convention mapping as stated in the error message.
Context
Simple declaration of the plugin, via version catalog file
libs.versions.toml
:Steps to Reproduce (for bugs)
Just declare the plugin as above in build file with Kotlin DSL. Any call to a Gradle task make it fail.
IntelliJ IDEA project is attached to the issue, so that the bug can be easily reproduced.
Your Environment
Gradle 8.0
Openjdk version "17.0.5"
The text was updated successfully, but these errors were encountered: