-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
69 lines (60 loc) · 1.52 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
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32"
}
}
plugins {
id 'java'
}
apply plugin: 'kotlin'
repositories {
mavenCentral()
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter:5.7.1"
implementation "org.java-websocket:Java-WebSocket:1.5.1"
implementation "org.msgpack:jackson-dataformat-msgpack:0.8.22"
apiElements "org.jetbrains.kotlin:kotlin-stdlib:1.4.32"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
}
task runExampleJava(dependsOn: classes, type: JavaExec) {
main = "io.colyseus.example.java.Main"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = new File(".")
}
task runExampleKotlin1(dependsOn: classes, type: JavaExec) {
main = "io.colyseus.example.kotlin.Main1Kt"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = new File(".")
}
task runExampleKotlin2(dependsOn: classes, type: JavaExec) {
main = "io.colyseus.example.kotlin.Main2Kt"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = new File(".")
}
compileJava {
sourceCompatibility = 1.8
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}