[Gradle][Tests][MPP] Move BETA-versions test logic in MPPBaseTest

This commit is contained in:
Pavel Kargashinsky
2023-03-27 16:05:41 +02:00
committed by Space Team
parent 2a336140d2
commit 5beba0acc6
2 changed files with 20 additions and 2 deletions
@@ -0,0 +1,20 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.testbase
/** Beta versions of Gradle and AGP are checking in multiplatform related tests.
* Bumped manually.
*/
const val BETA_GRADLE = TestVersions.Gradle.G_8_0
const val BETA_AGP = TestVersions.AGP.AGP_80
/**
* Base class for all Multiplatform Gradle plugin Kotlin integration tests.
*/
@AndroidTestVersions(additionalVersions = [BETA_AGP])
@GradleTestVersions(maxVersion = BETA_GRADLE, additionalVersions = [TestVersions.Gradle.MAX_SUPPORTED])
abstract class MPPBaseTest : KGPBaseTest() {
}
@@ -26,7 +26,6 @@ interface TestVersions {
const val MIN_SUPPORTED = minSupportedGradleVersion
const val MIN_SUPPORTED_KPM = G_7_0
const val MAX_SUPPORTED = G_7_6
const val NEXT_RELEASE = G_8_0
}
object Kotlin {
@@ -48,7 +47,6 @@ interface TestVersions {
const val MIN_SUPPORTED = AGP_42 // KotlinAndroidPlugin.minimalSupportedAgpVersion
const val MAX_SUPPORTED = AGP_74 // Update once Gradle MAX_SUPPORTED version will be bumped
const val NEXT_RELEASE = AGP_80
}
enum class AgpCompatibilityMatrix(