-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
69 lines (62 loc) · 1.57 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
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.72'
id 'com.github.johnrengelman.shadow' version '5.0.0'
}
group 'com.github.tarcv.zandronum'
version '0.4.0'
repositories {
mavenCentral()
}
kotlin {
jvm() { // good for debugging, bad for distribution
}
mingwX64("windows") {
binaries {
executable()
}
}
linuxX64("linux") {
binaries {
executable()
}
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
nativeMain {
kotlin.srcDir('src/nativeMain/kotlin')
}
windowsMain {
dependsOn nativeMain
}
linuxMain {
dependsOn nativeMain
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
implementation "org.jetbrains.kotlin:kotlin-reflect"
}
}
}
}
task shadowJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
def target = kotlin.targets.jvm
from target.compilations.main.output
def runtimeClasspath = target.compilations.main.runtimeDependencyFiles
configurations = [runtimeClasspath]
}