File tree Expand file tree Collapse file tree 3 files changed +78
-0
lines changed
simple-runtime-permission-rxjava1
simple-runtime-permission-rxjava2
simple-runtime-permission Expand file tree Collapse file tree 3 files changed +78
-0
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,29 @@ dependencies {
3737 compile ' io.reactivex:rxjava:1.2.10'
3838 compile project(' :simple-runtime-permission' )
3939}
40+
41+ tasks. withType(JavaCompile ) {
42+ options. encoding = " UTF-8"
43+ }
44+
45+ task sourcesJar (type : Jar ) {
46+ from android. sourceSets. main. java. srcDirs
47+ classifier = ' sources'
48+ }
49+
50+ task javadoc (type : Javadoc ) {
51+ failOnError false
52+ source = android. sourceSets. main. java. sourceFiles
53+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
54+ classpath + = configurations. compile
55+ }
56+
57+ task javadocJar (type : Jar , dependsOn : javadoc) {
58+ classifier = ' javadoc'
59+ from javadoc. destinationDir
60+ }
61+
62+ artifacts {
63+ archives sourcesJar
64+ archives javadocJar
65+ }
Original file line number Diff line number Diff line change @@ -38,3 +38,29 @@ dependencies {
3838 */
3939 compile " io.reactivex.rxjava2:rxjava:2.0.9"
4040}
41+
42+ tasks. withType(JavaCompile ) {
43+ options. encoding = " UTF-8"
44+ }
45+
46+ task sourcesJar (type : Jar ) {
47+ from android. sourceSets. main. java. srcDirs
48+ classifier = ' sources'
49+ }
50+
51+ task javadoc (type : Javadoc ) {
52+ failOnError false
53+ source = android. sourceSets. main. java. sourceFiles
54+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
55+ classpath + = configurations. compile
56+ }
57+
58+ task javadocJar (type : Jar , dependsOn : javadoc) {
59+ classifier = ' javadoc'
60+ from javadoc. destinationDir
61+ }
62+
63+ artifacts {
64+ archives sourcesJar
65+ archives javadocJar
66+ }
Original file line number Diff line number Diff line change @@ -31,3 +31,29 @@ dependencies {
3131 })
3232 testCompile ' junit:junit:4.12'
3333}
34+
35+ tasks. withType(JavaCompile ) {
36+ options. encoding = " UTF-8"
37+ }
38+
39+ task sourcesJar (type : Jar ) {
40+ from android. sourceSets. main. java. srcDirs
41+ classifier = ' sources'
42+ }
43+
44+ task javadoc (type : Javadoc ) {
45+ failOnError false
46+ source = android. sourceSets. main. java. sourceFiles
47+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
48+ classpath + = configurations. compile
49+ }
50+
51+ task javadocJar (type : Jar , dependsOn : javadoc) {
52+ classifier = ' javadoc'
53+ from javadoc. destinationDir
54+ }
55+
56+ artifacts {
57+ archives sourcesJar
58+ archives javadocJar
59+ }
You can’t perform that action at this time.
0 commit comments