baseProjectTemplate.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. allprojects {
  2. buildscript {
  3. repositories {**ARTIFACTORYREPOSITORY**
  4. maven { url 'https://maven.rokid.com/repository/maven-public/' }
  5. google()
  6. jcenter()
  7. }
  8. dependencies {
  9. // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
  10. // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
  11. // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
  12. // 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
  13. classpath 'com.android.tools.build:gradle:4.0.1'
  14. **BUILD_SCRIPT_DEPS**
  15. }
  16. }
  17. repositories {**ARTIFACTORYREPOSITORY**
  18. maven { url 'https://maven.rokid.com/repository/maven-public/' }
  19. google()
  20. jcenter()
  21. flatDir {
  22. dirs "${project(':unityLibrary').projectDir}/libs"
  23. }
  24. }
  25. }
  26. task clean(type: Delete) {
  27. delete rootProject.buildDir
  28. }