JvmConvention

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)
}
}

Apply this plugin to your project in the plugins block:

plugins {
id("eu.aylett.conventions.jvm")
}

Or by applying the Conventions plugin:

plugins {
id("eu.aylett.conventions")
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(target: Project)