badass-jlink-plugin
badass-jlink-plugin copied to clipboard
Property 'mainClass' not set in 'secondaryLauncher' block
When defining a secondary launcher with Kotlin DSL:
jlink {
secondaryLauncher {
name = "my-additional-app"
mainClass.set("org.example.MyAdditionalApp")
args = listOf("--user", "emma")
}
}
Gradle complains with:
Property 'mainClass' not set in 'secondaryLauncher' block
Is there something I'm doing wrong ?
BTW, the example in the documention for Kotlin DSL reads:
mainClass = "org.example.MyAdditionalApp"
which also triggers an error:
Type mismatch: inferred type is String but Property<String!>! was expected