From 82e0710e31820ee327db1e967dd4a970ca44f44f Mon Sep 17 00:00:00 2001 From: Mike Gouline Date: Fri, 24 Mar 2017 23:43:05 +1100 Subject: [PATCH] Publish fixes --- gradle.properties | 10 ++++++---- gradle/publish.gradle | 33 ++++++++++++++++++++------------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/gradle.properties b/gradle.properties index 84a135e..712db53 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,13 +1,15 @@ publish.groupId=space.traversal.kapsule -publish.version=0.1-SNAPSHOT pom.name=Kapsule pom.description=Minimalist dependency injection library for Kotlin pom.url=https://github.com/traversals/kapsule +pom.licence.name=MIT +pom.licence.url=http://opensource.org/licenses/MIT + +pom.developer.id=mgouline +pom.developer.name=Mike Gouline + pom.scm.url=https://github.com/traversals/kapsule pom.scm.connection=scm:git:https://github.com/traversals/kapsule.git pom.scm.developerConnection=scm:git:git@github.com:traversals/kapsule.git - -pom.licence.name=MIT -pom.licence.url=http://opensource.org/licenses/MIT diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 8289a6c..a5c20fb 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -39,35 +39,42 @@ if (hasProperty('ossrh.username') && hasProperty('ossrh.password')) { mavenDeployer { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } - pom.groupId = property('publish.groupId') - pom.artifactId = property('publish.artifactId') - pom.version = property('publish.version') + pom.groupId = project['publish.groupId'] + pom.artifactId = project['publish.artifactId'] + pom.version = project['publish.version'] repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - authentication(userName: property('ossrh.username'), password: property('ossrh.password')) + authentication(userName: project['ossrh.username'], password: project['ossrh.password']) } snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { - authentication(userName: property('ossrh.username'), password: property('ossrh.password')) + authentication(userName: project['ossrh.username'], password: project['ossrh.password']) } pom.project { - name property('pom.name') - description property('pom.description') + name project['pom.name'] + description project['pom.description'] packaging 'jar' - url property('pom.url') + url project['pom.url'] licenses { license { - name property('pom.licence.name') - url property('pom.licence.url') + name project['pom.licence.name'] + url project['pom.licence.url'] + } + } + + developers { + developer { + id project['pom.developer.id'] + name project['pom.developer.name'] } } scm { - url property('pom.scm.url') - connection property('pom.scm.connection') - developerConnection property('pom.scm.developerConnection') + url project['pom.scm.url'] + connection project['pom.scm.connection'] + developerConnection project['pom.scm.developerConnection'] tag 'HEAD' } }