'Missing input output annotations gradle 7.3 issue with java 17

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:

      1. Add an input or output annotation.
      2. Mark it as @Internal.

      Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_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/validation_problems.html#missing_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/validation_problems.html#missing_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/validation_problems.html#missing_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.

      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 } } }



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source