Update dependencies

This commit is contained in:
Michael Bull 2019-08-24 00:26:31 +01:00
parent db00e61542
commit 31808eb99c
2 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import com.jfrog.bintray.gradle.BintrayExtension
import com.jfrog.bintray.gradle.tasks.BintrayUploadTask
import org.jetbrains.dokka.gradle.DokkaTask
@ -8,9 +9,9 @@ description = "A Result monad for modelling success or failure operations."
plugins {
`maven-publish`
kotlin("jvm") version ("1.3.41")
kotlin("jvm") version ("1.3.50")
id("org.jetbrains.dokka") version ("0.9.18")
id("com.github.ben-manes.versions") version ("0.21.0")
id("com.github.ben-manes.versions") version ("0.22.0")
id("com.jfrog.bintray") version ("1.8.4")
id("net.researchgate.release") version ("2.8.1")
}
@ -45,6 +46,22 @@ fun BintrayExtension.pkg(configure: BintrayExtension.PackageConfig.() -> Unit) {
pkg(delegateClosureOf(configure))
}
tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
resolutionStrategy {
componentSelection {
all {
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "eap").any {
candidate.version.contains(it, ignoreCase = true)
}
if (rejected) {
reject("Release candidate")
}
}
}
}
}
val dokka by tasks.existing(DokkaTask::class) {
sourceDirs = sourceSets["main"].kotlin.srcDirs
outputFormat = "javadoc"

View File

@ -13,7 +13,7 @@ repositories {
}
dependencies {
val ktorVersion = "1.2.2"
val ktorVersion = "1.2.3"
implementation(rootProject)
implementation(kotlin("stdlib-jdk8"))