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 3354f24..8cb70b7 100644 --- a/src/main/kotlin/com/lagradost/cloudstream3/gradle/tasks/Tasks.kt +++ b/src/main/kotlin/com/lagradost/cloudstream3/gradle/tasks/Tasks.kt @@ -23,6 +23,11 @@ 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.outputs.upToDateWhen { false } it.outputFile.set(it.project.buildDir.resolve("plugins.json"))