mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 21:47:42 -05:00
Fix new gradle 8.0 deprecation added in 7.2 (#416)
* Fix new gradle 8.0 deprecation added in 7.2 * Handle bootstrap tests a bit better * Fix 0.9 wrapper tests
This commit is contained in:
@@ -27,6 +27,7 @@ package net.fabricmc.loom.configuration;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import org.gradle.api.Action;
|
||||
import org.gradle.api.Project;
|
||||
import org.gradle.api.Task;
|
||||
import org.gradle.api.UnknownTaskException;
|
||||
@@ -144,7 +145,14 @@ public class RemapConfiguration {
|
||||
remapSourcesJarTask.dependsOn(project.getTasks().getByName(sourcesJarTaskName));
|
||||
|
||||
if (isDefaultRemap) {
|
||||
remapSourcesJarTask.doLast(task -> project.getArtifacts().add("archives", remapSourcesJarTask.getOutput()));
|
||||
// Do not use lambda here, see: https://github.com/gradle/gradle/pull/17087
|
||||
//noinspection Convert2Lambda
|
||||
remapSourcesJarTask.doLast(new Action<>() {
|
||||
@Override
|
||||
public void execute(Task task) {
|
||||
project.getArtifacts().add("archives", remapSourcesJarTask.getOutput());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (extension.isShareCaches()) {
|
||||
|
||||
Reference in New Issue
Block a user