From ccb5db3630b00ab4e26ea12d51e817242ffe774d Mon Sep 17 00:00:00 2001 From: Zhenjie Yan Date: Fri, 24 Jul 2020 15:06:30 +0800 Subject: [PATCH] Develop the new release script. --- bintray.gradle | 11 ++++++++++- central.gradle | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bintray.gradle b/bintray.gradle index d925543..1a1e9e7 100644 --- a/bintray.gradle +++ b/bintray.gradle @@ -9,6 +9,9 @@ afterEvaluate { project -> repositories { mavenDeployer { repository(url: mavenLocal().getUrl()) + pom.groupId = PROJECT_GROUP + pom.artifactId = POM_ARTIFACT_ID + pom.version = PROJECT_VERSION } } } @@ -68,9 +71,15 @@ install { repositories.mavenInstaller { pom { project { - packaging POM_PACKAGING name POM_NAME + description POM_DESCRIPTION url POM_URL + + packaging POM_PACKAGING + groupId PROJECT_GROUP + artifactId POM_ARTIFACT_ID + version PROJECT_VERSION + licenses { license { name POM_LICENCE_NAME diff --git a/central.gradle b/central.gradle index ccdfd92..c0ab299 100644 --- a/central.gradle +++ b/central.gradle @@ -62,10 +62,10 @@ afterEvaluate { project -> snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') { authentication(userName: getSonatypeUserName(), password: getSonatypePassword()) } - configurePom(pom) } else { repository(url: mavenLocal().getUrl()) } + configurePom(pom) } } }