加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bintray.gradle 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
qiyi 提交于 2019-12-05 15:23 . change bintrayUpload plugin
apply plugin: 'com.jfrog.bintray'
if (project.hasProperty("android")) { // Android libraries
task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
} else { // Java libraries
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
// Bintray
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
apply plugin: 'com.novoda.bintray-release'
publish {
repoName = 'android'
userOrg = properties.getProperty("bintray.userOrg")
groupId = publishedGroupId
artifactId = artifact
publishVersion = libraryVersion
desc = libraryDescription
website = siteUrl
}
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri('../repo-local')) //deploy到本地仓库
pom.groupId = publishedGroupId
pom.artifactId = artifact
pom.version = libraryVersion + '-SNAPSHOT'
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化