mirror of https://github.com/FabricMC/yarn.git
Update name proposal and fix JavadocLintTask when there are no changes.
This commit is contained in:
parent
d074c62ba7
commit
638219fd96
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue