Transmode / gradle-docker

A Gradle plugin to build Docker images from the build script.
Apache License 2.0
647 stars 142 forks source link

Gradle 7 - Missing Annotation DockerTask #160

Open asasisekar opened 3 years ago

asasisekar commented 3 years ago

The Gradle tasks provided by this plugin must have all their outputs & inputs annotated in order to be compatible with Gradle 7.


Type 'se.transmode.gradle.plugins.docker.DockerTask' property 'apiPassword' is missing an input or output annotation.
Type 'se.transmode.gradle.plugins.docker.DockerTask' property 'apiUsername' is missing an input or output annotation.
Type 'se.transmode.gradle.plugins.docker.DockerTask' property 'applicationName' is missing an input or output annotation.
Type 'se.transmode.gradle.plugins.docker.DockerTask' property 'baseImage' is missing an input or output annotation.```
kxalex commented 2 years ago

If you need Gradle 7 I had to make a version for myself, so feel free to try it.

https://plugins.gradle.org/plugin/com.github.kxalex/1.4.1 https://github.com/kxalex/gradle-docker

I'd appreciate feedback as I made changes for my project only, but glad to make proper support.

dushshantha commented 2 years ago

I am facing this issue after upgrading Gradle version. Any update on this? or a workaround would be appreciated

lcardozo-tl commented 2 years ago

@dushshantha I checked it but I noticed you set @Internal private Dockerfile dockerfile why? Now I see: Could not find method dockerfile() for arguments [... Dockerfile] on task ':distDocker' of type se.transmode.gradle.plugins.docker.DockerTask.

hiteshpatelsky commented 1 year ago

I am facing this issue after upgrading Gradle 7.5 version. Any update on this? or a workaround would be appreciated, I have tried all version and made all changes but not work out, Please post here how to resolve this issue. Thanks