Update buildSrc

This commit is contained in:
Him188 2020-03-24 18:02:59 +08:00
parent d5489737a7
commit 702e14ebfe

View File

@ -1,3 +1,5 @@
import org.gradle.kotlin.dsl.DependencyHandlerScope
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
@ -36,7 +38,7 @@ object Versions {
}
@Suppress("unused")
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
fun DependencyHandlerScope.kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
@Suppress("unused")
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
fun DependencyHandlerScope.ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"