SHARE
TWEET

Untitled

a guest Nov 23rd, 2016 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // sets up the Android Eclipse project, using the old Ant based build.
  2. eclipse {
  3.     // need to specify Java source sets explicitly, SpringSource Gradle Eclipse plugin
  4.     // ignores any nodes added in classpath.file.withXml
  5.     sourceSets {
  6.         main {
  7.             java.srcDirs "src", 'gen'
  8.         }
  9.     }
  10.  
  11.     jdt {
  12.         sourceCompatibility = 1.6
  13.         targetCompatibility = 1.6
  14.     }
  15.  
  16.     classpath {
  17.         plusConfigurations += [ project.configurations.compile ]
  18.         containers 'com.android.ide.eclipse.adt.ANDROID_FRAMEWORK', 'com.android.ide.eclipse.adt.LIBRARIES'
  19.         defaultOutputDir = file('classes')
  20.         file {                
  21.             whenMerged { classpath ->
  22.                 classpath.entries.findAll { entry -> entry.kind == 'lib' }*.exported = true                    
  23.             }
  24.         }
  25.     }
  26.    
  27.     dependencies {
  28.         compile "com.badlogicgames.gdx:gdx:1.9.4"
  29.         compile "com.badlogicgames.gdx:gdx-box2d:1.9.4"
  30.         compile "com.badlogicgames.gdx:gdx-backend-android:1.9.4"
  31.     }
  32.  
  33.     project {
  34.         name = appName + "-android"
  35.         natures 'com.android.ide.eclipse.adt.AndroidNature'
  36.         buildCommands.clear();
  37.         buildCommand "com.android.ide.eclipse.adt.ResourceManagerBuilder"
  38.         buildCommand "com.android.ide.eclipse.adt.PreCompilerBuilder"
  39.         buildCommand "org.eclipse.jdt.core.javabuilder"
  40.         buildCommand "com.android.ide.eclipse.adt.ApkBuilder"
  41.     }
  42. }
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. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top