forked from mac-comp381/wordy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (39 loc) · 1.12 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
plugins {
id 'java'
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
implementation group: 'org.parboiled', name: 'parboiled-java', version: '1.4.1'
implementation group: 'org.ow2.asm', name: 'asm', version: '9.1'
implementation group: 'org.jooq', name: 'joor', version: '0.9.+'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.9.+'
}
[
playground: 'wordy.demo.Playground',
shader: 'wordy.demo.shader.ShaderUI'
].each { taskName, mainClass ->
task(taskName, dependsOn: 'classes', type: JavaExec) {
main = mainClass
classpath = sourceSets.main.runtimeClasspath
}
}
test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
afterTest { desc, result ->
logger.quiet "[${desc.className}] ${desc.name}: ${result.resultType}"
}
}
sourceCompatibility = 1.16
targetCompatibility = 1.16
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.resources.srcDirs = ['res']
sourceSets.test.java.srcDirs = ['test']