Update name proposal and fix JavadocLintTask when there are no changes.

This commit is contained in:
modmuss50 2023-08-30 15:45:51 +01:00
parent d074c62ba7
commit 638219fd96
2 changed files with 10 additions and 2 deletions

View File

@ -56,10 +56,18 @@ public abstract class JavadocLintTask extends DefaultTask {
@TaskAction
public void run(InputChanges changes) {
List<FileChange> fileChanges = new ArrayList<>();
changes.getFileChanges(mappingDirectory).forEach(fileChanges::add);
if (fileChanges.isEmpty()) {
// Nothing changed, nothing to do!
return;
}
WorkQueue workQueue = getWorkerExecutor().noIsolation();
workQueue.submit(LintAction.class, parameters -> {
for (FileChange change : changes.getFileChanges(mappingDirectory)) {
for (FileChange change : fileChanges) {
if (change.getChangeType() != ChangeType.REMOVED && change.getFileType() == FileType.FILE) {
parameters.getMappingFiles().from(change.getFile());
}

View File

@ -6,7 +6,7 @@ org.gradle.configuration-cache=true
enigma_version=2.3.1
unpick_version=2.3.0
cfr_version=0.2.1
name_proposal_version=0.1.4
name_proposal_version=0.1.5
asm_version=9.5
# Javadoc generation/linking