Skip to content

Commit

Permalink
Publish fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline committed Mar 24, 2017
1 parent 1cb6e25 commit 82e0710
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
10 changes: 6 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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:[email protected]:traversals/kapsule.git

pom.licence.name=MIT
pom.licence.url=http://opensource.org/licenses/MIT
33 changes: 20 additions & 13 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
Expand Down

0 comments on commit 82e0710

Please sign in to comment.