1 Star 0 Fork 1

不知道伯纳乌/sgb-android

forked from 张万里/sgb-android 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
upload.gradle 2.50 KB
一键复制 编辑 原始数据 按行查看 历史
wyj 提交于 2021-07-23 15:14 . 会员优化
ext {
initUpload = { group, version, artifactId, isDebug ->
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
//生成源文件
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
getArchiveClassifier().set('sources')
}
//生成文档
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
options.encoding "UTF-8"
options.charSet 'UTF-8'
options.author true
options.version true
options.links "https://github.com/Daimhim/StandByMe"
failOnError false
}
//文档打包成jar
task javadocJar(type: Jar, dependsOn: javadoc) {
getArchiveClassifier().set('javadoc')
from javadoc.destinationDir
}
//拷贝javadoc文件
task copyDoc(type: Copy) {
from "${buildDir}/docs/"
into "docs"
}
project.apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
if (!isDebug){
repository(url: 'https://packages.aliyun.com/maven/repository/2003252-release-xALAGs/') {
authentication(
userName: '5fe03dee8d483c39b2b80729',
password: 'wD=4oZ67JbAP'
)
}
snapshotRepository(url: 'https://packages.aliyun.com/maven/repository/2003252-snapshot-a8Mktt/') {
authentication(
userName: '5fe03dee8d483c39b2b80729',
password: 'wD=4oZ67JbAP'
)
}
}else {
def projectName = rootProject.name
def rootDir = new StringBuffer(rootProject.rootDir.toString())
def index = rootDir.indexOf(projectName)
def rootPath = rootDir.substring(0, index+projectName.length())
repository(url: uri("$rootPath\\repos"))
}
pom.version = version
pom.artifactId = artifactId
pom.groupId = group
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/hybyy/sgb-android.git
[email protected]:hybyy/sgb-android.git
hybyy
sgb-android
sgb-android
dev_shangpin_1.7.0

搜索帮助