compileJava
compileJava is a task within the Gradle build automation tool. Its primary function is to compile Java source files into Java bytecode. When a Gradle project includes Java code, the compileJava task is automatically configured and made available. It leverages the Java compiler (javac) to perform the compilation process. The task identifies all Java source files within the project's configured source sets, typically found in directories like 'src/main/java' and 'src/test/java'. It then passes these source files to the javac compiler, along with any necessary dependencies from the project's compile classpath.
The output of the compileJava task is Java class files, which are typically placed in the project's