Skip to content

Commit

Permalink
fix: add taskGroup parameter to registerTask for gradle groups
Browse files Browse the repository at this point in the history
  • Loading branch information
smlpt authored and skalarproduktraum committed Apr 30, 2024
1 parent 4c460ce commit 101a541
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,10 @@ tasks {
dependsOn(test) // tests are required to run before generating the report
}

fun registerTask(name: String, className: String, propertyPrefix: String) {
fun registerTask(name: String, className: String, propertyPrefix: String, taskGroup: String = "other") {

register(name, JavaExec::class.java) {
group = taskGroup
classpath = sourceSets.main.get().runtimeClasspath

mainClass.set(className)
Expand All @@ -372,7 +373,10 @@ tasks {

registerTask("runImageJMain", "sc.iview.ImageJMain", "scenery.")

registerTask("runInstancingBenchmark", "sc.iview.commands.demo.advanced.InstancingBenchmark", "sciview.benchmark.")
registerTask("runInstancingBenchmark",
"sc.iview.commands.demo.advanced.InstancingBenchmark",
"sciview.benchmark.",
"demos.advanced")


sourceSets.main.get().allSource.files
Expand Down

0 comments on commit 101a541

Please sign in to comment.