diff --git a/main/src/plugin/Main.kt b/main/src/plugin/Main.kt index 6c28dd1..a2a9d81 100644 --- a/main/src/plugin/Main.kt +++ b/main/src/plugin/Main.kt @@ -33,7 +33,7 @@ class MindustryPlugin : Plugin { ex._dependency.arcDependency.set(parentEx._dependency.arcDependency) } } - target.tasks.register(R.task.cleanMindustrySharedCache) { + target.tasks.register(R.task.cleanMindustrySharedCache) { group = BasePlugin.BUILD_GROUP } val genModHjson = tasks.register(R.task.genModHjson) { diff --git a/main/src/task/CleanMindustrySharedCache.kt b/main/src/task/SharedCache.kt similarity index 54% rename from main/src/task/CleanMindustrySharedCache.kt rename to main/src/task/SharedCache.kt index 7a6425d..3291beb 100644 --- a/main/src/task/CleanMindustrySharedCache.kt +++ b/main/src/task/SharedCache.kt @@ -3,7 +3,10 @@ package io.github.liplum.mindustry import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction -open class CleanMindustrySharedCache : DefaultTask() { +/** + * Delete the shared cache + */ +open class CleanSharedCache : DefaultTask() { @TaskAction fun clean() { try { @@ -12,4 +15,15 @@ open class CleanMindustrySharedCache : DefaultTask() { logger.info(e.localizedMessage, e) } } +} + +/** + * Validate the shared cache: + * 1. Check out of date + */ +open class ValidateSharedCache : DefaultTask() { + @TaskAction + fun validate() { + + } } \ No newline at end of file