Skip to content

Commit d950e57

Browse files
committed
Fix buildSpec config option
1 parent 5a03964 commit d950e57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/groovy/io/nextflow/gradle/NextflowPlugin.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ class NextflowPlugin implements Plugin<Project> {
128128
project.tasks.extensionPoints,
129129
project.tasks.classes
130130
]
131-
if( config.buildSpec )
132-
project.tasks.packagePlugin.dependsOn << project.tasks.buildSpec
131+
project.afterEvaluate {
132+
if( config.buildSpec )
133+
project.tasks.packagePlugin.dependsOn << project.tasks.buildSpec
134+
}
133135
project.tasks.assemble.dependsOn << project.tasks.packagePlugin
134136

135137
// installPlugin - installs plugin to (local) nextflow plugins dir

0 commit comments

Comments
 (0)