add some hacks to try and stop 'Projects must be configuring' bug
This commit is contained in:
parent
ffe9bcb9a8
commit
6618a92a66
5 changed files with 145 additions and 20 deletions
|
|
@ -7,7 +7,8 @@ plugins {
|
|||
`project-report`
|
||||
`build-dashboard`
|
||||
|
||||
kotlin("multiplatform") apply false // try to stop error 'Projects must be configuring'
|
||||
// kotlin("multiplatform") apply false // try to stop error 'Projects must be configuring'
|
||||
kotlin("js") apply false // try to stop error 'Projects must be configuring'
|
||||
}
|
||||
|
||||
group = "dev.adamko.kafkatorio"
|
||||
|
|
@ -73,3 +74,29 @@ val runWebMap by tasks.registering {
|
|||
|
||||
dependsOn(":modules:web-map:browserDevelopmentRun")
|
||||
}
|
||||
|
||||
// projects must be configuring hack
|
||||
val hackLinePrefix = "// projects must be configuring hack "
|
||||
|
||||
gradle.beforeSettings {
|
||||
|
||||
val buildGradleKts: File =
|
||||
// project.buildFile
|
||||
layout.projectDirectory.file("buildSrc/build.gradle.kts").asFile
|
||||
|
||||
val hackedLines = buildGradleKts.readText()
|
||||
.lines()
|
||||
.joinToString(System.lineSeparator()) {
|
||||
println("hacking $it")
|
||||
when {
|
||||
it.startsWith(hackLinePrefix) -> "$hackLinePrefix ${System.currentTimeMillis()}"
|
||||
else -> it
|
||||
}
|
||||
}
|
||||
|
||||
buildGradleKts.writeText(hackedLines)
|
||||
}
|
||||
|
||||
tasks.configureEach {
|
||||
inputs.property("pRoJeCtS-mUsT-bE-cOnFiGuRiNg", System.currentTimeMillis())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue