Skip to content

Instantly share code, notes, and snippets.

@kwkr
Created April 19, 2019 10:58
Show Gist options
  • Save kwkr/111b5135933ef4983d892fed6aea6a8e to your computer and use it in GitHub Desktop.
Save kwkr/111b5135933ef4983d892fed6aea6a8e to your computer and use it in GitHub Desktop.
buildscript {
repositories {
mavenCentral()
maven { url \"https://plugins.gradle.org/m2/\" }
maven { url \"https://oss.sonatype.org/content/repositories/snapshots/\" }
jcenter()
google()
}
dependencies {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.6-SNAPSHOT'
classpath 'com.google.gms:google-services:4.2.0'
}
}
allprojects {
apply plugin: \"eclipse\"
apply plugin: \"idea\"
version = '1.0'
ext {
appName = \"test\"
gdxVersion = '1.9.2'
roboVMVersion = '2.3.6-SNAPSHOT'
roboVMPluginVersion = '2.3.6'
ashleyVersion = '1.7.0'
aiVersion = '1.8.0'
}
repositories {
mavenCentral()
maven { url \"https://plugins.gradle.org/m2/\" }
maven { url \"https://oss.sonatype.org/content/repositories/snapshots/\" }
jcenter()
google()
}
}
project(\":desktop\") {
apply plugin: \"java\"
dependencies {
implementation project(\":core\")
implementation \"com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion\"
implementation \"com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop\"
implementation \"com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop\"
}
}
project(\":android\") {
apply plugin: \"android\"
configurations { natives }
dependencies {
implementation project(\":core\")
implementation \"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\"
implementation \"com.badlogicgames.gdx:gdx-freetype:$gdxVersion\"
natives \"com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi\"
natives \"com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a\"
natives \"com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a\"
natives \"com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86\"
}
}
project(\":ios\") {
apply plugin: \"java\"
apply plugin: \"robovm\"
configurations { natives }
dependencies {
compile project(\":core\")
compile \"com.mobidevelop.robovm:robovm-rt:${roboVMVersion}\"
compile \"com.mobidevelop.robovm:robovm-cocoatouch:${roboVMVersion}\"
compile \"com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion\"
natives \"com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios\"
}
}
project(\":core\") {
apply plugin: \"java\"
dependencies {
implementation \"com.badlogicgames.gdx:gdx:$gdxVersion\"
implementation \"com.badlogicgames.gdx:gdx-freetype:$gdxVersion\"
implementation group: 'org.json', name: 'json', version: '20180813'
}
}
tasks.eclipse.doLast {
delete \".project\"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment