三方库优化

This commit is contained in:
Developer
2026-03-31 08:24:26 +08:00
parent 9a58f6ca19
commit e3ca7db3cc
6 changed files with 49 additions and 12 deletions

View File

@@ -5,7 +5,26 @@ allprojects {
}
}
// 统一 JVM 版本配置
allprojects {
buildscript {
repositories {
google()
mavenCentral()
}
}
}
allprojects {
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.ow2.asm" && requested.name == "asm-util") {
useVersion("9.6")
because("jcenter is deprecated, using mavenCentral version")
}
}
}
}
allprojects {
tasks.withType<JavaCompile> {
sourceCompatibility = "17"
@@ -19,7 +38,6 @@ allprojects {
}
}
// 为 audioplayers_android 模块单独设置 Java 1.8
project(":audioplayers_android") {
tasks.withType<JavaCompile> {
sourceCompatibility = "1.8"

File diff suppressed because one or more lines are too long