Skip to content

Commit c4cb85e

Browse files
committed
Fix releasing to Maven Central
1 parent 2565ed4 commit c4cb85e

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
To publish a release:
22

33
- Tag the commit on master: `git tag -a x.x.x -m x.x.x && git push --tags`
4-
- Execute the release process: `./gradlew clean test mavenCentralSync -PisRelease=true`
4+
- Execute the release process: `./gradlew clean test bintraySign mavenCentralSync -PisRelease=true`
55
- Don't forget to publish the tag on Github with release notes :)

publishing.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,27 @@ publishing {
3737
artifact sourceJar {
3838
classifier "sources"
3939
}
40+
41+
artifact javadocJar
42+
43+
pom.withXml {
44+
def root = asNode()
45+
root.appendNode('name', 'Mockito-Kotlin')
46+
root.appendNode('description', 'Using Mockito with Kotlin.')
47+
root.appendNode('url', 'https://github.com/nhaarman/mockito-kotlin')
48+
49+
def scm = root.appendNode('scm')
50+
scm.appendNode('url', 'scm:git@github.com:nhaarman/mockito-kotlin.git')
51+
52+
def licenses = root.appendNode('licenses')
53+
def mitLicense = licenses.appendNode('license')
54+
mitLicense.appendNode('name', 'MIT')
55+
56+
def developers = root.appendNode('developers')
57+
def nhaarman = developers.appendNode('developer')
58+
nhaarman.appendNode('id', 'nhaarman')
59+
nhaarman.appendNode('name', 'Niek Haarman')
60+
}
4061
}
4162
}
4263
}

0 commit comments

Comments
 (0)