gradle-docker-plugin icon indicating copy to clipboard operation
gradle-docker-plugin copied to clipboard

Plugin doesn't work on Gradle 6.9.x

Open Sineaggi opened this issue 2 years ago • 1 comments

Expected Behavior

Build succeeds

Current Behavior

Build fails with exception

> Task :dockerCreateDockerfile
FAILURE: Build failed with an exception.

* What went wrong:
Receiver class com.bmuschko.gradle.docker.tasks.image.Dockerfile$CopyFile does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getProperty(java.lang.String)' of interface groovy.lang.GroovyObject.
2 actionable tasks: 2 executed

Context

Steps to Reproduce (for bugs)

Checkout the smoke-tests pr, run smoke tests on gradle 6.9.x

Your Environment

Java 11, Gradle 6.9.x

Sineaggi avatar Sep 13 '22 20:09 Sineaggi

Can you give me some background on why you want this to be fixed? Can you not upgrade to Gradle 7.x or what's the reasoning?

bmuschko avatar Oct 06 '22 02:10 bmuschko

I released a new version of the plugin. Thanks again for your work. Do you want to give it try with that one?

bmuschko avatar Dec 21 '22 01:12 bmuschko

So internally our tests now pass with Gradle 6.9.3 again. (We still have some internal projects on 6.x)

I'll try to rework https://github.com/bmuschko/gradle-docker-plugin/pull/1097 to be simpler.

Sineaggi avatar Jan 06 '23 21:01 Sineaggi