mirror of
https://github.com/recloudstream/plugin-template.git
synced 2024-08-15 03:16:05 +00:00
A slight convenience
Co-authored-by: Cloudburst <18114966+C10udburst@users.noreply.github.com>
This commit is contained in:
parent
05d96c114f
commit
f25a405108
1 changed files with 15 additions and 4 deletions
|
@ -3,7 +3,18 @@ rootProject.name = "CloudstreamPlugins"
|
|||
// This file sets what projects are included. Every time you add a new project, you must add it
|
||||
// to the includes below.
|
||||
|
||||
// Plugins are included like this
|
||||
include(
|
||||
"ExampleProvider"
|
||||
)
|
||||
val disabled = listOf()
|
||||
|
||||
File(rootDir, ".").eachDir { dir ->
|
||||
if (!disabled.contains(dir.name) && File(dir, "build.gradle.kts").exists()) {
|
||||
include(dir.name)
|
||||
}
|
||||
}
|
||||
|
||||
fun File.eachDir(block: (File) -> Unit) {
|
||||
listFiles()?.filter { it.isDirectory }?.forEach { block(it) }
|
||||
}
|
||||
|
||||
|
||||
// To only include a single project, comment out the previous lines (except the first one), and include your plugin like so:
|
||||
// include("PluginName")
|
Loading…
Reference in a new issue