aboutsummaryrefslogtreecommitdiff
path: root/build-src/src/main/kotlin/helpers.kt
diff options
context:
space:
mode:
Diffstat (limited to 'build-src/src/main/kotlin/helpers.kt')
-rw-r--r--build-src/src/main/kotlin/helpers.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/build-src/src/main/kotlin/helpers.kt b/build-src/src/main/kotlin/helpers.kt
index 5afef4f..48c230e 100644
--- a/build-src/src/main/kotlin/helpers.kt
+++ b/build-src/src/main/kotlin/helpers.kt
@@ -1,4 +1,5 @@
import org.gradle.api.plugins.ExtensionAware
+import org.gradle.kotlin.dsl.DependencyHandlerScope
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.findByType
@@ -8,3 +9,9 @@ inline fun <reified T : Any> ExtensionAware.configureIf(crossinline block: T.()
extensions.configure<T> { block() }
}
}
+
+val ktor_version = "3.0.3"
+
+fun DependencyHandlerScope.declareKtorVersion() {
+ "implementation"(platform("io.ktor:ktor-bom:$ktor_version"))
+}