Skip to content

Commit

Permalink
Fix releasing to Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaarman committed Nov 30, 2017
1 parent 2565ed4 commit c4cb85e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
To publish a release:

- Tag the commit on master: `git tag -a x.x.x -m x.x.x && git push --tags`
- Execute the release process: `./gradlew clean test mavenCentralSync -PisRelease=true`
- Execute the release process: `./gradlew clean test bintraySign mavenCentralSync -PisRelease=true`
- Don't forget to publish the tag on Github with release notes :)
21 changes: 21 additions & 0 deletions publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,27 @@ publishing {
artifact sourceJar {
classifier "sources"
}

artifact javadocJar

pom.withXml {
def root = asNode()
root.appendNode('name', 'Mockito-Kotlin')
root.appendNode('description', 'Using Mockito with Kotlin.')
root.appendNode('url', 'https://github.com/nhaarman/mockito-kotlin')

def scm = root.appendNode('scm')
scm.appendNode('url', 'scm:git@github.com:nhaarman/mockito-kotlin.git')

def licenses = root.appendNode('licenses')
def mitLicense = licenses.appendNode('license')
mitLicense.appendNode('name', 'MIT')

def developers = root.appendNode('developers')
def nhaarman = developers.appendNode('developer')
nhaarman.appendNode('id', 'nhaarman')
nhaarman.appendNode('name', 'Niek Haarman')
}
}
}
}

0 comments on commit c4cb85e

Please sign in to comment.