summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorromangraef <roman.graef@gmail.com>2018-05-30 12:06:31 +0200
committerromangraef <roman.graef@gmail.com>2018-05-30 12:06:31 +0200
commit2ac18d91635b023db7ff3918f5041cb51ed1c968 (patch)
tree8caffe3c5807e105eb474e2277ece57dc82823c3 /build.gradle
downloadpluggabledino-2ac18d91635b023db7ff3918f5041cb51ed1c968.tar.gz
pluggabledino-2ac18d91635b023db7ff3918f5041cb51ed1c968.tar.bz2
pluggabledino-2ac18d91635b023db7ff3918f5041cb51ed1c968.zip
Initial commit
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle69
1 files changed, 69 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..c27f34d
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,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
+
+