File tree 1 file changed +23
-11
lines changed
1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,19 @@ allprojects {
10
10
gradle. projectsEvaluated {
11
11
tasks. withType(JavaCompile ) {
12
12
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
+ }
14
26
}
15
27
}
16
28
@@ -52,18 +64,18 @@ allprojects {
52
64
53
65
54
66
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
58
70
59
- compileJava. options. encoding = ' UTF-8'
71
+ compileJava. options. encoding = ' UTF-8'
60
72
61
- javadoc {
73
+ javadoc {
62
74
destinationDir = file(" build/docs/java/api" )
63
75
options. encoding = ' UTF-8'
64
- }
65
- repositories {
66
- mavenLocal()
67
- mavenCentral()
68
- }
76
+ }
77
+ repositories {
78
+ mavenLocal()
79
+ mavenCentral()
80
+ }
69
81
}
You can’t perform that action at this time.
0 commit comments