build.gradle 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. buildscript {
  2. repositories {
  3. mavenLocal()
  4. mavenCentral()
  5. gradlePluginPortal()
  6. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  7. google()
  8. }
  9. dependencies {
  10. classpath 'org.wisepersist:gwt-gradle-plugin:1.0.13'
  11. classpath 'org.gretty:gretty:3.0.2'
  12. classpath 'com.android.tools.build:gradle:3.5.4'
  13. classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.12'
  14. }
  15. }
  16. allprojects {
  17. apply plugin: "eclipse"
  18. version = '1.0'
  19. ext {
  20. appName = "pjl-kursovaya"
  21. gdxVersion = '1.10.0'
  22. roboVMVersion = '2.3.12'
  23. box2DLightsVersion = '1.5'
  24. ashleyVersion = '1.7.3'
  25. aiVersion = '1.8.2'
  26. gdxControllersVersion = '2.1.0'
  27. }
  28. repositories {
  29. mavenLocal()
  30. mavenCentral()
  31. google()
  32. gradlePluginPortal()
  33. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  34. maven { url "https://oss.sonatype.org/content/repositories/releases/" }
  35. }
  36. }
  37. project(":desktop") {
  38. apply plugin: "java-library"
  39. dependencies {
  40. implementation project(":core")
  41. api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
  42. api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
  43. api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
  44. implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
  45. }
  46. }
  47. project(":android") {
  48. apply plugin: "com.android.application"
  49. configurations { natives }
  50. dependencies {
  51. implementation project(":core")
  52. api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
  53. natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
  54. natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
  55. natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
  56. natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
  57. api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
  58. natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
  59. natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"
  60. natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
  61. natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64"
  62. implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
  63. natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
  64. natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
  65. natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
  66. natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"
  67. }
  68. }
  69. project(":ios") {
  70. apply plugin: "java-library"
  71. apply plugin: "robovm"
  72. dependencies {
  73. implementation project(":core")
  74. api "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
  75. api "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
  76. api "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
  77. api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
  78. api "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios"
  79. }
  80. }
  81. project(":html") {
  82. apply plugin: "java-library"
  83. apply plugin: "gwt"
  84. apply plugin: "war"
  85. apply plugin: "org.gretty"
  86. dependencies {
  87. implementation project(":core")
  88. api "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
  89. api "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
  90. api "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
  91. api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion:sources"
  92. api "com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources"
  93. }
  94. }
  95. project(":core") {
  96. apply plugin: "java-library"
  97. dependencies {
  98. api "com.badlogicgames.gdx:gdx:$gdxVersion"
  99. api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
  100. implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
  101. }
  102. }