Отсутствуют аннотации ввода-вывода. Проблема Gradle 7.3 с Java 17.JAVA

Программисты JAVA общаются здесь
Anonymous
Отсутствуют аннотации ввода-вывода. Проблема Gradle 7.3 с Java 17.

Сообщение Anonymous »

Я обновился до Gradle 7.3, чтобы сделать его совместимым с Java17. Я продолжаю получать следующую ошибку при сборке задач Docker
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:
1. Add an input or output annotation.
2. Mark it as @Internal.

Please refer to https://docs.gradle.org/7.3/userguide/v ... annotation 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:
1. Add an input or output annotation.
2. Mark it as @Internal.

Please refer to https://docs.gradle.org/7.3/userguide/v ... annotation 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:
1. Add an input or output annotation.
2. Mark it as @Internal.

Please refer to https://docs.gradle.org/7.3/userguide/v ... annotation 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:
1. Add an input or output annotation.
2. Mark it as @Internal.

Please refer to https://docs.gradle.org/7.3/userguide/v ... annotation 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:
1. Add an input or output annotation.
2. Mark it as @Internal.

Написана задача build.gradle
task buildDocker(type: Docker, dependsOn: build) {
applicationName = 'api'
dockerfile = file('src/docker/Dockerfile')
doFirst {
copy {
from file('src/docker')
from war
into stageDir
}
}
}


Подробнее здесь: https://stackoverflow.com/questions/713 ... th-java-17

Вернуться в «JAVA»