skip setupMacheSource on patch changes to save some time

This commit is contained in:
MiniDigger | Martin 2024-12-13 20:16:59 +01:00
parent e0fae5ef02
commit b95e27be6c

View file

@ -1,4 +1,5 @@
import io.papermc.paperweight.attribute.DevBundleOutput
import io.papermc.paperweight.core.ext
import io.papermc.paperweight.util.*
import java.time.Instant
@ -49,6 +50,12 @@ tasks.generateDevelopmentBundle {
)
}
// TODO remove me again, this is just to not run setupMacheSource when patches change
tasks.setupMacheSources {
paperPatches.setFrom(project.ext.paper.sourcePatchDir.dir("com"), project.ext.paper.featurePatchDir)
// paperPatches.from(project.ext.paper.sourcePatchDir, project.ext.paper.featurePatchDir)
}
abstract class Services {
@get:Inject
abstract val softwareComponentFactory: SoftwareComponentFactory