-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
45 lines (38 loc) · 973 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
google()
mavenCentral()
mavenLocal()
}
dependencies {
classpath(libs.plugin.kotlin.gradle)
classpath(libs.plugin.android.gradle)
classpath(":build-logic")
}
}
plugins {
id("configuration-detekt-convention")
}
subprojects {
apply(plugin = "configuration-ktlint-convention")
group = "net.humans.android.ui"
version = "2024.10.14"
repositories {
google()
mavenCentral()
mavenLocal()
}
setupJavaTarget(this)
}
fun setupJavaTarget(project: Project) {
project.tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
project.tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
}
}