mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
ig one provider will always be without filesize because gradle is dogshit
This commit is contained in:
parent
26c1af5710
commit
a9f1ef0fbb
2 changed files with 2 additions and 15 deletions
|
@ -21,15 +21,7 @@ abstract class MakePluginsJsonTask : DefaultTask() {
|
|||
val lst = LinkedList<PluginEntry>()
|
||||
|
||||
for (subproject in project.allprojects) {
|
||||
val cloudstream = subproject.extensions.findCloudstream() ?: continue
|
||||
|
||||
/*
|
||||
bruh why does gradle ignore task order
|
||||
forcing me to do jank like this
|
||||
*/
|
||||
while (cloudstream.fileSize == null) {
|
||||
Thread.sleep(100)
|
||||
}
|
||||
subproject.extensions.findCloudstream() ?: continue
|
||||
|
||||
lst.add(subproject.makePluginEntry())
|
||||
}
|
||||
|
|
|
@ -127,12 +127,7 @@ fun registerTasks(project: Project) {
|
|||
zip.destinationDirectory.set(project.buildDir)
|
||||
|
||||
it.doLast { task ->
|
||||
try {
|
||||
extension.fileSize = task.outputs.files.singleFile.length()
|
||||
}
|
||||
catch(e: Throwable) {
|
||||
extension.fileSize = -1L
|
||||
}
|
||||
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue