I have upgraded to Gradle 7.3 to make it compatiple with Java17.I keep getting the below error for task buildDocker
Task :buildDocker FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Some problems were found with the configuration of task ‘:buildDocker’ (type ‘DockerTask’).-
In plugin ‘docker’ type ‘se.transmode.gradle.plugins.docker.DockerTask’ property ‘apiEmail’ is missing an input or output annotation.
Reason: A property without annotation isn’t considered during up-to-date checking.
Possible solutions:
- Add an input or output annotation.
- Mark it as @Internal.
Please refer to Dealing with validation problems for more details about this problem.
-
In plugin ‘docker’ type ‘se.transmode.gradle.plugins.docker.DockerTask’ property ‘apiPassword’ is missing an input or output annotation.
Reason: A property without annotation isn’t considered during up-to-date checking.
Possible solutions:
- Add an input or output annotation.
- Mark it as @Internal.
Please refer to Dealing with validation problems for more details about this problem.
-
In plugin ‘docker’ type ‘se.transmode.gradle.plugins.docker.DockerTask’ property ‘apiUsername’ is missing an input or output annotation.
Reason: A property without annotation isn’t considered during up-to-date checking.
Possible solutions:
- Add an input or output annotation.
- Mark it as @Internal.
Please refer to Dealing with validation problems for more details about this problem.
-
In plugin ‘docker’ type ‘se.transmode.gradle.plugins.docker.DockerTask’ property ‘applicationName’ is missing an input or output annotation.
Reason: A property without annotation isn’t considered during up-to-date checking.
Possible solutions:
- Add an input or output annotation.
- Mark it as @Internal.
Please refer to Dealing with validation problems for more details about this problem.
-
In plugin ‘docker’ type ‘se.transmode.gradle.plugins.docker.DockerTask’ property ‘baseImage’ is missing an input or output annotation.
Reason: A property without annotation isn’t considered during up-to-date checking.
Possible solutions:
- Add an input or output annotation.
- Mark it as @Internal.
The task written is build.gradle is
task buildDocker(type: Docker, dependsOn: build) {
applicationName = ‘api’
dockerfile = file(‘src/docker/Dockerfile’)
doFirst {
copy {
from file(‘src/docker’)
from war
into stageDir
}
}
}
-
strong text