-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
45 lines (34 loc) · 1.03 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
val javaVersion = JavaVersion.VERSION_17.majorVersion
allprojects {
repositories {
maven(url = "https://repo.huaweicloud.com/repository/maven/")
maven(url = "https://maven.aliyun.com/repository/central/")
maven(url = "https://mirrors.cloud.tencent.com/nexus/repository/maven-public/")
// enable this repo if above are not up-to-date
// mavenCentral()
}
}
plugins {
kotlin("jvm")
}
ext {
val kotlinVersion: String by System.getProperties()
set("kotlinVersion", kotlinVersion)
}
subprojects {
if (this.name != "app" && this.name != "subtitle") {
plugins.apply("org.jetbrains.kotlin.jvm")
dependencies {
implementation(kotlin("stdlib"))
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = javaVersion
}
}
tasks.withType<JavaCompile> {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
}
}