Simplify gradle build file

This commit is contained in:
Michael Bull 2019-06-09 13:48:30 +01:00
parent d1c5bd35e0
commit 06755ed765

View File

@ -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,21 +15,11 @@ plugins {
id("net.researchgate.release") version ("2.8.0")
}
allprojects {
repositories {
mavenCentral()
jcenter()
}
plugins.withType<KotlinPluginWrapper> {
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
}
dependencies {
implementation(kotlin("stdlib"))
testImplementation("junit:junit:4.12")
@ -40,6 +29,12 @@ dependencies {
testImplementation(kotlin("test"))
}
tasks.withType<KotlinCompile> {
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"