Skip to content

Commit c11c737

Browse files
author
Szczepan Faber
committed
Enabled automated releases
1 parent 1a3955f commit c11c737

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

build.gradle

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
1+
buildscript {
2+
repositories {
3+
mavenLocal() // for local testing
4+
maven { url "https://plugins.gradle.org/m2/" }
5+
}
6+
dependencies {
7+
classpath "org.shipkit:shipkit-changelog:1.+"
8+
classpath "org.shipkit:shipkit-auto-version:1.+"
9+
}
10+
}
11+
112
plugins {
2-
id "org.shipkit.shipkit-auto-version" version "1.1.1"
3-
id "org.shipkit.shipkit-changelog" version "1.1.10"
4-
id "org.shipkit.shipkit-github-release" version "1.1.10"
513
id "io.github.gradle-nexus.publish-plugin" version "1.0.0"
614
}
715

8-
//TODO: change java packages to "org.mockito.kotlin"
16+
apply plugin: "org.shipkit.shipkit-auto-version"
17+
apply plugin: "org.shipkit.shipkit-changelog"
18+
apply plugin: "org.shipkit.shipkit-github-release"
19+
920
group = 'org.mockito.kotlin'
1021

1122
tasks.named("generateChangelog") {
1223
previousRevision = project.ext.'shipkit-auto-version.previous-tag'
1324
githubToken = System.getenv("GITHUB_TOKEN")
1425
repository = "mockito/mockito-kotlin"
26+
releaseTag = project.version
1527
}
1628

1729
tasks.named("githubRelease") {
@@ -21,6 +33,7 @@ tasks.named("githubRelease") {
2133
changelog = genTask.outputFile
2234
githubToken = System.getenv("GITHUB_TOKEN")
2335
newTagRevision = System.getenv("GITHUB_SHA")
36+
releaseTag = project.version
2437
}
2538

2639
nexusPublishing {

version.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Version of the produced binaries.
22
# The version is inferred by shipkit-auto-version Gradle plugin (https://github.com/shipkit/shipkit-auto-version)
3-
version=2.3.0
3+
version=2.2.*
4+
tagPrefix=

0 commit comments

Comments
 (0)