Revert "[Gradle] Add IT that useExperimentalAnnotation produces deprecation warn"

This reverts commit 7bb46121
This commit is contained in:
Alexander Likhachev
2022-02-15 13:35:53 +03:00
committed by Space
parent aba495f63c
commit 589ddc7b98
3 changed files with 0 additions and 42 deletions
@@ -209,18 +209,6 @@ class SimpleKotlinGradleIT : KGPBaseTest() {
}
}
@GradleTest
@DisplayName("useExperimentalAnnotation should produce deprecation warning")
fun testUseExperimentalAnnotationShouldProduceWarning(gradleVersion: GradleVersion) {
project("optInAnnotation", gradleVersion, buildOptions = defaultBuildOptions.copy(logLevel = LogLevel.DEBUG)) {
build("assemble") {
assertOutputContains("-opt-in=kotlin.RequiresOptIn")
assertOutputContains("-opt-in=FooAnnotation")
assertOutputContains("is deprecated and will be removed in next major releases")
}
}
}
@GradleTest
@DisplayName("Should be compatible with project isolation")
@GradleTestVersions(minVersion = TestVersions.Gradle.G_7_1, maxVersion = TestVersions.Gradle.G_7_1)
@@ -1,19 +0,0 @@
plugins {
id "org.jetbrains.kotlin.jvm"
}
repositories {
mavenLocal()
mavenCentral()
}
kotlin {
sourceSets {
main {
languageSettings {
useExperimentalAnnotation("kotlin.RequiresOptIn")
useExperimentalAnnotation("FooAnnotation")
}
}
}
}
@@ -1,11 +0,0 @@
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.BINARY)
@RequiresOptIn
annotation class FooAnnotation
@FooAnnotation
class FooClass
fun foo() {
FooClass()
}