发布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'] licences = ['Apache-2.0']
// mavenCentral // mavenCentral
mavenVersion = '3.8.16' mavenVersion = '1.0.1'
mavenCentralGroupId = 'me.laoyuyu.aria' mavenCentralGroupId = 'com.tencent.tcr'
mavenCentralUserID = 'laoyuyu' mavenCentralUserID = 'laoyuyu'
mavenCentralUserName = 'laoyuyu' mavenCentralUserName = 'laoyuyu'
mavenCentralEmail = '511455842@qq.com' mavenCentralEmail = '511455842@qq.com'

@ -1,6 +1,7 @@
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'signing' apply plugin: 'signing'
version rootProject.ext.mavenVersion
ext { ext {
PUBLISH_GROUP_ID = rootProject.ext.mavenCentralGroupId PUBLISH_GROUP_ID = rootProject.ext.mavenCentralGroupId
PUBLISH_VERSION = rootProject.ext.mavenVersion PUBLISH_VERSION = rootProject.ext.mavenVersion
@ -55,13 +56,13 @@ static def localMavenRepo() {
def getReleaseRepositoryUrl() { def getReleaseRepositoryUrl() {
return isLocal() ? localMavenRepo() return isLocal() ? localMavenRepo()
: hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL : 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() { def getSnapshotRepositoryUrl() {
return isLocal() ? localMavenRepo() return isLocal() ? localMavenRepo()
: hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL : 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(){ def isLocal(){
@ -161,7 +162,7 @@ afterEvaluate { project ->
artifact androidLibraryJar artifact androidLibraryJar
artifact androidSourcesJar artifact androidSourcesJar
artifact androidJavadocsJar // artifact androidJavadocsJar
} else if (project.plugins.hasPlugin('java')) { } else if (project.plugins.hasPlugin('java')) {
from components.java from components.java

Binary file not shown.
Loading…
Cancel
Save