I am building a Java project in Jenkins, inside a Docker container. The build is working fine. However, I realized that the image I'm using is a jdk21-headless (Amazon correctto 21 headless) image, which doesn't have javac. How can Gradle build it without javac?
j
Jendrik Johannes
04/25/2024, 2:31 PM
By default, Gradle uses the JavaCompiler API. I.e. it calls the compiler from within a running JVM through the API. The
javac
command ist not used (unless you explicitly configure the compiler task to use one).