From ad689e884afe7437dd596d9206618222f00116c4 Mon Sep 17 00:00:00 2001 From: stephengold Date: Tue, 21 May 2024 18:07:56 -0700 Subject: [PATCH] buildscripts: refactor --- GarrettLibrary/build.gradle | 2 +- settings.gradle | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GarrettLibrary/build.gradle b/GarrettLibrary/build.gradle index 8452136..f6f87e2 100644 --- a/GarrettLibrary/build.gradle +++ b/GarrettLibrary/build.gradle @@ -152,7 +152,7 @@ publishMavenPublicationToOSSRHRepository.dependsOn('assemble') signing { sign publishing.publications.maven } -tasks.withType(Sign).configureEach { +tasks.withType(Sign) { onlyIf { rootProject.hasProperty('signing.keyId') } } signMavenPublication.dependsOn('module') diff --git a/settings.gradle b/settings.gradle index 39f4359..614101c 100644 --- a/settings.gradle +++ b/settings.gradle @@ -18,8 +18,8 @@ dependencyResolutionManagement { */ def subDirs = rootDir.listFiles( new FileFilter() { - boolean accept(File sub) { - return sub.isDirectory() && new File(sub, 'build.gradle').isFile() + boolean accept(File file) { + return file.isDirectory() && new File(file, 'build.gradle').isFile() } } )