代码拉取完成,页面将自动刷新
apply plugin: 'maven-publish'
apply plugin: 'signing'
//发布地址 https://s01.oss.sonatype.org/#stagingProfiles
afterEvaluate {
publishing {
def signingConfigPropsFile = rootProject.file("local.properties")
def signingConfigProps = new Properties()
signingConfigProps.load((new FileInputStream(signingConfigPropsFile)))
publications {
release(MavenPublication) {
from components.release
groupId = 'io.gitee.yandeqing' //sonatype平台创建的groupId 具体需要在https://issues.sonatype.org/projects上申请
artifactId = project.name
version = '1.0.3' //库版本名
project.ext["signing.keyId"] =signingConfigProps['signing.keyId'] //GPG指纹后8位
project.ext["signing.password"] = signingConfigProps['signing.password'] //GPG密码
project.ext["signing.secretKeyRingFile"] =signingConfigProps['signing.secretKeyRingFile'] //GPG私钥
pom {
name = "zrefreshview"
description = "add enableRefresh switch function"
url = "https://www.gitee.com/yandeqing" //github主页地址
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer { //填开发者信息
id = "yandeqing"
name = "yandeqing"
email = "546218945@qq.com"
}
}
scm {
connection = "scm:svn:https://www.gitee.com/yandeqing" //后面为github主页地址
developerConnection = "scm:svn:https://www.gitee.com/yandeqing" //后面为github主页地址
url = "https://www.gitee.com/yandeqing" //github主页地址
}
}
}
}
repositories {
maven {
// release https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ //正式上传地址
name = 'sonatypeRepository'
// url = "https://s01.oss.sonatype.org/content/repositories/snapshots/" //快照上传地址
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
//sonatype平台账号密码
username = signingConfigProps["ossrhUsername"]
password = signingConfigProps["ossrhPassword"]
}
}
}
}
project.signing {
sign project.publishing.publications
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。