From 2330582a3611f75a46be05dc5c3935f56ba072f6 Mon Sep 17 00:00:00 2001 From: Jorge Aguilera Date: Fri, 14 Jun 2024 17:01:45 +0200 Subject: [PATCH] fix gradle tasks dependencies Signed-off-by: Jorge Aguilera --- .../main/groovy/nextflow/gradle/plugins/GenerateIdxTask.groovy | 1 + .../main/groovy/nextflow/gradle/plugins/NextflowPlugin.groovy | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/nextflow/gradle/plugins/GenerateIdxTask.groovy b/buildSrc/src/main/groovy/nextflow/gradle/plugins/GenerateIdxTask.groovy index ea3718d..4b8708f 100644 --- a/buildSrc/src/main/groovy/nextflow/gradle/plugins/GenerateIdxTask.groovy +++ b/buildSrc/src/main/groovy/nextflow/gradle/plugins/GenerateIdxTask.groovy @@ -20,6 +20,7 @@ abstract class GenerateIdxTask extends DefaultTask{ GenerateIdxTask() { setGroup('nextflow') + dependsOn(project.tasks.findByName('build')) } @TaskAction diff --git a/buildSrc/src/main/groovy/nextflow/gradle/plugins/NextflowPlugin.groovy b/buildSrc/src/main/groovy/nextflow/gradle/plugins/NextflowPlugin.groovy index cf00b7e..f807d0d 100644 --- a/buildSrc/src/main/groovy/nextflow/gradle/plugins/NextflowPlugin.groovy +++ b/buildSrc/src/main/groovy/nextflow/gradle/plugins/NextflowPlugin.groovy @@ -23,7 +23,6 @@ class NextflowPlugin implements Plugin{ project.tasks.register('generateIdx', GenerateIdxTask, { extensionPoints = nextflowPluginExtension.extensionPoints }) - project.tasks.findByName("processResources")?.dependsOn(project.tasks.findByName("generateIdx")) } } }