Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled automated changelog #2301

Merged
merged 1 commit into from May 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -31,9 +31,8 @@ reduce risk, and improve code health, while paying the maintainers of the exact

Mockito publishes every change as a `-SNAPSHOT` version to a public Sonatype repository. Roughly once a month, we
publish a new minor or patch version to Maven Central. For release automation we use Shipkit
library (http://shipkit.org), Gradle Nexus [Publish Plugin](https://github.com/gradle-nexus/publish-plugin), and
Allegro's [Axion Release Plugin](https://github.com/allegro/axion-release-plugin). Fully automated releases are awesome,
and you should do that for your libraries, too!
library (http://shipkit.org), Gradle Nexus [Publish Plugin](https://github.com/gradle-nexus/publish-plugin).
Fully automated releases are awesome, and you should do that for your libraries, too!
See the [latest release notes](https://github.com/mockito/mockito/releases/)
and [latest documentation](https://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html). Docs in
javadoc.io are available 24h after release. Read also
Expand Down
18 changes: 1 addition & 17 deletions build.gradle
Expand Up @@ -10,10 +10,9 @@ buildscript {

classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
classpath 'org.shipkit:shipkit-changelog:1.1.15'
classpath 'org.shipkit:shipkit-auto-version:1.1.11'

classpath 'com.google.googlejavaformat:google-java-format:1.10.0'

classpath 'pl.allegro.tech.build:axion-release-plugin:1.13.2'
}
}

Expand All @@ -25,21 +24,6 @@ plugins {
id 'ru.vyarus.animalsniffer' version '1.5.2'
}

apply plugin: "pl.allegro.tech.build.axion-release"

scmVersion {
tag {
prefix = 'v'
versionSeparator = ''
}
}

allprojects {
version = scmVersion.version
}

println "Building version $version"

description = 'Mockito mock objects library core API and implementation'

apply plugin: 'base'
Expand Down
13 changes: 7 additions & 6 deletions gradle/shipkit.gradle
@@ -1,10 +1,11 @@
apply plugin: "org.shipkit.shipkit-changelog"
apply plugin: "org.shipkit.shipkit-github-release"
apply plugin: 'org.shipkit.shipkit-auto-version'
apply plugin: 'org.shipkit.shipkit-changelog'
apply plugin: 'org.shipkit.shipkit-github-release'

tasks.named("generateChangelog") {
previousRevision = 'HEAD' //TODO, this will generate empty release notes
githubToken = System.getenv("GITHUB_TOKEN")
repository = "mockito/mockito"
tasks.named('generateChangelog') {
previousRevision = project.ext.'shipkit-auto-version.previous-tag'
githubToken = System.getenv('GITHUB_TOKEN')
repository = 'mockito/mockito'
}

tasks.named("githubRelease") {
Expand Down