forked from cloudinary/cloudinary_java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjava_shared.gradle
41 lines (32 loc) · 874 Bytes
/
java_shared.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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'
}