Set minimal supported Gradle version to 6.8.3
^KT-53885 Fixed
This commit is contained in:
-1
@@ -11,7 +11,6 @@ import org.jetbrains.kotlin.gradle.testbase.TestVersions.AGP.AGP_42
|
|||||||
import org.junit.jupiter.api.DisplayName
|
import org.junit.jupiter.api.DisplayName
|
||||||
|
|
||||||
@DisplayName("Configuration cache in Android project")
|
@DisplayName("Configuration cache in Android project")
|
||||||
@GradleTestVersions(minVersion = TestVersions.Gradle.G_6_7)
|
|
||||||
@JvmGradlePluginTests
|
@JvmGradlePluginTests
|
||||||
class ConfigurationCacheForAndroidIT : AbstractConfigurationCacheIT() {
|
class ConfigurationCacheForAndroidIT : AbstractConfigurationCacheIT() {
|
||||||
override val defaultBuildOptions = super.defaultBuildOptions.copy(
|
override val defaultBuildOptions = super.defaultBuildOptions.copy(
|
||||||
|
|||||||
-1
@@ -11,7 +11,6 @@ import org.jetbrains.kotlin.gradle.utils.minSupportedGradleVersion
|
|||||||
|
|
||||||
interface TestVersions {
|
interface TestVersions {
|
||||||
object Gradle {
|
object Gradle {
|
||||||
const val G_6_7 = "6.7.1"
|
|
||||||
const val G_6_8 = "6.8.3"
|
const val G_6_8 = "6.8.3"
|
||||||
const val G_6_9 = "6.9.2"
|
const val G_6_9 = "6.9.2"
|
||||||
const val G_7_0 = "7.0.2"
|
const val G_7_0 = "7.0.2"
|
||||||
|
|||||||
+1
-1
@@ -136,7 +136,7 @@ class GradleAndJdkArgumentsProvider : GradleArgumentsProvider() {
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private val jdkGradleCompatibilityMatrix = mapOf(
|
private val jdkGradleCompatibilityMatrix = mapOf(
|
||||||
JavaVersion.VERSION_15 to GradleVersion.version(TestVersions.Gradle.G_6_7),
|
JavaVersion.VERSION_15 to GradleVersion.version(TestVersions.Gradle.G_6_8),
|
||||||
JavaVersion.VERSION_16 to GradleVersion.version(TestVersions.Gradle.G_7_0),
|
JavaVersion.VERSION_16 to GradleVersion.version(TestVersions.Gradle.G_7_0),
|
||||||
JavaVersion.VERSION_17 to GradleVersion.version(TestVersions.Gradle.G_7_3)
|
JavaVersion.VERSION_17 to GradleVersion.version(TestVersions.Gradle.G_7_3)
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-2
@@ -138,9 +138,8 @@ internal class KaptGenerateStubsConfig : BaseKotlinCompileConfig<KaptGenerateStu
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val shouldUseFileTreeKaptFilter
|
private val shouldUseFileTreeKaptFilter
|
||||||
get() = isGradleVersionAtLeast(7, 5) || !isConfigurationCacheAvailable(project.gradle) && isGradleVersionAtLeast(6, 8)
|
get() = isGradleVersionAtLeast(7, 5) || !isConfigurationCacheAvailable(project.gradle)
|
||||||
|
|
||||||
// Filtering through FileTree and PatternFilterable works faster, but adds empty directories which is the problem for Gradle 6.7
|
|
||||||
private class FileTreeKaptInputsFilter(val spec: KaptFilterSpec) : CachingKaptInputsFilter() {
|
private class FileTreeKaptInputsFilter(val spec: KaptFilterSpec) : CachingKaptInputsFilter() {
|
||||||
override fun filtered(fileCollection: FileCollection): FileCollection {
|
override fun filtered(fileCollection: FileCollection): FileCollection {
|
||||||
return fileCollection.asFileTree.matching { it.include { elem -> isSatisfiedBy(elem.file) } }
|
return fileCollection.asFileTree.matching { it.include { elem -> isSatisfiedBy(elem.file) } }
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ import org.gradle.util.GradleVersion
|
|||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
|
|
||||||
const val minSupportedGradleVersion = "6.7.1"
|
const val minSupportedGradleVersion = "6.8.3"
|
||||||
|
|
||||||
internal fun checkGradleCompatibility(
|
internal fun checkGradleCompatibility(
|
||||||
withComponent: String = "the Kotlin Gradle plugin",
|
withComponent: String = "the Kotlin Gradle plugin",
|
||||||
|
|||||||
Reference in New Issue
Block a user