aboutsummaryrefslogtreecommitdiff
path: root/build-src/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'build-src/src/main/kotlin')
-rw-r--r--build-src/src/main/kotlin/helpers.kt7
-rw-r--r--build-src/src/main/kotlin/ledger-globals.gradle.kts2
2 files changed, 9 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"))
+}
diff --git a/build-src/src/main/kotlin/ledger-globals.gradle.kts b/build-src/src/main/kotlin/ledger-globals.gradle.kts
index 8d49379..4238322 100644
--- a/build-src/src/main/kotlin/ledger-globals.gradle.kts
+++ b/build-src/src/main/kotlin/ledger-globals.gradle.kts
@@ -1,3 +1,5 @@
+apply(plugin = "org.gradle.base")
+
repositories {
mavenCentral()
maven("https://repo.nea.moe/releases/")