diff --git a/build.gradle b/build.gradle index 1546061424..04b8619165 100644 --- a/build.gradle +++ b/build.gradle @@ -1241,6 +1241,14 @@ project(':forge') { dependsOn 'setupCheckJarCompatibility' baseJar = project.tasks.named('mergeBaseForgeJar').flatMap { it.output } + baseLibraries.from(project.tasks.named('createJoinedSRG').flatMap { it.output }) + + inputJar = project.tasks.named('reobfJar').flatMap { it.output } + concreteLibraries.from(project.PACKED_DEPS.collect { project.rootProject.tasks.getByPath(it).archiveFile }) + + commonLibraries.from(project.configurations.minecraftImplementation) + commonLibraries.from(project.configurations.installer) + commonLibraries.from(project.configurations.moduleonly) } task checkAll(dependsOn: [checkATs, checkSAS, checkExcs, findFieldInstanceChecks, checkPatches, checkLicenses]){} diff --git a/buildSrc/src/main/groovy/net/minecraftforge/forge/tasks/SetupCheckJarCompatibility.groovy b/buildSrc/src/main/groovy/net/minecraftforge/forge/tasks/SetupCheckJarCompatibility.groovy index 045a70405f..d7f76b672e 100644 --- a/buildSrc/src/main/groovy/net/minecraftforge/forge/tasks/SetupCheckJarCompatibility.groovy +++ b/buildSrc/src/main/groovy/net/minecraftforge/forge/tasks/SetupCheckJarCompatibility.groovy @@ -18,6 +18,7 @@ abstract class SetupCheckJarCompatibility extends DefaultTask { onlyIf { inputVersion.getOrNull() != null } + outputs.upToDateWhen { false } // Never up to date, because this setup task should always run baseBinPatchesOutput.convention(project.layout.buildDirectory.dir(name).map { it.file('joined.lzma') }) } @@ -31,17 +32,9 @@ abstract class SetupCheckJarCompatibility extends DefaultTask { }.toArray(Dependency[]::new)) project.tasks.named('checkJarCompatibility') { - baseLibraries.from(project.tasks.createJoinedSRG.output) baseLibraries.from(project.provider { fmlLibs.resolvedConfiguration.lenientConfiguration.files }) - - inputJar = project.tasks.reobfJar.output - concreteLibraries.from(project.PACKED_DEPS.collect { project.rootProject.tasks.getByPath(it).archiveFile }) - - commonLibraries.from(project.configurations.minecraftImplementation) - commonLibraries.from(project.configurations.installer) - commonLibraries.from(project.configurations.moduleonly) } def baseForgeUserdev = project.layout.buildDirectory.dir(name).map { it.file("forge-${inputVersion}-userdev.jar") }.get().asFile