-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (58 loc) · 1.83 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
65
66
67
68
69
70
71
72
plugins {
id 'java'
}
java {
sourceCompatibility = JavaVersion.VERSION_14
}
version '1.0-SNAPSHOT'
project.buildDir = '/build'
sourceSets {
main {
java {
srcDir 'src/'
}
resources {
srcDirs = ['resources/', 'src-js/']
}
}
test {
java {
srcDir 'src-test/'
}
resources {
srcDirs = ['test-resources/', 'benchmarks/']
}
}
}
repositories {
mavenCentral()
}
dependencies {
// Logging
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j18-impl', version: '2.14.0'
// Utils
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.9'
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.6.0.201912101111-r'
implementation group: 'com.jsoniter', name: 'jsoniter', version: '0.9.23'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.0'
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.13.0'
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-csv', version: '2.13.0'
// For Testing
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
// Compiler
implementation group: 'com.google.javascript', name: 'closure-compiler', version: 'v20210302'
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
tasks.withType(JavaExec) {
jvmArgs += '--enable-preview'
}
tasks.withType(JavaCompile).each {
it.options.compilerArgs.add('--enable-preview')
}
test {
jvmArgs += '--enable-preview'
useJUnitPlatform()
}
// TODO run src-compiled