Skip to content

Commit

Permalink
Release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian.panek committed Mar 6, 2019
1 parent 68d15b9 commit b3cb336
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -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<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}

named("afterReleaseBuild") {
dependsOn("bintrayUpload")
}
}

gradlePlugin {
Expand Down

0 comments on commit b3cb336

Please sign in to comment.