-
Notifications
You must be signed in to change notification settings - Fork 61
/
build.gradle
51 lines (43 loc) · 1.46 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
plugins {
id "com.github.johnrengelman.shadow" version "8.1.1"
id "java"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
test {
useJUnitPlatform()
}
ext.mainClass = "net.prominic.groovyls.GroovyLanguageServer"
tasks.build.dependsOn tasks.shadowJar
shadowJar {
manifest {
attributes "Main-Class": "net.prominic.groovyls.GroovyLanguageServer"
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.eclipse.lsp4j:org.eclipse.lsp4j:0.12.0"
implementation "org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:0.12.0"
implementation "org.apache.groovy:groovy:4.0.5"
implementation "com.google.code.gson:gson:2.8.7"
implementation "io.github.classgraph:classgraph:4.8.138"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.7.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.7.2"
}
// assuming that Moonshine-IDE is checked out in a folder that has the same
// parent folder as groovy-language-server, copies the built .jar file to the
// appropriate location
task deployMoonshine(type: Copy) {
dependsOn(build)
from "build/libs/groovy-language-server-all.jar"
into "../Moonshine-IDE/ide/MoonshineSharedCore/src/elements/groovy-language-server/"
}
task deployMoonshineTest(type: Copy) {
dependsOn(build)
from "build/libs/groovy-language-server-all.jar"
into "../Moonshine-IDE/ide/MoonshineDESKTOPevolved/bin-debug/elements/groovy-language-server/"
}