1- plugins {
2- id " com.gradleup.shadow" version " 8.3.5"
3- }
1+ /*
2+ * Copyright 2013-2025, Seqera Labs
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
416apply plugin : ' groovy'
5- apply plugin : ' application'
617
718sourceSets {
819 main. java. srcDirs = []
@@ -13,14 +24,6 @@ sourceSets {
1324 test. resources. srcDirs = [' src/test/resources' ]
1425}
1526
16- compileGroovy {
17- options. compilerArgs = [' -XDignore.symbol.file' ]
18- }
19-
20- configurations {
21- lineageImplementation
22- }
23-
2427dependencies {
2528 api(project(' :nf-commons' ))
2629 api(project(' :nf-httpfs' ))
@@ -41,14 +44,13 @@ dependencies {
4144 api " commons-lang:commons-lang:2.6"
4245 api " commons-codec:commons-codec:1.15"
4346 api " commons-io:commons-io:2.15.1"
44- api " com.beust:jcommander:1.35"
4547 api(" com.esotericsoftware.kryo:kryo:2.24.0" ) { exclude group : ' com.esotericsoftware.minlog' , module : ' minlog' }
46- api( ' org.iq80.leveldb:leveldb:0.12' )
47- api( ' org.eclipse.jgit:org.eclipse.jgit:7.1.0.202411261347-r' )
48- api ( ' javax.activation:activation:1.1.1' )
49- api ( ' javax.mail:mail:1.4.7' )
50- api ( ' org.yaml:snakeyaml:2.2' )
51- api ( ' org.jsoup:jsoup:1.15.4' )
48+ api ' org.iq80.leveldb:leveldb:0.12'
49+ api ' org.eclipse.jgit:org.eclipse.jgit:7.1.0.202411261347-r'
50+ api ' javax.activation:activation:1.1.1'
51+ api ' javax.mail:mail:1.4.7'
52+ api ' org.yaml:snakeyaml:2.2'
53+ api ' org.jsoup:jsoup:1.15.4'
5254 api ' jline:jline:2.9'
5355 api ' org.pf4j:pf4j:3.12.0'
5456 api ' dev.failsafe:failsafe:3.1.0'
@@ -63,35 +65,4 @@ dependencies {
6365 testFixturesApi (" org.spockframework:spock-core:2.3-groovy-4.0" ) { exclude group : ' org.apache.groovy' }
6466 testFixturesApi (' org.spockframework:spock-junit4:2.3-groovy-4.0' ) { exclude group : ' org.apache.groovy' }
6567 testFixturesApi ' com.google.jimfs:jimfs:1.2'
66- // note: declare as separate dependency to avoid a circular dependency
67- lineageImplementation (project(' :nf-lineage' ))
68- }
69-
70-
71- test {
72- minHeapSize = " 512m"
73- maxHeapSize = " 4096m"
74- }
75-
76- application {
77- mainClass = ' nextflow.cli.Launcher'
78- }
79-
80- run {
81- args( (project. hasProperty(" runCmd" ) ? project. findProperty(" runCmd" ) : " set a cmd to run" ). split(' ' ) )
82- }
83-
84- shadowJar {
85- // add 'lineage' because it cannot be added to this project
86- // explicitly otherwise it will result into a circular dependency
87- configurations = [project. configurations. runtimeClasspath, project. configurations. lineageImplementation]
88- archiveClassifier= ' one'
89- manifest {
90- attributes ' Main-Class' : " $mainClassName "
91- }
92- mergeServiceFiles()
93- mergeGroovyExtensionModules()
94- transform(com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer ) {
95- resource = ' META-INF/extensions.idx'
96- }
9768}
0 commit comments