Prevent build of empty root jar

This commit is contained in:
Paul Schaub 2022-01-11 14:33:05 +01:00
parent 8e3ee6c284
commit cb287e46eb
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,12 @@ allprojects {
}
}
// Only generate jar for submodules
// https://stackoverflow.com/a/25445035
jar {
onlyIf { !sourceSets.main.allSource.files.isEmpty() }
}
// checkstyle
checkstyle {
toolVersion = '8.18'