forked from varabyte/kobweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
31 lines (27 loc) · 1007 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Plugins declared here instead of settings.gradle.kts because otherwise I get an error saying the kotlin plugin was
// applied multiple times.
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlinx.serialization) apply false
alias(libs.plugins.jetbrains.compose) apply false
}
subprojects {
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
// Require Java 11 for a few APIs. A very important one is ProcessHandle, used for detecting if a
// server is running in a cross-platform way.
val versionStr = JavaVersion.VERSION_11.toString()
tasks.withType<JavaCompile> {
sourceCompatibility = versionStr
targetCompatibility = versionStr
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = versionStr
}
}
}