@@ -113,13 +113,14 @@ class NextflowPlugin implements Plugin<Project> {
113113 project. tasks. jar. from(project. layout. buildDirectory. dir(' resources/main' ))
114114 project. tasks. compileTestGroovy. dependsOn << extensionPointsTask
115115
116- // buildSpec - generates the plugin spec file
116+ // generateSpec - generates the plugin spec file
117117 if ( config. generateSpec ) {
118- project. tasks. register(' buildSpec ' , GenerateSpecTask )
119- project. tasks. buildSpec . dependsOn << [
118+ project. tasks. register(' generateSpec ' , GenerateSpecTask )
119+ project. tasks. generateSpec . dependsOn << [
120120 project. tasks. jar,
121121 project. tasks. compileSpecFileGroovy
122122 ]
123+ project. tasks. compileTestGroovy. dependsOn << project. tasks. generateSpec
123124 }
124125
125126 // packagePlugin - builds the zip file
@@ -130,7 +131,7 @@ class NextflowPlugin implements Plugin<Project> {
130131 ]
131132 project. afterEvaluate {
132133 if ( config. generateSpec )
133- project. tasks. packagePlugin. dependsOn << project. tasks. buildSpec
134+ project. tasks. packagePlugin. dependsOn << project. tasks. generateSpec
134135 }
135136 project. tasks. assemble. dependsOn << project. tasks. packagePlugin
136137
@@ -187,6 +188,7 @@ class NextflowPlugin implements Plugin<Project> {
187188 }
188189 deps. testRuntimeOnly " org.objenesis:objenesis:3.4"
189190 deps. testRuntimeOnly " net.bytebuddy:byte-buddy:1.14.17"
191+ deps. testRuntimeOnly " org.junit.platform:junit-platform-launcher"
190192 deps. testImplementation(testFixtures(" io.nextflow:nextflow:${ nextflowVersion} " ))
191193 deps. testImplementation(testFixtures(" io.nextflow:nf-commons:${ nextflowVersion} " ))
192194 }
0 commit comments