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()
|
2020-04-03 19:04:36 +00:00
|
|
|
mavenCentral()
|
2021-06-16 17:42:33 +00:00
|
|
|
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
|
|
|
}
|
2021-06-19 11:45:16 +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
|
2022-01-25 18:56:33 +00:00
|
|
|
classpath("com.android.tools.build:gradle:7.1.0")
|
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
|
|
|
|
2021-06-20 18:16:08 +00:00
|
|
|
with(Deps.Gradle) {
|
|
|
|
classpath(sqlDelight)
|
|
|
|
classpath(shadow)
|
|
|
|
classpath(kotlinter)
|
2021-09-17 19:04:32 +00:00
|
|
|
classpath(gradleVersionsPlugin)
|
2021-12-23 11:12:34 +00:00
|
|
|
classpath("com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin:${Versions.kmpNativeCoroutinesVersion}")
|
2021-06-20 18:16:08 +00:00
|
|
|
}
|
2021-06-19 09:06:01 +00:00
|
|
|
}
|
2020-02-09 11:42:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2021-06-19 11:45:16 +00:00
|
|
|
apply(plugin = "org.jmailen.kotlinter")
|
2021-06-19 09:06:01 +00:00
|
|
|
|
2020-02-09 11:42:41 +00:00
|
|
|
repositories {
|
|
|
|
google()
|
2020-04-03 19:04:36 +00:00
|
|
|
mavenCentral()
|
2021-07-10 12:12:06 +00:00
|
|
|
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")
|
2021-11-19 22:48:02 +00:00
|
|
|
maven(url = "https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven")
|
2020-02-09 11:42:41 +00:00
|
|
|
}
|
2021-12-18 18:27:09 +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
|
|
|
}
|