Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning for unreadable inputs #218

Open
robertwenner opened this issue Sep 19, 2022 · 0 comments
Open

Deprecation warning for unreadable inputs #218

robertwenner opened this issue Sep 19, 2022 · 0 comments

Comments

@robertwenner
Copy link

Steps:

  • Create git repo: git init .
  • Create Gradle project: gradle init --type java-application
  • Add id "com.gorylenko.gradle-git-properties" version "2.4.1" to the plugins block in app/build.gradle
  • Run gradle --warning-mode all generateGitProperties

In both Gradle 7.4 and 7.5.1 I get:

> Task :app:generateGitProperties
Cannot access input property 'source' of task ':app:generateGitProperties' (see --info log for details). Accessing unreadable inputs or outputs has been deprecated. This will fail with an error in Gradle 8.0. Declare the task as untracked by using Task.doNotTrackState(). Consult the upgrading guide for further information: https://docs.gradle.org/7.5.1/userguide/upgrading_version_7.html#declare_unreadable_input_output

How can I avoid that warning in my build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant