blob: c27f34d4912e0a3a2c9e20f94cb5b44a9c7a8cf3 (
plain)
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 {
ext.kotlin_version = '1.2.41'
repositories {
mavenCentral()
maven {
url 'http://dl.bintray.com/cjstehno/public/'
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'java'
id 'application'
id 'com.stehno.natives' version '0.3.1'
}
apply plugin: 'kotlin'
group 'de.romjaki'
version '1.0-SNAPSHOT'
ext.platform = 'linux'
mainClassName = "de.romjaki.pluggabledino.MainKt"
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile 'com.beust:klaxon:3.0.1'
compile group: 'org.slick2d', name: 'slick2d-core', version: '1.0.2'
compile group: 'org.jbox2d', name: 'jbox2d-library', version: '2.2.1.1'
}
test {
systemProperty 'java.library.path', file("build/natives")
}
natives {
}
run {
systemProperty 'java.library.path', file('build/natives')
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task copyResources(type: Copy) {
from 'src/main/resources'
into 'assets'
}
build.dependsOn copyResources
|