-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from nhaarman/release-0.9.0
Release 0.9.0
- Loading branch information
Showing
8 changed files
with
92 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
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 uploadArchives -PisRelease=true` | ||
- Head to https://oss.sonatype.org/#stagingRepositories to close and release the deployment. | ||
- Don't forget to publish the tag on Github with release notes :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
plugins { | ||
id "com.jfrog.bintray" version "1.7.1" | ||
id 'com.github.ben-manes.versions' version '0.13.0' | ||
} | ||
apply plugin: 'maven' | ||
apply plugin: 'maven-publish' | ||
|
||
apply from: 'gradle/scripts/tagging.gradle' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,71 @@ | ||
publishing { | ||
publications { | ||
MyPublication(MavenPublication) { | ||
from components.java | ||
artifact javadocJar | ||
artifact sourcesJar | ||
|
||
groupId 'com.nhaarman' | ||
artifactId 'mockito-kotlin' | ||
version rootProject.ext.versionName | ||
} | ||
} | ||
} | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
bintray { | ||
user = hasProperty('bintray_user') ? bintray_user : System.getenv('BINTRAY_USER') | ||
key = hasProperty('bintray_key') ? bintray_key : System.getenv('BINTRAY_KEY') | ||
publications = ['MyPublication'] | ||
group = 'com.nhaarman' | ||
version = rootProject.ext.versionName | ||
def sonatypeUsername = hasProperty('sonatype_username') ? sonatype_username : System.getenv('SONATYPE_USERNAME') | ||
def sonatypePassword = hasProperty('sonatype_password') ? sonatype_password : System.getenv('SONATYPE_PASSWORD') | ||
|
||
pkg { | ||
repo = 'maven' | ||
name = "Mockito-Kotlin" | ||
desc = "Using Mockito with Kotlin" | ||
|
||
licenses = ['MIT'] | ||
vcsUrl = 'https://github.com/bintray/gradle-bintray-plugin.git' | ||
|
||
version { | ||
name = rootProject.ext.versionName | ||
desc = 'Using Mockito with Kotlin' | ||
vcsTag = rootProject.ext.versionName | ||
} | ||
} | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from 'build/docs/javadoc' | ||
from 'build/javadoc' | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
from sourceSets.main.allSource | ||
classifier = 'sources' | ||
} | ||
|
||
artifacts { | ||
archives jar | ||
|
||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
signing { | ||
sign configurations.archives | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
authentication( | ||
userName: sonatypeUsername, | ||
password: sonatypePassword | ||
) | ||
} | ||
|
||
pom.project { | ||
name 'Mockito-Kotlin' | ||
packaging 'jar' | ||
description 'Using Mockito with Kotlin.' | ||
url 'https://github.com/nhaarman/mockito-kotlin' | ||
|
||
scm { | ||
url 'scm:git@github.com:nhaarman/mockito-kotlin.git' | ||
connection 'scm:git@github.com:nhaarman/mockito-kotlin.git' | ||
developerConnection 'scm:git@github.com:nhaarman/mockito-kotlin.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'MIT' | ||
distribution 'repo' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'nhaarman' | ||
name 'Niek Haarman' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters