SHARE
TWEET
Untitled
a guest
Nov 23rd, 2016
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // sets up the Android Eclipse project, using the old Ant based build.
- eclipse {
- // need to specify Java source sets explicitly, SpringSource Gradle Eclipse plugin
- // ignores any nodes added in classpath.file.withXml
- sourceSets {
- main {
- java.srcDirs "src", 'gen'
- }
- }
- jdt {
- sourceCompatibility = 1.6
- targetCompatibility = 1.6
- }
- classpath {
- plusConfigurations += [ project.configurations.compile ]
- containers 'com.android.ide.eclipse.adt.ANDROID_FRAMEWORK', 'com.android.ide.eclipse.adt.LIBRARIES'
- defaultOutputDir = file('classes')
- file {
- whenMerged { classpath ->
- classpath.entries.findAll { entry -> entry.kind == 'lib' }*.exported = true
- }
- }
- }
- dependencies {
- compile "com.badlogicgames.gdx:gdx:1.9.4"
- compile "com.badlogicgames.gdx:gdx-box2d:1.9.4"
- compile "com.badlogicgames.gdx:gdx-backend-android:1.9.4"
- }
- project {
- name = appName + "-android"
- natures 'com.android.ide.eclipse.adt.AndroidNature'
- buildCommands.clear();
- buildCommand "com.android.ide.eclipse.adt.ResourceManagerBuilder"
- buildCommand "com.android.ide.eclipse.adt.PreCompilerBuilder"
- buildCommand "org.eclipse.jdt.core.javabuilder"
- buildCommand "com.android.ide.eclipse.adt.ApkBuilder"
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

