sam
01/28/2025, 12:00 PMproject.tasks.register(JVM_TASK_NAME, KotestJvmTask::class.java) {
setme = "hello" // how to do this?
}
2. I want to make a task that just executes other tasks. Eg I want to register say "uberkotest" which runs "kotestA" and "kotestB". All three tasks are created in the same plugin.LeoColman
01/28/2025, 12:10 PMsam
01/28/2025, 12:12 PMsam
01/28/2025, 12:13 PM@Input
val inputProperty = project.objects.property(String::class.java)
is the wayLeoColman
01/28/2025, 12:14 PMLeoColman
01/28/2025, 12:14 PMsam
01/28/2025, 12:18 PMsam
01/28/2025, 12:18 PMAdam S
01/28/2025, 4:15 PMAdam S
01/28/2025, 4:16 PMAdam S
01/28/2025, 4:18 PM@Input
val inputProperty = project.objects.property(String::class.java)
nitpick: make KotestJvmTask
abstract and simplify it to:
@get:Input
abstract val inputProperty: Property<String>
Then the task is a 'managed type' https://docs.gradle.org/current/userguide/properties_providers.html#managed_typessam
01/28/2025, 4:21 PM