Files
Mindustry/build.gradle

125 lines
3.7 KiB
Groovy
Raw Normal View History

2017-04-29 21:25:59 -04:00
buildscript {
repositories {
mavenLocal()
mavenCentral()
2017-12-19 20:51:46 -05:00
google()
2017-04-29 21:25:59 -04:00
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
2017-12-19 19:17:17 -05:00
classpath 'com.android.tools.build:gradle:3.0.1'
2017-04-29 21:25:59 -04:00
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
2017-12-19 00:05:41 -05:00
version = 'release'
2017-04-29 21:25:59 -04:00
ext {
2017-05-03 00:09:48 -04:00
appName = "Mindustry"
2017-12-21 20:59:40 -05:00
gdxVersion = '1.9.8'
aiVersion = '1.8.1'
2018-01-08 17:36:49 -05:00
uCoreVersion = '7749e2d';
2017-04-29 21:25:59 -04:00
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
2017-06-29 00:54:10 -04:00
maven { url 'https://jitpack.io' }
2017-04-29 21:25:59 -04:00
}
}
project(":desktop") {
apply plugin: "java"
dependencies {
compile project(":core")
2018-01-01 13:32:18 -05:00
compile project(":kryonet")
2017-04-29 21:25:59 -04:00
compile "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
2017-12-22 18:10:34 -05:00
compile "com.badlogicgames.gdx:gdx-controllers-lwjgl3:$gdxVersion"
compile "com.github.MinnDevelopment:Java-DiscordRPC:dbd4aac"
2017-04-29 21:25:59 -04:00
}
}
project(":html") {
apply plugin: "gwt"
apply plugin: "war"
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
2017-12-21 20:59:40 -05:00
compile "com.badlogicgames.gdx:gdx-ai:$aiVersion:sources"
2017-12-22 18:10:34 -05:00
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion:sources"
2017-04-29 21:25:59 -04:00
}
}
2017-06-29 00:54:10 -04:00
project(":android") {
apply plugin: "android"
configurations { natives }
dependencies {
compile project(":core")
2018-01-01 13:32:18 -05:00
compile project(":kryonet")
2017-06-29 00:54:10 -04:00
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
compile "com.badlogicgames.gdx:gdx-ai:$aiVersion"
2017-12-22 18:10:34 -05:00
compile "com.badlogicgames.gdx:gdx-controllers-android:$gdxVersion"
2017-06-29 00:54:10 -04:00
}
}
2017-04-29 21:25:59 -04:00
project(":core") {
apply plugin: "java"
dependencies {
2017-12-24 20:50:00 -05:00
boolean comp = System.properties["release"] == null || System.properties["release"].equals("false");
if(!comp){
println("NOTICE: Compiling release build.")
}else{
println("Compiling DEBUG build.");
}
if(new File('../uCore').exists() && comp){
2017-12-21 13:45:25 -08:00
compile project(":uCore")
}else{
2017-12-21 20:59:40 -05:00
compile "com.github.anuken:ucore:$uCoreVersion"
2017-12-21 13:45:25 -08:00
}
2017-12-24 20:50:00 -05:00
if(new File('../GDXGifRecorder').exists() && comp) {
2017-12-21 21:56:01 -05:00
compile project(":GDXGifRecorder")
}
2017-04-29 21:25:59 -04:00
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
2017-12-21 20:59:40 -05:00
compile "com.badlogicgames.gdx:gdx-ai:$aiVersion"
2017-12-22 18:10:34 -05:00
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
2017-04-29 21:25:59 -04:00
}
}
2018-01-01 13:32:18 -05:00
project(":kryonet") {
apply plugin: "java"
dependencies {
compile project(":core")
compile 'com.github.crykn:kryonet:2.22.1'
2018-01-01 13:32:18 -05:00
}
}
2017-04-29 21:25:59 -04:00
tasks.eclipse.doLast {
delete ".project"
2017-05-20 16:20:38 -04:00
}