Update dependencies
This commit is contained in:
parent
f6776498a5
commit
183ea9a234
@ -1,21 +1,19 @@
|
|||||||
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 groovy.lang.Closure
|
|
||||||
import org.gradle.api.internal.HasConvention
|
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
||||||
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.KotlinPluginWrapper
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
description = "A Result monad for modelling success or failure operations."
|
description = "A Result monad for modelling success or failure operations."
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
kotlin("jvm") version ("1.3.0")
|
kotlin("jvm") version ("1.3.31")
|
||||||
id("org.jetbrains.dokka") version ("0.9.17")
|
id("org.jetbrains.dokka") version ("0.9.18")
|
||||||
id("com.github.ben-manes.versions") version ("0.20.0")
|
id("com.github.ben-manes.versions") version ("0.21.0")
|
||||||
id("com.jfrog.bintray") version ("1.8.4")
|
id("com.jfrog.bintray") version ("1.8.4")
|
||||||
id("net.researchgate.release") version ("2.7.0")
|
id("net.researchgate.release") version ("2.8.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import org.jetbrains.kotlin.gradle.dsl.Coroutines
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
application
|
application
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
@ -15,7 +13,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
val ktorVersion = "1.0.0-beta-3"
|
val ktorVersion = "1.2.1"
|
||||||
|
|
||||||
implementation(project(":"))
|
implementation(project(":"))
|
||||||
implementation(kotlin("stdlib-jdk8"))
|
implementation(kotlin("stdlib-jdk8"))
|
||||||
@ -24,7 +22,3 @@ dependencies {
|
|||||||
implementation("io.ktor:ktor-server-netty:${ktorVersion}")
|
implementation("io.ktor:ktor-server-netty:${ktorVersion}")
|
||||||
implementation("io.ktor:ktor-gson:${ktorVersion}")
|
implementation("io.ktor:ktor-gson:${ktorVersion}")
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
|
||||||
experimental.coroutines = Coroutines.ENABLE
|
|
||||||
}
|
|
||||||
|
@ -27,7 +27,6 @@ import com.github.michaelbull.result.mapBoth
|
|||||||
import com.github.michaelbull.result.mapError
|
import com.github.michaelbull.result.mapError
|
||||||
import com.github.michaelbull.result.toResultOr
|
import com.github.michaelbull.result.toResultOr
|
||||||
import io.ktor.application.Application
|
import io.ktor.application.Application
|
||||||
import io.ktor.application.ApplicationCall
|
|
||||||
import io.ktor.application.call
|
import io.ktor.application.call
|
||||||
import io.ktor.application.install
|
import io.ktor.application.install
|
||||||
import io.ktor.features.CallLogging
|
import io.ktor.features.CallLogging
|
||||||
@ -53,7 +52,6 @@ fun Application.main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
routing {
|
routing {
|
||||||
get("/customers/{id}") {
|
get("/customers/{id}") {
|
||||||
call.parameters.readId()
|
call.parameters.readId()
|
||||||
|
Loading…
Reference in New Issue
Block a user