// specific modules should be excluded from publication
if ( ! ["test-support", "jdbc-test"].contains(it.name) &&!it.path.startsWith(":docs:") && it != project(":docs") ) {
apply from: "$rootDir/gradle/publishing.gradle"
apply from: "$rootDir/gradle/bintray.gradle"
publishing {
publications {
mavenJava(MavenPublication) { publication->
artifacts.removeAll { it.classifier ==null }
artifact project.tasks.shadowJar
}
}
}
task release(dependsOn: bintrayUpload)
}
test {
defaultCharacterEncoding ="UTF-8"
testLogging {
displayGranularity 1
showStackTraces =true
exceptionFormat ='full'
events "STARTED", "PASSED", "FAILED", "SKIPPED"
}
}
// Ensure that Javadoc generation is always tested
check.dependsOn(javadoc)
javadoc {
dependsOn delombok
source = delombok.outputs
}
shadowJar {
configurations = []
classifier =null
doFirst {
// See https://github.com/johnrengelman/shadow/blob/5.0.0/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ConfigureShadowRelocation.groovy
Set<String> packages = []
// Always read from core's configurations
for (configuration in tasks.getByPath(":testcontainers:shadowJar").configurations) {