PeopleInSpace/build.gradle.kts

48 lines
1.7 KiB
Text
Raw Permalink Normal View History

2020-02-09 11:42:41 +00:00
buildscript {
2021-11-19 22:48:02 +00:00
val kotlinVersion: String by project
println(kotlinVersion)
2020-02-09 11:42:41 +00:00
repositories {
google()
mavenCentral()
gradlePluginPortal()
2021-06-20 12:52:13 +00:00
maven(uri("https://plugins.gradle.org/m2/")) // For kotlinter-gradle
2020-02-09 11:42:41 +00:00
}
2020-02-09 11:42:41 +00:00
dependencies {
2021-07-24 18:12:38 +00:00
// keeping this here to allow AS to automatically update
2021-12-11 16:18:25 +00:00
classpath("com.android.tools.build:gradle:7.0.4")
2021-11-19 22:48:02 +00:00
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}")
2021-07-24 18:12:38 +00:00
with(Deps.Gradle) {
classpath(sqlDelight)
classpath(shadow)
classpath(kotlinter)
2021-09-17 19:04:32 +00:00
classpath(gradleVersionsPlugin)
val kmpNativeCoroutinesVersion = if (kotlinVersion == "1.6.10") "0.10.0-new-mm" else "0.8.0"
2021-11-19 22:48:02 +00:00
classpath("com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin:$kmpNativeCoroutinesVersion")
}
2021-06-19 09:06:01 +00:00
}
2020-02-09 11:42:41 +00:00
}
allprojects {
apply(plugin = "org.jmailen.kotlinter")
2021-06-19 09:06:01 +00:00
2020-02-09 11:42:41 +00:00
repositories {
google()
mavenCentral()
maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers")
2020-10-28 21:19:44 +00:00
maven(url = "https://jitpack.io")
maven(url = "https://androidx.dev/snapshots/builds/7888785/artifacts/repository")
2021-11-19 22:48:02 +00:00
maven(url = "https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven")
maven(url = "https://maven.pkg.jetbrains.space/public/p/ktor/eap")
2020-02-09 11:42:41 +00:00
}
}
// On Apple Silicon we need Node.js 16.0.0
// https://youtrack.jetbrains.com/issue/KT-49109
rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin::class) {
rootProject.the(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension::class).nodeVersion = "16.0.0"
2021-06-20 09:32:24 +00:00
}