mirror of
https://github.com/recloudstream/plugin-template.git
synced 2024-08-15 03:16:05 +00:00
Compare commits
No commits in common. "86cfd9278599b87c29af24bcbc179580e3aab723" and "05d96c114fd48fdce34b8344d3e2a22e027ae7ba" have entirely different histories.
86cfd92785
...
05d96c114f
1 changed files with 6 additions and 16 deletions
|
@ -1,19 +1,9 @@
|
|||
rootProject.name = "CloudstreamPlugins"
|
||||
|
||||
// This file sets what projects are included. All new projects should get automatically included unless specified in "disabled" variable.
|
||||
// This file sets what projects are included. Every time you add a new project, you must add it
|
||||
// to the includes below.
|
||||
|
||||
val disabled = listOf<String>()
|
||||
|
||||
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")
|
||||
// Plugins are included like this
|
||||
include(
|
||||
"ExampleProvider"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue