From 06755ed765c70e4c24440561ee6b4b6fb8ed81eb Mon Sep 17 00:00:00 2001 From: Michael Bull Date: Sun, 9 Jun 2019 13:48:30 +0100 Subject: [PATCH] Simplify gradle build file --- build.gradle.kts | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 13f5d0b..f5cc251 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,6 @@ import com.jfrog.bintray.gradle.BintrayExtension import com.jfrog.bintray.gradle.tasks.BintrayUploadTask import org.jetbrains.dokka.gradle.DokkaTask -import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -16,19 +15,9 @@ plugins { id("net.researchgate.release") version ("2.8.0") } -allprojects { - repositories { - mavenCentral() - jcenter() - } - - plugins.withType { - tasks.withType { - kotlinOptions { - jvmTarget = "1.8" - } - } - } +repositories { + mavenCentral() + jcenter() } dependencies { @@ -40,6 +29,12 @@ dependencies { testImplementation(kotlin("test")) } +tasks.withType { + kotlinOptions { + jvmTarget = "1.8" + } +} + val SourceSet.kotlin: SourceDirectorySet get() = withConvention(KotlinSourceSet::class) { kotlin } @@ -89,8 +84,8 @@ bintray { pkg { repo = "maven" - name = "kotlin-result" - desc = "A Result monad for modelling success or failure operations." + name = project.name + desc = project.description websiteUrl = "https://github.com/michaelbull/kotlin-result" issueTrackerUrl = "https://github.com/michaelbull/kotlin-result/issues" vcsUrl = "git@github.com:michaelbull/kotlin-result.git"