Commit 50e17e9 1 parent 3ff46e9 commit 50e17e9 Copy full SHA for 50e17e9
File tree 1 file changed +14
-9
lines changed
1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,17 @@ configurations.all {
33
33
}
34
34
}
35
35
36
+ // Force character encoding in case the workspace was not set up correctly
37
+ tasks. withType(Javadoc ) {
38
+ options. encoding = ' UTF-8'
39
+ }
40
+ tasks. withType(JavaCompile ) {
41
+ options. encoding = ' UTF-8'
42
+ }
43
+ tasks. withType(Test ) {
44
+ jvmArgs ' -Dfile.encoding=UTF-8'
45
+ }
46
+
36
47
shadowJar {
37
48
archiveFileName = project. name + " .jar"
38
49
destinationDirectory = file(" build" )
@@ -48,15 +59,9 @@ javadoc {
48
59
options. tags = [ " apiNote" ]
49
60
}
50
61
51
- // Force character encoding in case the workspace was not set up correctly
52
- tasks. withType(Javadoc ) {
53
- options. encoding = ' UTF-8'
54
- }
55
- tasks. withType(JavaCompile ) {
56
- options. encoding = ' UTF-8'
57
- }
58
- tasks. withType(Test ) {
59
- jvmArgs ' -Dfile.encoding=UTF-8'
62
+ java {
63
+ withSourcesJar()
64
+ withJavadocJar()
60
65
}
61
66
62
67
publishing {
You can’t perform that action at this time.
0 commit comments