forked from TGX-Android/Telegram-X
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (49 loc) · 1.43 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
45
46
47
48
49
50
51
52
53
54
plugins {
`kotlin-dsl`
}
val kotlinVersion = "1.8.20"
gradlePlugin {
plugins {
register("module-plugin") {
id = "module-plugin"
implementationClass = "me.vkryl.plugin.ModulePlugin"
}
register("cmake-plugin") {
id = "cmake-plugin"
implementationClass = "me.vkryl.plugin.CMakePlugin"
}
}
}
repositories {
google()
mavenCentral()
}
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
when (requested.name) {
"kotlin-stdlib",
"kotlin-stdlib-common",
"kotlin-stdlib-jdk8",
"kotlin-reflect",
"kotlin-compiler-embeddable",
"kotlin-scripting-compiler-embeddable",
"kotlin-sam-with-receiver" -> {
this.useVersion(kotlinVersion)
}
else -> if (requested.version != kotlinVersion) {
throw RuntimeException("Incompatible package: ${requested.group}:${requested.name}:${requested.version}, ${target.group}:${target.name}:${target.version}")
}
}
}
}
}
dependencies {
compileOnly(gradleApi())
implementation("com.android.tools.build:gradle:8.0.2")
implementation("com.google.gms:google-services:4.3.15")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
implementation("com.squareup.okhttp3:okhttp:4.9.3")
implementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
implementation("com.beust:klaxon:5.6")
}