Skip to content

Commit

Permalink
loader/ml9: configure task inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sychic committed Aug 25, 2024
1 parent 2e5cfec commit 2b088d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/kotlin/gg/essential/essential-loader.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ when {
val mixinConfigName = "mixin.essential-loader-stage0.$relocatedPackage.$modName.json"
tasks {
val generateEssentialLoaderMixinConfig by registering {
inputs.properties(
"generatedResourcesDirectory" to generatedResourcesDirectory,
"mixinConfigName" to mixinConfigName,
"relocatedPackage" to relocatedPackage
)
val outputFile = file(generatedResourcesDirectory.get().file(mixinConfigName))
outputs.file(outputFile)
doLast {
Expand All @@ -92,6 +97,10 @@ when {
}
}
val generateEssentialLoaderModNameMarker by registering {
inputs.properties(
"generatedResourcesDirectory" to generatedResourcesDirectory,
"modName" to modName
)
val outputFile = file(generatedResourcesDirectory.get().file("essential-loader-mod-name.txt"))
outputs.file(outputFile)
doLast {
Expand Down

0 comments on commit 2b088d9

Please sign in to comment.