发布Aria到maven仓库

pull/951/head
shawswyan 2 years ago
parent f5b35b5bb2
commit d346b3dd53
  1. 4
      build.gradle
  2. 7
      gradle/mavenCentral-release.gradle
  3. BIN
      secring.gpg

@ -56,8 +56,8 @@ ext {
licences = ['Apache-2.0']
// mavenCentral
mavenVersion = '3.8.16'
mavenCentralGroupId = 'me.laoyuyu.aria'
mavenVersion = '1.0.1'
mavenCentralGroupId = 'com.tencent.tcr'
mavenCentralUserID = 'laoyuyu'
mavenCentralUserName = 'laoyuyu'
mavenCentralEmail = '511455842@qq.com'

@ -1,6 +1,7 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'
version rootProject.ext.mavenVersion
ext {
PUBLISH_GROUP_ID = rootProject.ext.mavenCentralGroupId
PUBLISH_VERSION = rootProject.ext.mavenVersion
@ -55,13 +56,13 @@ static def localMavenRepo() {
def getReleaseRepositoryUrl() {
return isLocal() ? localMavenRepo()
: hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}
def getSnapshotRepositoryUrl() {
return isLocal() ? localMavenRepo()
: hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
: 'https://mirrors.tencent.com/repository/maven/CloudRenderSdk/MicroSdk/snapshots/'
}
def isLocal(){
@ -161,7 +162,7 @@ afterEvaluate { project ->
artifact androidLibraryJar
artifact androidSourcesJar
artifact androidJavadocsJar
// artifact androidJavadocsJar
} else if (project.plugins.hasPlugin('java')) {
from components.java

Binary file not shown.
Loading…
Cancel
Save