File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ android {
2929 }
3030 }
3131
32+ sourceSets {
33+ main. java. srcDirs + = ' src/main/java'
34+ main. resources. srcDirs + = ' src/main/res'
35+ androidTest. java. srcDirs + = ' src/androidTest'
36+ androidTest. resources. srcDirs + = ' src/androidTest/res'
37+ }
38+
3239}
3340
3441configurations {
@@ -52,3 +59,28 @@ task copyLibs(type: Copy) {
5259 from configurations. myConfig
5360 into ' libs'
5461}
62+
63+ task sourcesJar (type : Jar ) {
64+ classifier = ' sources'
65+ from android. sourceSets. main. java. sourceFiles
66+ }
67+
68+ task javadoc (type : Javadoc ) {
69+ source = android. sourceSets. main. java. sourceFiles
70+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
71+ }
72+
73+ task javadocJar (type : Jar , dependsOn : javadoc) {
74+ classifier = ' javadoc'
75+ from javadoc. destinationDir
76+ }
77+
78+ task classesJar (type : Jar ) {
79+ from " $buildDir /intermediates/classes/release"
80+ }
81+
82+ artifacts {
83+ archives classesJar
84+ archives javadocJar
85+ archives sourcesJar
86+ }
You can’t perform that action at this time.
0 commit comments