Skip to content

Commit

Permalink
Update name proposal and fix JavadocLintTask when there are no changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Aug 30, 2023
1 parent d074c62 commit 638219f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,18 @@ public JavadocLintTask() {

@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());
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 638219f

Please sign in to comment.