PeopleInSpace/build.gradle.kts
2022-01-29 13:26:02 +00:00

45 lines
No EOL
1.5 KiB
Text

buildscript {
val kotlinVersion: String by project
println(kotlinVersion)
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven(uri("https://plugins.gradle.org/m2/")) // For kotlinter-gradle
}
dependencies {
// keeping this here to allow AS to automatically update
classpath("com.android.tools.build:gradle:7.1.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}")
with(Deps.Gradle) {
classpath(sqlDelight)
classpath(shadow)
classpath(kotlinter)
classpath(gradleVersionsPlugin)
classpath("com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin:${Versions.kmpNativeCoroutinesVersion}")
}
}
}
allprojects {
apply(plugin = "org.jmailen.kotlinter")
repositories {
google()
mavenCentral()
maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers")
maven(url = "https://jitpack.io")
maven(url = "https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven")
}
}
// 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"
}