mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
final try
This commit is contained in:
parent
a9f1ef0fbb
commit
1e0b457503
1 changed files with 2 additions and 11 deletions
|
@ -23,16 +23,6 @@ fun registerTasks(project: Project) {
|
|||
if (project.rootProject.tasks.findByName("makePluginsJson") == null) {
|
||||
project.rootProject.tasks.register("makePluginsJson", MakePluginsJsonTask::class.java) {
|
||||
it.group = TASK_GROUP
|
||||
|
||||
for (subproject in project.allprojects) {
|
||||
subproject.extensions.findCloudstream() ?: continue
|
||||
|
||||
val makeTask = subproject.tasks.findByName("make")
|
||||
if (makeTask != null) {
|
||||
it.dependsOn(makeTask)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
it.outputs.upToDateWhen { false }
|
||||
|
||||
|
@ -92,7 +82,7 @@ fun registerTasks(project: Project) {
|
|||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
project.tasks.register("make", Zip::class.java) {
|
||||
val make = project.tasks.register("make", Zip::class.java) {
|
||||
val compileDexTask = compileDex.get()
|
||||
it.dependsOn(compileDexTask)
|
||||
|
||||
|
@ -131,6 +121,7 @@ fun registerTasks(project: Project) {
|
|||
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
|
||||
}
|
||||
}
|
||||
project.rootProject.tasks.getByName("makePluginsJson").dependsOn(make)
|
||||
}
|
||||
|
||||
project.tasks.register("cleanCache", CleanCacheTask::class.java) {
|
||||
|
|
Loading…
Reference in a new issue