Convert settings.gradle to Kotlin DSL
This commit is contained in:
parent
023c26b4a0
commit
d4c05d6d6d
|
@ -1,18 +0,0 @@
|
||||||
include(':annotations')
|
|
||||||
|
|
||||||
include ':lib-ratelimit'
|
|
||||||
project(':lib-ratelimit').projectDir = new File("lib/ratelimit")
|
|
||||||
|
|
||||||
include ':duktape-stub'
|
|
||||||
project(':duktape-stub').projectDir = new File("lib/duktape-stub")
|
|
||||||
|
|
||||||
include ':lib-dataimage'
|
|
||||||
project(':lib-dataimage').projectDir = new File("lib/dataimage")
|
|
||||||
|
|
||||||
new File(rootDir, "src").eachDir { dir ->
|
|
||||||
dir.eachDir { subdir ->
|
|
||||||
String name = ":${dir.name}-${subdir.name}"
|
|
||||||
include name
|
|
||||||
project(name).projectDir = new File("src/${dir.name}/${subdir.name}")
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
include(":annotations")
|
||||||
|
|
||||||
|
include(":lib-ratelimit")
|
||||||
|
project(":lib-ratelimit").projectDir = File("lib/ratelimit")
|
||||||
|
|
||||||
|
include(":duktape-stub")
|
||||||
|
project(":duktape-stub").projectDir = File("lib/duktape-stub")
|
||||||
|
|
||||||
|
include(":lib-dataimage")
|
||||||
|
project(":lib-dataimage").projectDir = File("lib/dataimage")
|
||||||
|
|
||||||
|
File(rootDir, "src").eachDir { dir ->
|
||||||
|
dir.eachDir { subdir ->
|
||||||
|
val name = ":${dir.name}-${subdir.name}"
|
||||||
|
include(name)
|
||||||
|
project(name).projectDir = File("src/${dir.name}/${subdir.name}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun File.eachDir(block: (File) -> Unit) {
|
||||||
|
listFiles()?.filter { it.isDirectory }?.forEach { block(it) }
|
||||||
|
}
|
Loading…
Reference in New Issue