From e8c6dee737bddba795c9b6652707e96cf6c9cdff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Fri, 27 Jan 2023 18:41:00 +0000 Subject: [PATCH] Ignore new warning --- .../gradle/test/kotlin-plugin_app/build.gradle | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/plugin/base/src/testFixtures/resources/net/twisterrob/gradle/test/kotlin-plugin_app/build.gradle b/plugin/base/src/testFixtures/resources/net/twisterrob/gradle/test/kotlin-plugin_app/build.gradle index c70cddd79..0a473a731 100644 --- a/plugin/base/src/testFixtures/resources/net/twisterrob/gradle/test/kotlin-plugin_app/build.gradle +++ b/plugin/base/src/testFixtures/resources/net/twisterrob/gradle/test/kotlin-plugin_app/build.gradle @@ -1,22 +1,34 @@ +//file:noinspection GrPackage suppress because whole file is highlighted as warning. buildscript { repositories { mavenCentral() } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:@net.twisterrob.test.kotlin.pluginVersion@") + def gradleVersion = project.gradle.gradleVersion + def doNotNagAbout = rootProject.ext["doNotNagAbout"] if ("@net.twisterrob.test.kotlin.pluginVersion@" < "1.6.0") { - def doNotNagAbout = rootProject.ext["doNotNagAbout"] // https://youtrack.jetbrains.com/issue/KT-47867 was fixed in 1.6.0, // so disable these warnings for anything that uses Kotlin < 1.6. doNotNagAbout( "7.5.1", /^.*$/, - "IncrementalTaskInputs has been deprecated. This is scheduled to be removed in Gradle 8.0. On method 'KaptWithoutKotlincTask.compile' use 'org.gradle.work.InputChanges' instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.5.1/userguide/upgrading_version_7.html#incremental_task_inputs_deprecation" + "IncrementalTaskInputs has been deprecated. This is scheduled to be removed in Gradle 8.0. On method 'KaptWithoutKotlincTask.compile' use 'org.gradle.work.InputChanges' instead. Consult the upgrading guide for further information: https://docs.gradle.org/${gradleVersion}/userguide/upgrading_version_7.html#incremental_task_inputs_deprecation".toString() ) doNotNagAbout( "7.5.1", /^.*$/, - "IncrementalTaskInputs has been deprecated. This is scheduled to be removed in Gradle 8.0. On method 'AbstractKotlinCompile.execute' use 'org.gradle.work.InputChanges' instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.5.1/userguide/upgrading_version_7.html#incremental_task_inputs_deprecation" + "IncrementalTaskInputs has been deprecated. This is scheduled to be removed in Gradle 8.0. On method 'AbstractKotlinCompile.execute' use 'org.gradle.work.InputChanges' instead. Consult the upgrading guide for further information: https://docs.gradle.org/${gradleVersion}/userguide/upgrading_version_7.html#incremental_task_inputs_deprecation".toString() + ) + } + if ("@net.twisterrob.test.kotlin.pluginVersion@" < "1.7.0") { + // https://youtrack.jetbrains.com/issue/KT-32805#focus=Comments-27-5915479.0-0 was fixed in 1.7.0. + // > Task :kaptGenerateStubsDebugKotlin + // > Task :kaptGenerateStubsDebugUnitTestKotlin + doNotNagAbout( + "8.0", + /^.*$/, + "The AbstractCompile.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the destinationDirectory property instead. Consult the upgrading guide for further information: https://docs.gradle.org/${gradleVersion}/userguide/upgrading_version_7.html#compile_task_wiring".toString() ) } }