diff --git a/RELEASING.md b/RELEASING.md index 07e3973d..f1eb2d6d 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -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 :) \ No newline at end of file diff --git a/publishing.gradle b/publishing.gradle index 3473e721..cb03d878 100644 --- a/publishing.gradle +++ b/publishing.gradle @@ -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') + } } } } \ No newline at end of file