This explores ideas with a simpler DSL to configure applications and libraries written with Java.
Instead of using the top-level dependencies block or extensions, all configuration is moved under a new javaApplication
and javaLibrary
block.
The example is generated with gradle init
. It requires running Gradle with Java 17.
./gradlew build
should compile and test the project.
Declares a few dependencies and the main class for a Java application.
Declares a few dependencies for a Java library.
Sets up some common conventions for a Java application and library.