-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
65 lines (57 loc) · 2.13 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
/*
* Copyright (C) 2024 OpenAni and contributors.
*
* Use of this source code is governed by the GNU GENERAL PUBLIC LICENSE version 3 license, which can be found at the following link.
*
* https://github.com/open-ani/mediamp/blob/main/LICENSE
*/
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId) apply false
id(libs.plugins.kotlin.android.get().pluginId) apply false
id(libs.plugins.kotlin.jvm.get().pluginId) apply false
alias(libs.plugins.kotlin.plugin.serialization) apply false
id(libs.plugins.kotlin.plugin.compose.get().pluginId) apply false
// id("org.jetbrains.kotlinx.atomicfu") version libs.versions.atomicfu apply false
// alias(libs.plugins.kotlinx.atomicfu) apply false
id(libs.plugins.compose.get().pluginId) apply false
id(libs.plugins.android.library.get().pluginId) apply false
id(libs.plugins.android.application.get().pluginId) apply false
id(libs.plugins.vanniktech.mavenPublish.get().pluginId) apply false
idea
}
allprojects {
group = "org.openani.mediamp"
version = properties["version.name"].toString()
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://androidx.dev/storage/compose-compiler/repository/")
}
afterEvaluate {
(runCatching { kotlinExtension }.getOrNull() as? KotlinMultiplatformExtension)?.apply {
compilerOptions {
optIn.add("kotlin.ExperimentalSubclassOptIn") // Workaround for IDE bug. This is already stable in Kotlin 2.1.0
}
}
}
}
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}
idea {
module {
excludeDirs.add(file(".kotlin"))
}
}