3:06:20 PM: Executing ':MyApp.main()'...
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :MyApp.main()
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings
and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 190ms
3 actionable tasks: 1 executed, 2 up-to-date
3:06:20 PM: Execution finished ':MyApp.main()'.

Solution 1: Suppress the warning
In order to hide this warning, just add the below lines in your projects build.gradle files.
allprojects {
tasks.withType(JavaCompile) {
options.deprecation = true
}
}
Solution 2: Identify the incompatible features and replace them
Run the below command in Terminal to know the list of all incompatible features used,
./gradlew build --warning-mode all
Solution 3: Downgrade Gradle
If you want to use the older features of Gradle, just downgrade from version, or simply ignore the warnings!
-
Have Questions? Post them here!
More Posts related to Gradle,
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
- Find installed Gradle version command
- Run IntelliJ Java main method without Gradle build
- Install Gradle VS Code for Java Projects
- Fix: Invalid Gradle JDK configuration found. Could not find the required JavaSDK
- Create a Gradle Java Project in VS Code
- Generate Project Dependency tree using Gradle Command
- How to Clear Gradle Cache on Mac
- How to create Gradle Multi-Project in IntelliJ
- How to run Gradle build in offline mode
- Installing Gradle on macOS - Gradle Tutorial
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Adding Jackson dependency to Java Gradle Project
More Posts:
- SharePoint Server 2016 IT Preview Deprecated Removed features - SharePoint
- How to do calculations in Mac Terminal - MacOS
- Read a file line by line in Python Program - Python
- How to display directory tree in Mac Terminal - MacOS
- SharePoint installation - Appfabric installation failed because installer MSI returned with error code:1603 - SharePoint
- How to configure PDF iFilter for SharePoint - SharePoint
- Turn Off Google Analytics intelligence Alert Emails - Google
- Java 8 Format Date and Time Examples - Java