-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
49 lines (47 loc) · 1.62 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
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
val kotlinVersion = "1.8.0"
val agpVersion = "7.3.0"
val composeVersion = "1.3.0"
kotlin("jvm").version(kotlinVersion) apply false
kotlin("multiplatform").version(kotlinVersion) apply false
kotlin("android").version(kotlinVersion) apply false
kotlin("plugin.serialization").version(kotlinVersion) apply false
// id("com.android.base").version(agpVersion) apply false
id("com.android.application").version(agpVersion) apply false
id("com.android.library").version(agpVersion) apply false
id("org.jetbrains.compose").version(composeVersion) apply false
}
val projectCompileSdk by ext(33)
val projectTargetSdk by ext(33)
allprojects {
group = "ir.amirab.debugboard"
version = "0.3.3"
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
mavenLocal()
}
}
subprojects {
afterEvaluate {
if (this.plugins.hasPlugin("com.android.library")) {
fun Project.android(configure: Action<com.android.build.gradle.LibraryExtension>): Unit =
(this as ExtensionAware).extensions.configure("android", configure)
android {
compileSdk = projectCompileSdk
}
}
}
tasks{
withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
}
}