From b3cb3361a2ba4c6d1848c04c8f314a2c7e30abcb Mon Sep 17 00:00:00 2001 From: "krystian.panek" Date: Wed, 6 Mar 2019 07:51:39 +0100 Subject: [PATCH] Release automation --- build.gradle.kts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 25cf5e1..51560cb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("java-gradle-plugin") id("org.jetbrains.kotlin.jvm") version "1.3.10" + id("net.researchgate.release") version "2.6.0" id("com.jfrog.bintray") version "1.8.4" id("maven-publish") } @@ -39,13 +40,24 @@ tasks { dependsOn("classes") from(sourceSets["main"].allSource) } - named("build") { dependsOn("sourcesJar") } - named("publishToMavenLocal") { dependsOn("sourcesJar") } + + named("build") { + dependsOn("sourcesJar") + } + + named("publishToMavenLocal") { + dependsOn("sourcesJar") + } + withType().configureEach { kotlinOptions { jvmTarget = "1.8" } } + + named("afterReleaseBuild") { + dependsOn("bintrayUpload") + } } gradlePlugin {