Advertisement
Guest User

My root build.gradle

a guest
Oct 17th, 2021
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 2.68 KB | None | 0 0
  1. buildscript {
  2.    
  3.  
  4.     repositories {
  5.         google()
  6.         mavenLocal()
  7.         mavenCentral()
  8.         gradlePluginPortal()
  9.         maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  10.     }
  11.     dependencies {
  12.         classpath 'com.android.tools.build:gradle:3.5.4'
  13.        
  14.  
  15.     }
  16. }
  17.  
  18. allprojects {
  19.     apply plugin: "eclipse"
  20.  
  21.     version = '1.0'
  22.     ext {
  23.         appName = "my-gdx-game-2D"
  24.         gdxVersion = '1.10.0'
  25.         roboVMVersion = '2.3.12'
  26.         box2DLightsVersion = '1.5'
  27.         ashleyVersion = '1.7.3'
  28.         aiVersion = '1.8.2'
  29.         gdxControllersVersion = '2.1.0'
  30.     }
  31.  
  32.     repositories {
  33.         mavenLocal()
  34.         mavenCentral()
  35.         google()
  36.         gradlePluginPortal()
  37.         maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  38.         maven { url "https://oss.sonatype.org/content/repositories/releases/" }
  39.     }
  40. }
  41.  
  42. project(":android") {
  43.     apply plugin: "com.android.application"
  44.  
  45.     configurations { natives }
  46.  
  47.     dependencies {
  48.         implementation project(":core")
  49.         api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
  50.         natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
  51.         natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
  52.         natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
  53.         natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
  54.         api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
  55.         natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
  56.         natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"
  57.         natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
  58.         natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64"
  59.         api "com.badlogicgames.gdx:gdx-ai:$aiVersion"
  60.         api "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
  61.         natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
  62.         natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
  63.         natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
  64.         natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"
  65.        
  66.     }
  67. }
  68.  
  69. project(":core") {
  70.     apply plugin: "java-library"
  71.  
  72.  
  73.     dependencies {
  74.         api "com.badlogicgames.gdx:gdx:$gdxVersion"
  75.         api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
  76.         api "com.badlogicgames.gdx:gdx-ai:$aiVersion"
  77.         api "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
  78.        
  79.     }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement