aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Faber <s.faber@airbnb.com>2021-03-20 19:30:02 -0500
committerSzczepan Faber <s.faber@airbnb.com>2021-03-22 08:54:48 -0500
commitc11c7378384884e0327d4cedda923e44afb2c483 (patch)
tree283e808395282f86ce317a08bb3d4914913243d1
parent1a3955f0f1bde6a917c2b733f6bb210aca528763 (diff)
downloadmockito-kotlin-c11c7378384884e0327d4cedda923e44afb2c483.tar.gz
Enabled automated releases
-rw-r--r--build.gradle21
-rw-r--r--version.properties3
2 files changed, 19 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 8d74f9b..39b0f65 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,17 +1,29 @@
+buildscript {
+ repositories {
+ mavenLocal() // for local testing
+ maven { url "https://plugins.gradle.org/m2/" }
+ }
+ dependencies {
+ classpath "org.shipkit:shipkit-changelog:1.+"
+ classpath "org.shipkit:shipkit-auto-version:1.+"
+ }
+}
+
plugins {
- id "org.shipkit.shipkit-auto-version" version "1.1.1"
- id "org.shipkit.shipkit-changelog" version "1.1.10"
- id "org.shipkit.shipkit-github-release" version "1.1.10"
id "io.github.gradle-nexus.publish-plugin" version "1.0.0"
}
-//TODO: change java packages to "org.mockito.kotlin"
+apply plugin: "org.shipkit.shipkit-auto-version"
+apply plugin: "org.shipkit.shipkit-changelog"
+apply plugin: "org.shipkit.shipkit-github-release"
+
group = 'org.mockito.kotlin'
tasks.named("generateChangelog") {
previousRevision = project.ext.'shipkit-auto-version.previous-tag'
githubToken = System.getenv("GITHUB_TOKEN")
repository = "mockito/mockito-kotlin"
+ releaseTag = project.version
}
tasks.named("githubRelease") {
@@ -21,6 +33,7 @@ tasks.named("githubRelease") {
changelog = genTask.outputFile
githubToken = System.getenv("GITHUB_TOKEN")
newTagRevision = System.getenv("GITHUB_SHA")
+ releaseTag = project.version
}
nexusPublishing {
diff --git a/version.properties b/version.properties
index 8285f56..708e7ad 100644
--- a/version.properties
+++ b/version.properties
@@ -1,3 +1,4 @@
# Version of the produced binaries.
# The version is inferred by shipkit-auto-version Gradle plugin (https://github.com/shipkit/shipkit-auto-version)
-version=2.3.0
+version=2.2.*
+tagPrefix= \ No newline at end of file