baseProjectTemplate.gradle 1.1 KB

1234567891011121314151617181920212223242526272829
  1. allprojects {
  2. buildscript {
  3. repositories {**ARTIFACTORYREPOSITORY**
  4. google()
  5. jcenter()
  6. }
  7. dependencies {
  8. // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
  9. // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
  10. // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
  11. // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
  12. classpath 'com.android.tools.build:gradle:4.0.1'
  13. **BUILD_SCRIPT_DEPS**
  14. }
  15. }
  16. repositories {**ARTIFACTORYREPOSITORY**
  17. google()
  18. jcenter()
  19. flatDir {
  20. dirs "${project(':unityLibrary').projectDir}/libs"
  21. }
  22. }
  23. }
  24. task clean(type: Delete) {
  25. delete rootProject.buildDir
  26. }