File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
2+ apply plugin : ' com.github.dcendents.android-maven' // ADD THIS
3+
4+ group = ' com.github.rmozg'
25
36android {
47 compileSdkVersion 25
@@ -19,3 +22,27 @@ android {
1922
2023dependencies {
2124}
25+
26+ // build a jar with source files
27+ task sourcesJar (type : Jar ) {
28+ from android. sourceSets. main. java. srcDirs
29+ classifier = ' sources'
30+ }
31+
32+ task javadoc (type : Javadoc ) {
33+ failOnError false
34+ source = android. sourceSets. main. java. sourceFiles
35+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
36+ classpath + = configurations. compile
37+ }
38+
39+ // build a jar with javadoc
40+ task javadocJar (type : Jar , dependsOn : javadoc) {
41+ classifier = ' javadoc'
42+ from javadoc. destinationDir
43+ }
44+
45+ artifacts {
46+ archives sourcesJar
47+ archives javadocJar
48+ }
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ buildscript {
99
1010 // NOTE: Do not place your application dependencies here; they belong
1111 // in the individual module build.gradle files
12+ classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5'
1213 }
1314}
1415
You can’t perform that action at this time.
0 commit comments