sourceCompatibility = 1.8 targetCompatibility = 1.8 javadoc { options.encoding = 'UTF-8' } test { testLogging.showStandardStreams = true testLogging.exceptionFormat = 'full' } task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { classifier = 'javadoc' from javadoc.destinationDir } artifacts { archives javadocJar, sourcesJar } tasks.withType(GenerateModuleMetadata) { enabled = false } tasks.withType(Test) { environment 'CLOUDINARY_URL', System.getProperty('CLOUDINARY_URL') maxParallelForks = Runtime.runtime.availableProcessors() // show standard out and standard error of the test JVM(s) on the console testLogging.showStandardStreams = true } tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }