Skip to content

Commit 8828a86

Browse files
committed
Merge branch 'gradle_build' of https://github.com/ouertani/reactive-streams into gradle_build
2 parents 2547d35 + fcfaf7f commit 8828a86

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

build.gradle

+23-11
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@ allprojects {
1010
gradle.projectsEvaluated {
1111
tasks.withType(JavaCompile) {
1212
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
13-
options.encoding = 'UTF-8'
13+
options.encoding = 'UTF-8'
14+
}
15+
16+
tasks.withType(Javadoc) {
17+
source = sourceSets.main.allJava
18+
19+
configure(options) {
20+
encoding 'UTF-8'
21+
docEncoding 'UTF-8'
22+
charSet 'UTF-8'
23+
linkSource true
24+
noTimestamp true
25+
}
1426
}
1527
}
1628

@@ -52,18 +64,18 @@ allprojects {
5264

5365

5466
subprojects {
55-
apply plugin: 'java'
56-
sourceCompatibility = 1.6
57-
targetCompatibility = 1.6
67+
apply plugin: 'java'
68+
sourceCompatibility = 1.6
69+
targetCompatibility = 1.6
5870

59-
compileJava.options.encoding = 'UTF-8'
71+
compileJava.options.encoding = 'UTF-8'
6072

61-
javadoc {
73+
javadoc {
6274
destinationDir = file("build/docs/java/api")
6375
options.encoding = 'UTF-8'
64-
}
65-
repositories {
66-
mavenLocal()
67-
mavenCentral()
68-
}
76+
}
77+
repositories {
78+
mavenLocal()
79+
mavenCentral()
80+
}
6981
}

0 commit comments

Comments
 (0)