forked from GroovyLanguageServer/groovy-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (41 loc) · 1.42 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
plugins {
id "com.github.johnrengelman.shadow" version "5.2.0"
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.codehaus.groovy:groovy-all:2.5.14"
implementation "com.google.code.gson:gson:2.8.7"
implementation "io.github.classgraph:classgraph:4.8.108"
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) {
from "build/libs/groovy-language-server-all.jar"
into "../Moonshine-IDE/ide/MoonshineSharedCore/src/elements/groovy-language-server/"
}
task deployMoonshineTest(type: Copy) {
from "build/libs/groovy-language-server-all.jar"
into "../Moonshine-IDE/ide/MoonshineDESKTOPevolved/bin-debug/elements/groovy-language-server/"
}