I am using the Gradle plugin. At the end of the build it says:
"Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. Use '--warning-mode all' to show the individual deprecation warnings."
But I have no idea to pass a command line option to Gradle in IDEA. I've read several suggestions to add it to the gradle.properties folder but it doesn't exist for me.
I've tried adding it to gradle-wrapper.properties but that isn't correct and doesn't change anything.
Preferably I suppose I would like to not use any deprecated gradle features. I downloaded the latest version online not sure why any of the features should be deprecated in any case.
Has anyone ever solved this before? Other answer to questions hasn't fixed the issue and I seem lost on this.
CodePudding user response:
Use org.gradle.warning.mode=(all,fail,summary,none)
in the gradle.properties
file.
CodePudding user response:
The problem I and other people were having was locating the gradle.properties file. Actually, I could have just created it. Solution:
If your build doesn't have the gradle.properties file just create the file in the project directory. In the directory, write the following command: org.gradle.warning.mode=all [this will log whatever is deprecated] Fix the issue or you can just eliminate the warnings altogether if you so choose. Hope this helps someone it was driving me nuts.