try to fix pRoJeCtS mUsT bE cOnFiGuRiNg
This commit is contained in:
parent
697a00b443
commit
89b7c772ff
2 changed files with 6 additions and 59 deletions
|
|
@ -8,7 +8,7 @@ plugins {
|
|||
`build-dashboard`
|
||||
|
||||
// kotlin("multiplatform") apply false // try to stop error 'Projects must be configuring'
|
||||
kotlin("js") 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"
|
||||
|
|
@ -74,29 +74,3 @@ 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