diff --git a/src/main/kotlin/com/lagradost/cloudstream3/gradle/tasks/Tasks.kt b/src/main/kotlin/com/lagradost/cloudstream3/gradle/tasks/Tasks.kt index 8cb70b7..39e4228 100644 --- a/src/main/kotlin/com/lagradost/cloudstream3/gradle/tasks/Tasks.kt +++ b/src/main/kotlin/com/lagradost/cloudstream3/gradle/tasks/Tasks.kt @@ -23,10 +23,7 @@ fun registerTasks(project: Project) { project.rootProject.tasks.register("makePluginsJson", MakePluginsJsonTask::class.java) { it.group = TASK_GROUP - val makeTask = project.tasks.findByName("make") - if (makeTask != null) { - it.dependsOn(makeTask) - } + it.mustRunAfter("make") it.outputs.upToDateWhen { false } @@ -135,4 +132,4 @@ fun registerTasks(project: Project) { it.group = TASK_GROUP it.dependsOn("make") } -} \ No newline at end of file +}