build.gradle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. mavenLocal()
  5. }
  6. dependencies {
  7. classpath 'com.android.tools.build:gradle:0.10+'
  8. classpath 'com.github.jtakakura:gradle-robovm-plugin:0.0.10'
  9. }
  10. }
  11. allprojects {
  12. apply plugin: "eclipse"
  13. apply plugin: "idea"
  14. version = '1.0'
  15. ext {
  16. appName = 'APPEAR! Cards'
  17. gdxVersion = '1.3.1'
  18. roboVMVersion = '0.0.14'
  19. }
  20. repositories {
  21. mavenLocal()
  22. mavenCentral()
  23. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  24. maven { url "https://oss.sonatype.org/content/repositories/releases/" }
  25. }
  26. }
  27. project(":desktop") {
  28. apply plugin: "java"
  29. dependencies {
  30. compile project(":core")
  31. compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
  32. compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
  33. compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
  34. compile "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
  35. }
  36. }
  37. project(":android") {
  38. apply plugin: "android"
  39. configurations { natives }
  40. dependencies {
  41. compile project(":core")
  42. compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
  43. natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
  44. natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
  45. natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
  46. compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
  47. natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
  48. natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
  49. natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
  50. }
  51. }
  52. project(":ios") {
  53. apply plugin: "java"
  54. apply plugin: "robovm"
  55. configurations { natives }
  56. dependencies {
  57. compile project(":core")
  58. compile "org.robovm:robovm-rt:${roboVMVersion}"
  59. compile "org.robovm:robovm-cocoatouch:${roboVMVersion}"
  60. compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
  61. natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
  62. natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
  63. }
  64. }
  65. project(":core") {
  66. apply plugin: "java"
  67. dependencies {
  68. compile "com.badlogicgames.gdx:gdx:$gdxVersion"
  69. compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
  70. }
  71. }
  72. tasks.eclipse.doLast {
  73. delete ".project"
  74. }