Skip to content

Commit c41cc6f

Browse files
committed
Replace compiler module with nf-lang from Nextflow
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 14519c9 commit c41cc6f

File tree

218 files changed

+96
-20648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+96
-20648
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ The language server exposes a set of configuration settings that can be controll
2626
To build from the command line:
2727

2828
```sh
29+
# build nf-lang module from Nextflow
30+
git clone https://github.com/nextflow-io/nextflow ../nextflow
31+
cd ../nextflow
32+
./gradlew publishToMavenLocal
33+
cd -
34+
35+
# build language server
2936
make
3037
```
3138

build.gradle

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,51 @@
1+
plugins {
2+
id 'com.gradleup.shadow' version '8.3.5'
3+
id 'application'
4+
id 'groovy'
5+
id 'java'
6+
}
7+
8+
repositories {
9+
mavenLocal()
10+
mavenCentral()
11+
}
12+
13+
java {
14+
toolchain {
15+
languageVersion = JavaLanguageVersion.of(21)
16+
}
17+
sourceCompatibility = JavaVersion.VERSION_17
18+
targetCompatibility = JavaVersion.VERSION_17
19+
}
20+
21+
compileJava {
22+
options.release.set(17)
23+
}
24+
25+
test {
26+
useJUnitPlatform()
27+
}
28+
29+
dependencies {
30+
implementation 'io.nextflow:nf-lang:25.02.1-edge'
31+
implementation 'org.apache.groovy:groovy:4.0.26'
32+
implementation 'org.apache.groovy:groovy-json:4.0.26'
33+
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.23.0'
34+
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:0.23.0'
35+
36+
// runtime dependencies for Nextflow scripts
37+
runtimeOnly 'org.apache.groovy:groovy-templates:4.0.26'
38+
runtimeOnly 'org.yaml:snakeyaml:2.2'
39+
40+
testImplementation ('org.objenesis:objenesis:3.4')
41+
testImplementation ('net.bytebuddy:byte-buddy:1.14.17')
42+
testImplementation ('org.spockframework:spock-core:2.3-groovy-4.0') { exclude group: 'org.apache.groovy' }
43+
}
144

2-
task copyJar(type: Copy) {
3-
dependsOn ':language-server:build'
4-
from "$projectDir/modules/language-server/build/libs/language-server-all.jar"
5-
into "$buildDir/libs"
45+
application {
46+
mainClass = 'nextflow.lsp.NextflowLanguageServer'
647
}
748

8-
task build {
9-
dependsOn copyJar
49+
shadowJar {
50+
archiveVersion = ''
1051
}

buildSrc/build.gradle

Lines changed: 0 additions & 7 deletions
This file was deleted.

buildSrc/src/main/groovy/nextflow.java-conventions.gradle

Lines changed: 0 additions & 35 deletions
This file was deleted.

modules/compiler/build.gradle

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)