diff --git a/build.gradle b/build.gradle index 8d74f9b1..77070e49 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,12 +33,16 @@ tasks.named("githubRelease") { changelog = genTask.outputFile githubToken = System.getenv("GITHUB_TOKEN") newTagRevision = System.getenv("GITHUB_SHA") + releaseTag = project.version } nexusPublishing { repositories { if (System.getenv("NEXUS_TOKEN_PWD")) { - sonatype { + sonatype { // Publishing to: https://s01.oss.sonatype.org (faster instance) + nexusUrl = uri("https://s01.oss.sonatype.org/service/local/") + snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") + username = System.getenv("NEXUS_TOKEN_USER") password = System.getenv("NEXUS_TOKEN_PWD") } diff --git a/version.properties b/version.properties index 8285f56f..708e7ad4 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