forked from open-ani/animeko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
80 lines (72 loc) · 2.45 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* Ani
* Copyright (C) 2022-2024 Him188
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
plugins {
kotlin("multiplatform") apply false
kotlin("android") apply false
kotlin("jvm") apply false
kotlin("plugin.serialization") version libs.versions.kotlin apply false
kotlin("plugin.compose") apply false
id("org.jetbrains.kotlinx.atomicfu") apply false
id("org.jetbrains.compose") apply false
id("com.android.library") apply false
id("com.android.application") apply false
id("com.google.devtools.ksp") version libs.versions.ksp apply false
id("androidx.room") version libs.versions.room apply false
id("com.strumenta.antlr-kotlin") version libs.versions.antlr.kotlin apply false
idea
}
allprojects {
group = "me.him188.ani"
version = properties["version.name"].toString()
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://androidx.dev/storage/compose-compiler/repository/")
google()
}
}
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}
subprojects {
afterEvaluate {
kotlin.runCatching { configureKotlinOptIns() }
configureKotlinTestSettings()
configureEncoding()
configureJvmTarget()
// kotlin.runCatching {
// extensions.findByType(ComposeExtension::class)?.apply {
// this.kotlinCompilerPlugin.set(libs.versions.compose.multiplatform.compiler.get())
// }
// }
}
}
idea {
module {
excludeDirs.add(file(".kotlin"))
}
}