-
Notifications
You must be signed in to change notification settings - Fork 458
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
91 lines (82 loc) · 2.91 KB
/
build.gradle.kts
File metadata and controls
91 lines (82 loc) · 2.91 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
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
81
82
83
84
85
86
87
88
89
90
91
/*
* Copyright (C) 2024-2026 OpenAni and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link.
*
* https://github.com/open-ani/ani/blob/main/LICENSE
*/
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.android.kotlin.multiplatform.library) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlinx.atomicfu) apply false
alias(libs.plugins.jetbrains.compose) apply false
alias(libs.plugins.kotlin.native.cocoapods) apply false
alias(libs.plugins.kotlin.plugin.compose) apply false
alias(libs.plugins.kotlin.plugin.serialization) apply false
alias(libs.plugins.google.gms.google.services) apply false
alias(libs.plugins.androidx.room) apply false
alias(libs.plugins.antlr.kotlin) apply false
alias(libs.plugins.mannodermaus.android.junit5) apply false
alias(libs.plugins.sentry.kotlin.multiplatform) apply false
alias(libs.plugins.undercouch.download) apply false
alias(libs.plugins.compose.stability.analyzer) apply false
idea
}
allprojects {
group = "me.him188.ani"
version = properties["version.name"].toString()
repositories {
mavenCentral()
google()
mavenLocal()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://androidx.dev/storage/compose-compiler/repository/")
maven("https://jogamp.org/deployment/maven")
}
}
subprojects {
afterEvaluate {
configureKotlinOptIns()
configureKotlinTestSettings()
configureEncoding()
configureJvmTarget()
configureComposePreviewToolingDependency()
// kotlin.runCatching {
// extensions.findByType(ComposeExtension::class)?.apply {
// this.kotlinCompilerPlugin.set(libs.versions.compose.multiplatform.compiler.get())
// }
// }
}
}
idea {
module {
excludeDirs.add(file(".kotlin"))
}
}
// Note: this task does not support configuration cache
tasks.register("downloadAllDependencies") {
notCompatibleWithConfigurationCache("Filters configurations at execution time")
description = "Resolves every resolvable configuration in every project"
group = "help"
doLast {
rootProject.allprojects.forEach { p ->
p.configurations
.filter { it.isCanBeResolved }
.forEach {
runCatching { it.resolve() }
}
}
}
}