mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-29 04:30:00 -05:00
16 lines
500 B
Java
16 lines
500 B
Java
package net.fabricmc.loom.task;
|
|
|
|
import static net.fabricmc.loom.task.GenerateSourcesTask.getMappedJarFileWithSuffix;
|
|
|
|
import java.nio.file.Files;
|
|
|
|
import org.gradle.api.tasks.TaskAction;
|
|
|
|
public class CleanSourcesTask extends AbstractLoomTask {
|
|
@TaskAction
|
|
public void doTask() throws Throwable {
|
|
Files.deleteIfExists(getMappedJarFileWithSuffix(getProject(), "-sources.jar", false).toPath());
|
|
Files.deleteIfExists(getMappedJarFileWithSuffix(getProject(), "-sources.jar", true).toPath());
|
|
}
|
|
}
|