baseProjectTemplate.gradle

作者:追风剑情 发布于:2023-6-19 17:40 分类:Unity3d

// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN

allprojects {
    buildscript {
        repositories {**ARTIFACTORYREPOSITORY**
			//优先从阿里云镜像下载
			maven{ url 'https://maven.aliyun.com/repository/public/' }
			maven{ url 'https://maven.aliyun.com/repository/central' }
			maven{ url 'https://maven.aliyun.com/repository/google' }
			//华为云镜像下载
			maven { url 'https://repo.huaweicloud.com/repository/maven' }
			//JitPack仓库下载
			maven { url 'https://jitpack.io' }
			mavenCentral()
            google()
            jcenter()
        }

        dependencies {
            // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
            // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
            // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
            // 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
            
			// Android Gradle Plugin 版本为 4.0.1
			// Gradle版本与Gradle Plugin版本之间的对应关系 https://developer.android.google.cn/studio/releases/gradle-plugin?hl=zh-cn#updating-plugin
			classpath 'com.android.tools.build:gradle:4.0.1'
            **BUILD_SCRIPT_DEPS**
        }
    }

    repositories {**ARTIFACTORYREPOSITORY**
		//优先从阿里云镜像下载
		maven{ url 'https://maven.aliyun.com/repository/public/' }
		maven{ url 'https://maven.aliyun.com/repository/central' }
		maven{ url 'https://maven.aliyun.com/repository/google' }
		//华为云镜像下载
		maven { url 'https://repo.huaweicloud.com/repository/maven' }
		//JitPack仓库下载
		maven { url 'https://jitpack.io' }
		mavenCentral()
        google()
        jcenter()
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

标签: Unity3d

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号