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() } } )