Simplify gradle build file
This commit is contained in:
parent
d1c5bd35e0
commit
06755ed765
@ -1,7 +1,6 @@
|
|||||||
import com.jfrog.bintray.gradle.BintrayExtension
|
import com.jfrog.bintray.gradle.BintrayExtension
|
||||||
import com.jfrog.bintray.gradle.tasks.BintrayUploadTask
|
import com.jfrog.bintray.gradle.tasks.BintrayUploadTask
|
||||||
import org.jetbrains.dokka.gradle.DokkaTask
|
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.plugin.KotlinSourceSet
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
@ -16,19 +15,9 @@ plugins {
|
|||||||
id("net.researchgate.release") version ("2.8.0")
|
id("net.researchgate.release") version ("2.8.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
repositories {
|
||||||
repositories {
|
mavenCentral()
|
||||||
mavenCentral()
|
jcenter()
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
|
|
||||||
plugins.withType<KotlinPluginWrapper> {
|
|
||||||
tasks.withType<KotlinCompile> {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = "1.8"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -40,6 +29,12 @@ dependencies {
|
|||||||
testImplementation(kotlin("test"))
|
testImplementation(kotlin("test"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<KotlinCompile> {
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val SourceSet.kotlin: SourceDirectorySet
|
val SourceSet.kotlin: SourceDirectorySet
|
||||||
get() = withConvention(KotlinSourceSet::class) { kotlin }
|
get() = withConvention(KotlinSourceSet::class) { kotlin }
|
||||||
|
|
||||||
@ -89,8 +84,8 @@ bintray {
|
|||||||
|
|
||||||
pkg {
|
pkg {
|
||||||
repo = "maven"
|
repo = "maven"
|
||||||
name = "kotlin-result"
|
name = project.name
|
||||||
desc = "A Result monad for modelling success or failure operations."
|
desc = project.description
|
||||||
websiteUrl = "https://github.com/michaelbull/kotlin-result"
|
websiteUrl = "https://github.com/michaelbull/kotlin-result"
|
||||||
issueTrackerUrl = "https://github.com/michaelbull/kotlin-result/issues"
|
issueTrackerUrl = "https://github.com/michaelbull/kotlin-result/issues"
|
||||||
vcsUrl = "git@github.com:michaelbull/kotlin-result.git"
|
vcsUrl = "git@github.com:michaelbull/kotlin-result.git"
|
||||||
|
Loading…
Reference in New Issue
Block a user