-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (55 loc) · 1.64 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
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id 'application'
id 'ch.fhnw.thga.frege' version '4.2.0-alpha'
}
repositories {
mavenCentral()
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
mavenLocal()
}
dependencies {
implementation group: 'org.eclipse.lsp4j', name: 'org.eclipse.lsp4j', version: '0.12.0'
frege group: 'org.eclipse.lsp4j', name: 'org.eclipse.lsp4j', version: '0.12.0'
implementation files(compileFrege.fregeCompilerJar)
implementation "org.gradle:gradle-tooling-api:$gradleVersion"
runtimeOnly 'org.slf4j:slf4j-simple:1.7.10'
implementation group: 'ch.fhnw.thga', name: 'frege-plugin', version: '4.2.0-alpha'
}
application {
mainClass = 'ch.fhnw.thga.fregelanguageserver.lsp.App'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
frege
{
version = '3.25.84'
release = '3.25alpha'
mainSourceDir = layout.projectDirectory.dir('src/main/frege')
testModules =
[
'ch.fhnw.thga.fregelanguageserver.compile.CompileMakeMode',
'ch.fhnw.thga.fregelanguageserver.compile.CompileNormalMode',
'ch.fhnw.thga.fregelanguageserver.diagnostic.Diagnostic',
'ch.fhnw.thga.fregelanguageserver.hover.Hover'
]
}
tasks.register('copyCompiledFregeClasses', Copy)
{
dependsOn compileFrege
from frege.outputDir
include '**/*.java'
into layout.projectDirectory.dir('src/main/java')
}
compileJava.configure
{
options.encoding = 'UTF-8'
dependsOn copyCompiledFregeClasses
}
check.dependsOn 'testFrege'
tasks.withType(Jar).configureEach
{
dependsOn copyCompiledFregeClasses, check
}