Jvm Convention
Configure Java
This sets up the correct toolchain, and applies conventions for consistency. You might also want to apply the java-library
or java-application
plugins, if they are appropriate for your project.
This plugin is configured inside the aylett
block. You may override the toolchain version from the default of 17:
aylett {
jvm {
jvmVersion.set(17)
}
}
Content copied to clipboard
Apply this plugin to your project in the plugins block:
plugins {
id("eu.aylett.conventions.jvm")
}
Content copied to clipboard
Or by applying the Conventions plugin:
plugins {
id("eu.aylett.conventions")
}
Content copied to clipboard