build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. buildscript {
  2. repositories {
  3. mavenLocal()
  4. mavenCentral()
  5. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  6. jcenter()
  7. }
  8. dependencies {
  9. classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
  10. }
  11. }
  12. allprojects {
  13. apply plugin: "eclipse"
  14. apply plugin: "idea"
  15. version = '1.0'
  16. ext {
  17. appName = "ExeBattle"
  18. gdxVersion = '1.9.7'
  19. roboVMVersion = '2.3.1'
  20. box2DLightsVersion = '1.4'
  21. ashleyVersion = '1.7.0'
  22. aiVersion = '1.8.0'
  23. }
  24. repositories {
  25. mavenLocal()
  26. mavenCentral()
  27. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  28. maven { url "https://oss.sonatype.org/content/repositories/releases/" }
  29. }
  30. }
  31. project(":desktop") {
  32. apply plugin: "java"
  33. dependencies {
  34. compile project(":core")
  35. compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
  36. compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
  37. compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
  38. compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
  39. }
  40. }
  41. project(":html") {
  42. apply plugin: "gwt"
  43. apply plugin: "war"
  44. dependencies {
  45. compile project(":core")
  46. compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
  47. compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
  48. compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
  49. compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion:sources"
  50. compile "com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources"
  51. }
  52. }
  53. project(":core") {
  54. apply plugin: "java"
  55. dependencies {
  56. compile "com.badlogicgames.gdx:gdx:$gdxVersion"
  57. compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
  58. compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
  59. compile 'io.reactivex.rxjava2:rxkotlin:2.1.0'
  60. }
  61. }
  62. tasks.eclipse.doLast {
  63. delete ".project"
  64. }