File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,31 @@ android {
2323
2424}
2525
26+ tasks. withType(JavaCompile ) {
27+ options. encoding = " UTF-8"
28+ }
29+
30+ task androidJavadocs (type : Javadoc ) {
31+ failOnError false
32+ source = android. sourceSets. main. java. srcDirs
33+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
34+ }
35+
36+ task androidJavadocsJar (type : Jar , dependsOn : androidJavadocs) {
37+ classifier = ' javadoc'
38+ from androidJavadocs. destinationDir
39+ }
40+
41+ task androidSourcesJar (type : Jar ) {
42+ classifier = ' sources'
43+ from android. sourceSets. main. java. srcDirs
44+ }
45+
46+ artifacts {
47+ archives androidSourcesJar
48+ archives androidJavadocsJar
49+ }
50+
2651dependencies {
2752 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
2853 implementation " org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version "
You can’t perform that action at this time.
0 commit comments