This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 12th, 2014  |  syntax: Java  |  size: 2.59 KB  |  views: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. buildscript {
  2.     repositories {
  3.         maven {
  4.             url 'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/'
  5.         }
  6.         mavenCentral()
  7.         maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  8.     }
  9.  
  10.     dependencies {
  11.         classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.3'
  12.         classpath 'com.android.tools.build:gradle:0.9+'
  13.         classpath 'com.github.jtakakura:gradle-robovm-plugin:0.0.6'
  14.     }
  15. }
  16.  
  17. allprojects {
  18.     apply plugin: "eclipse"
  19.     apply plugin: "idea"
  20.    
  21.     version = "1.0"
  22.     ext {
  23.         appName = "bot"
  24.         gdxVersion = "1.0-SNAPSHOT"
  25.         roboVMVersion = "0.0.11"
  26.     }
  27.    
  28.     repositories {
  29.         mavenLocal();
  30.         mavenCentral()
  31.         maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  32.     }
  33. }
  34.  
  35. project(":core") {
  36.     apply plugin: "java"
  37.    
  38.     dependencies {
  39.         compile "com.badlogicgames.gdx:gdx:$gdxVersion"
  40.     }
  41. }
  42.  
  43. project(":desktop") {
  44.     apply plugin: "java"
  45.    
  46.     dependencies {
  47.         compile project(":core")
  48.         compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
  49.         compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
  50.     }
  51. }
  52.  
  53. project(":android") {
  54.     apply plugin: "android"
  55.  
  56.     configurations { natives }
  57.  
  58.     dependencies {
  59.         compile project(":core")
  60.         compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"        
  61.         natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
  62.         natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
  63.         natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
  64.     }
  65. }
  66.  
  67. project(":html") {
  68.     apply plugin: "gwt"
  69.     apply plugin: "war"
  70.     webAppDirName = 'webapp'
  71.  
  72.     dependencies {
  73.         compile project(":core")
  74.         compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
  75.         compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
  76.         compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
  77.     }    
  78. }
  79.  
  80. project(":ios") {
  81.     apply plugin: 'java'
  82.     apply plugin: 'robovm'
  83.  
  84.     configurations { natives }
  85.  
  86.     dependencies {
  87.         compile "org.robovm:robovm-rt:${roboVMVersion}"
  88.         compile "org.robovm:robovm-cocoatouch:${roboVMVersion}"
  89.         compile project(":core")
  90.         compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
  91.         natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
  92.     }
  93. }
  94.  
  95.  
  96. tasks.eclipse.doLast {
  97.         delete ".project"
  98. }
clone this paste RAW Paste Data