1 Star 0 Fork 0

协同/osmbonuspack

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
maven.gradle 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
Lars Grefer 提交于 2015-12-10 00:26 . add maven support
apply plugin: 'com.github.dcendents.android-maven'
android.libraryVariants.all { variant ->
if (variant.name.contains("release")) {
task("sources${variant.name.capitalize()}Jar", type: Jar) {
from variant.javaCompile.source
classifier = 'sources'
}
task("javadoc${variant.name.capitalize()}", type: Javadoc) {
description "Generates Javadoc for $variant.name."
source = variant.javaCompile.source
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
options.links("http://docs.oracle.com/javase/7/docs/api/");
options.links("http://developer.android.com/reference/");
options.addStringOption('Xdoclint:none', '-quiet')
failOnError false
}
task("javadoc${variant.name.capitalize()}Jar", type: Jar, dependsOn: "javadoc${variant.name.capitalize()}") {
description "Generates Javadoc Jar for $variant.name."
classifier = 'javadoc'
from tasks.findByPath("javadoc${variant.name.capitalize()}").destinationDir
}
artifacts {
archives tasks.findByPath("javadoc${variant.name.capitalize()}Jar")
archives tasks.findByPath("sources${variant.name.capitalize()}Jar")
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/Yefenyun99/osmbonuspack.git
git@gitee.com:Yefenyun99/osmbonuspack.git
Yefenyun99
osmbonuspack
osmbonuspack
master

搜索帮助