Skip to content

Commit

Permalink
update gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang committed Oct 16, 2018
1 parent e6ab117 commit 500675d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions shadowlayout-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,20 @@ task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

// 打包文档jar
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

0 comments on commit 500675d

Please sign in to comment.