Revert "[Gradle] Add IT that useExperimentalAnnotation produces deprecation warn"
This reverts commit 7bb46121
This commit is contained in:
committed by
Space
parent
aba495f63c
commit
589ddc7b98
-12
@@ -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
|
@GradleTest
|
||||||
@DisplayName("Should be compatible with project isolation")
|
@DisplayName("Should be compatible with project isolation")
|
||||||
@GradleTestVersions(minVersion = TestVersions.Gradle.G_7_1, maxVersion = TestVersions.Gradle.G_7_1)
|
@GradleTestVersions(minVersion = TestVersions.Gradle.G_7_1, maxVersion = TestVersions.Gradle.G_7_1)
|
||||||
|
|||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
plugins {
|
|
||||||
id "org.jetbrains.kotlin.jvm"
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenLocal()
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlin {
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
languageSettings {
|
|
||||||
useExperimentalAnnotation("kotlin.RequiresOptIn")
|
|
||||||
useExperimentalAnnotation("FooAnnotation")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-11
@@ -1,11 +0,0 @@
|
|||||||
@Target(AnnotationTarget.CLASS)
|
|
||||||
@Retention(AnnotationRetention.BINARY)
|
|
||||||
@RequiresOptIn
|
|
||||||
annotation class FooAnnotation
|
|
||||||
|
|
||||||
@FooAnnotation
|
|
||||||
class FooClass
|
|
||||||
|
|
||||||
fun foo() {
|
|
||||||
FooClass()
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user