Skip to content

Commit

Permalink
Ignore new warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Jan 27, 2023
1 parent c9927a3 commit e8c6dee
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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()
)
}
}
Expand Down

0 comments on commit e8c6dee

Please sign in to comment.