-
Notifications
You must be signed in to change notification settings - Fork 976
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (44 loc) · 1.08 KB
/
build.gradle.kts
File metadata and controls
51 lines (44 loc) · 1.08 KB
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
46
47
48
49
50
51
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
`kotlin-dsl`
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
kotlin {
compilerOptions {
allWarningsAsErrors = true
jvmTarget = JvmTarget.JVM_21
}
jvmToolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
gradlePlugin {
plugins {
register("tgx-config") {
id = "tgx-config"
implementationClass = "tgx.gradle.plugin.ConfigurationPlugin"
}
register("tgx-module") {
id = "tgx-module"
implementationClass = "tgx.gradle.plugin.ModulePlugin"
}
}
}
dependencies {
// https://github.com/gradle/gradle/issues/15383#issuecomment-779893192
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
compileOnly(gradleApi())
implementation(libs.android.gradle.plugin)
implementation(libs.okhttp.latest)
implementation(libs.kotlinx.serialization.json)
}
apply(from = "${rootDir.parentFile}/properties.gradle.kts")
if (extra["huawei"] == true) {
dependencies {
implementation(libs.huawei.agconnect)
}
}