Bump AGP dependency version to 4.2.2
^KT-56454 Fixed
This commit is contained in:
committed by
Space Team
parent
db5589121d
commit
a49906f4e4
+138
-874
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@ dependencies {
|
||||
commonImplementation(project(":kotlin-tooling-core"))
|
||||
|
||||
commonCompileOnly(project(":kotlin-gradle-compiler-types"))
|
||||
commonCompileOnly("com.android.tools.build:gradle:3.6.4") {
|
||||
commonCompileOnly("com.android.tools.build:gradle-api:4.2.2") {
|
||||
// Without it - Gradle dependency resolution fails with unexpected error
|
||||
// Caused by: java.lang.IllegalStateException: Unexpected parent dependency id 131. Seen ids: [129, 2, 130, 9, 10, 138, 11, 139, 140, 14, 153, 154, 155, 156, 157, 158, 161, 164, 177, 178, 51, 179, 52, 180, 53, 54, 55, 183, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 195, 68, 200, 201, 202, 203, 206, 211, 212, 215, 222, 223, 224, 231, 232, 105, 233, 106, 107, 108, 109, 110, 111, 112, 113, 114, 242, 115, 243, 116, 244, 117, 118, 119, 120, 121, 122]
|
||||
// at org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsBuilder.deserialize(TransientConfigurationResultsBuilder.java:171)
|
||||
|
||||
@@ -47,10 +47,10 @@ dependencies {
|
||||
commonCompileOnly(project(":kotlin-scripting-compiler"))
|
||||
commonCompileOnly(project(":kotlin-gradle-statistics"))
|
||||
commonCompileOnly(project(":kotlin-gradle-build-metrics"))
|
||||
commonCompileOnly("com.android.tools.build:gradle:3.6.4")
|
||||
commonCompileOnly("com.android.tools.build:gradle-api:3.6.4")
|
||||
commonCompileOnly("com.android.tools.build:builder:3.6.4")
|
||||
commonCompileOnly("com.android.tools.build:builder-model:3.6.4")
|
||||
commonCompileOnly("com.android.tools.build:gradle:4.2.2")
|
||||
commonCompileOnly("com.android.tools.build:gradle-api:4.2.2")
|
||||
commonCompileOnly("com.android.tools.build:builder:4.2.2")
|
||||
commonCompileOnly("com.android.tools.build:builder-model:4.2.2")
|
||||
commonCompileOnly("org.codehaus.groovy:groovy-all:2.4.12")
|
||||
commonCompileOnly(intellijCore())
|
||||
commonCompileOnly(commonDependency("org.jetbrains.teamcity:serviceMessages"))
|
||||
|
||||
+2
-2
@@ -117,7 +117,7 @@ class AndroidSubplugin : KotlinCompilerPluginSupportPlugin {
|
||||
)
|
||||
kotlinCompilation.compileKotlinTaskProvider.configure {
|
||||
it.androidLayoutResourceFiles.from(
|
||||
sourceSet.res.sourceDirectoryTrees.layoutDirectories
|
||||
sourceSet.res.getSourceDirectoryTrees().layoutDirectories
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -189,7 +189,7 @@ class AndroidSubplugin : KotlinCompilerPluginSupportPlugin {
|
||||
|
||||
fun addSourceSetAsVariant(name: String) {
|
||||
val sourceSet = androidExtension.sourceSets.findByName(name) ?: return
|
||||
val srcDirs = sourceSet.res.sourceDirectoryTrees
|
||||
val srcDirs = sourceSet.res.getSourceDirectoryTrees()
|
||||
if (srcDirs.isNotEmpty()) {
|
||||
addVariant(sourceSet.name, srcDirs)
|
||||
}
|
||||
|
||||
-3
@@ -15,9 +15,6 @@ internal fun Project.forAllAndroidVariants(action: (BaseVariant) -> Unit) {
|
||||
is AppExtension -> androidExtension.applicationVariants.all(action)
|
||||
is LibraryExtension -> {
|
||||
androidExtension.libraryVariants.all(action)
|
||||
if (androidExtension is FeatureExtension) {
|
||||
androidExtension.featureVariants.all(action)
|
||||
}
|
||||
}
|
||||
|
||||
is TestExtension -> androidExtension.applicationVariants.all(action)
|
||||
|
||||
Reference in New Issue
Block a user