Skip to content

Commit

Permalink
ValidateSharedCache
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Dec 21, 2023
1 parent 289c23d commit 5623233
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/src/plugin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MindustryPlugin : Plugin<Project> {
ex._dependency.arcDependency.set(parentEx._dependency.arcDependency)
}
}
target.tasks.register<CleanMindustrySharedCache>(R.task.cleanMindustrySharedCache) {
target.tasks.register<CleanSharedCache>(R.task.cleanMindustrySharedCache) {
group = BasePlugin.BUILD_GROUP
}
val genModHjson = tasks.register<ModHjsonGenerate>(R.task.genModHjson) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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() {

}
}

0 comments on commit 5623233

Please sign in to comment.