File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -48,3 +48,28 @@ dependencies {
48
48
testImplementation " org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version "
49
49
testImplementation " com.squareup.okhttp3:mockwebserver:$okhttp "
50
50
}
51
+
52
+ task sourcesJar (type : Jar ) {
53
+ classifier = ' sources'
54
+ from android. sourceSets. main. java. sourceFiles
55
+ }
56
+
57
+ task javadoc (type : Javadoc ) {
58
+ source = android. sourceSets. main. java. sourceFiles
59
+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
60
+ }
61
+
62
+ task javadocJar (type : Jar , dependsOn : javadoc) {
63
+ classifier = ' javadoc'
64
+ from javadoc. destinationDir
65
+ }
66
+
67
+ task classesJar (type : Jar ) {
68
+ from " $buildDir /intermediates/classes/release"
69
+ }
70
+
71
+ artifacts {
72
+ archives classesJar
73
+ archives javadocJar
74
+ archives sourcesJar
75
+ }
You can’t perform that action at this time.
0 commit comments