buildDir is deprecated, replace by layout.buildDirectory
This commit is contained in:
parent
d423e83645
commit
03cfd98af5
1 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Delete>("clean").configure {
|
tasks.register<Delete>("clean").configure {
|
||||||
delete(rootProject.buildDir)
|
delete(rootProject.layout.buildDirectory)
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
|
@ -86,7 +86,7 @@ allprojects {
|
||||||
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
|
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
|
||||||
}
|
}
|
||||||
filter {
|
filter {
|
||||||
exclude { element -> element.file.path.contains("$buildDir/generated/") }
|
exclude { element -> element.file.path.contains("${layout.buildDirectory.asFile.get()}/generated/") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Dependency check
|
// Dependency check
|
||||||
|
|
@ -354,7 +354,7 @@ subprojects {
|
||||||
subprojects {
|
subprojects {
|
||||||
tasks.withType<KspTask>() {
|
tasks.withType<KspTask>() {
|
||||||
doLast {
|
doLast {
|
||||||
fileTree(buildDir).apply { include("**/*ShowkaseExtension*.kt") }.files.forEach { file ->
|
fileTree(layout.buildDirectory).apply { include("**/*ShowkaseExtension*.kt") }.files.forEach { file ->
|
||||||
ReplaceRegExp().apply {
|
ReplaceRegExp().apply {
|
||||||
setMatch("^public fun Showkase.getMetadata")
|
setMatch("^public fun Showkase.getMetadata")
|
||||||
setReplace("@Suppress(\"DEPRECATION\") public fun Showkase.getMetadata")
|
setReplace("@Suppress(\"DEPRECATION\") public fun Showkase.getMetadata")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue