代码拉取完成,页面将自动刷新
同步操作将从 张万里/sgb-android 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
}
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。