The Java plugin adds a number of tasks to your project, as shown below.| docs.gradle.org
The key difference between the standard Java plugin and the Java Library plugin is that the latter introduces the concept of an API exposed to consumers. A library is a Java component meant to be consumed by other components. It’s a very common use case in multi-project builds, but also as soon as you have external dependencies.| docs.gradle.org
You can define what toolchain to use for a project by stating the Java language version in the java extension block:| docs.gradle.org