[Gradle] Schedule 'KotlinSourceSet.requiresVisibilityOf' for removal in 2.0
^KT-58220 Verification Pending See: KT-58228
This commit is contained in:
committed by
Space Team
parent
fa40c1115a
commit
e72f236bd4
+4
-2
@@ -43,10 +43,12 @@ interface KotlinSourceSet : Named, HasProject, HasMutableExtras, HasKotlinDepend
|
||||
const val COMMON_TEST_SOURCE_SET_NAME = "commonTest"
|
||||
}
|
||||
|
||||
val customSourceFilesExtensions: Iterable<String> // lazy iterable expected
|
||||
|
||||
@Deprecated("Scheduled for removal with Kotlin 2.0")
|
||||
val requiresVisibilityOf: Set<KotlinSourceSet>
|
||||
|
||||
@Deprecated("Scheduled for removal with Kotlin 2.0")
|
||||
fun requiresVisibilityOf(other: KotlinSourceSet)
|
||||
|
||||
val customSourceFilesExtensions: Iterable<String> // lazy iterable expected
|
||||
fun addCustomSourceFilesExtensions(extensions: List<String>) {}
|
||||
}
|
||||
|
||||
+2
@@ -124,9 +124,11 @@ abstract class DefaultKotlinSourceSet @Inject constructor(
|
||||
|
||||
private val _requiresVisibilityOf = mutableSetOf<KotlinSourceSet>()
|
||||
|
||||
@Deprecated("Scheduled for removal with Kotlin 2.0")
|
||||
override val requiresVisibilityOf: MutableSet<KotlinSourceSet>
|
||||
get() = Collections.unmodifiableSet(_requiresVisibilityOf)
|
||||
|
||||
@Deprecated("Scheduled for removal with Kotlin 2.0")
|
||||
override fun requiresVisibilityOf(other: KotlinSourceSet) {
|
||||
_requiresVisibilityOf += other
|
||||
}
|
||||
|
||||
+1
@@ -20,6 +20,7 @@ import kotlin.test.assertEquals
|
||||
import kotlin.test.assertFailsWith
|
||||
import kotlin.test.assertNotNull
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
class SourceSetVisibilityInferenceTest {
|
||||
private val project = buildProjectWithMPP()
|
||||
private val kotlin = project.multiplatformExtension.apply {
|
||||
|
||||
Reference in New Issue
Block a user