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

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'