Skip to content

Commit adf6f62

Browse files
committed
fix: provide a default
1 parent c156df8 commit adf6f62

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/CoreTasks.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ class CoreTasks(
101101
oldPaperCommit.convention(project.coreExt.updatingMinecraft.oldPaperCommit)
102102
inputFile.set(macheDecompileJar.flatMap { it.outputJar })
103103
predicate.set { Files.isRegularFile(it) && it.toString().endsWith(".java") }
104-
validateAts.set(project.coreExt.validateAts)
105104
}
106105

107106
val setupMacheSources by tasks.registering(SetupMinecraftSources::class) {
@@ -113,6 +112,7 @@ class CoreTasks(
113112
atFile.set(mergePaperATs.flatMap { it.outputFile })
114113
ats.jstClasspath.from(project.configurations.named(MACHE_MINECRAFT_LIBRARIES_CONFIG))
115114
ats.jst.from(project.configurations.named(JST_CONFIG))
115+
validateAts.set(project.coreExt.validateAts)
116116
}
117117

118118
val extractMacheSources by tasks.registering(ExtractMinecraftSources::class) {

paperweight-core/src/main/kotlin/io/papermc/paperweight/core/tasks/SetupMinecraftSources.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ abstract class SetupMinecraftSources : JavaLauncherZippedTask() {
8686
override fun init() {
8787
super.init()
8888
atWorkingDir.set(layout.cache.resolve(paperTaskOutput(name = "${name}_atWorkingDir")))
89+
validateAts.convention(false)
8990
}
9091

9192
override fun run(outputPath: Path) {

paperweight-core/src/main/kotlin/io/papermc/paperweight/core/tasks/patching/RebuildFilePatches.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ abstract class RebuildFilePatches : JavaLauncherTask() {
258258
at,
259259
temporaryDir.toPath().resolve("jst_work"),
260260
singleFile = true,
261-
validate = false,
262261
)
263262
println("NEW: " + decomp.readText())
264263
}

paperweight-core/src/main/kotlin/io/papermc/paperweight/core/util/ApplySourceATs.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ abstract class ApplySourceATs {
5353
atFile: Path,
5454
workDir: Path,
5555
singleFile: Boolean = false,
56-
validate: Boolean,
56+
validate: Boolean = false,
5757
) {
5858
workDir.deleteRecursive()
5959
workDir.createDirectories()
@@ -71,7 +71,7 @@ abstract class ApplySourceATs {
7171
outputDir: Path,
7272
atFile: Path,
7373
singleFile: Boolean = false,
74-
validate: Boolean,
74+
validate: Boolean = false,
7575
): List<String> {
7676
val format = if (singleFile) "FILE" else "FOLDER"
7777
val validation = if (validate) "ERROR" else "LOG"

0 commit comments

Comments
 (0)