I am migrating my groovy syntac to kotlin dsl and struggling while building the buildRpm() task provided by nebula plugin.
Currntly I have in my builod.gradle.kts
plugins {
id("nebula.ospackage") version "8.3.0"
}
apply(plugin = "nebula.rpm")
I am creating my task with the following:
val buildRpm by creating(Rpm::class) {
println("building")
}
and when running ./gradlew buildRpm I get Unresolved reference: Rpm
How can I create Rpm with kotlin dsl then ?
Here is how you want to set up your Gradle:
You don't need apply here as that is already done when you declare your plugin usage as above above.
And the task:
And make sure to import the
Rpmtask at the top of the file.