-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
43 lines (36 loc) · 1.25 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-gradle-plugin`
`kotlin-dsl`
}
gradlePlugin {
plugins {
register("internal-embrace-plugin") {
id = "internal-embrace-plugin"
implementationClass = "io.embrace.gradle.InternalEmbracePlugin"
}
}
}
repositories {
google()
mavenCentral()
}
dependencies {
compileOnly(gradleApi())
// NOTE: when updating any of these keep in sync with buildSrc/src/main/kotlin/io/embrace/gradle/Versions.kt
implementation("com.android.tools.build:gradle:8.2.2")
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21")
implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.14.0")
}
// ensure the Kotlin + Java compilers both use the same language level.
project.tasks.withType(JavaCompile::class.java).configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}
// ensure the Kotlin + Java compilers both use the same language level.
project.tasks.withType(KotlinCompile::class.java).configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}