How to compile single java file of a gradle project in eclipse

Can anyone help me? I want to compile single java file in which i have made changes.

Have you associated your project with the SpringSource Eclipse Gradle plugin? Even without that, Eclipse dynamically compiles files that it knows to be in a source folder of the project.

Please provide the contents of your build script and your source tree structure. Without this information, there’s no way to know what’s going on in your build.

Below is my java file location


i run “gradlew :webapps:support:dist” to make build

After this script, my war file is cerated in below directory:-