-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (37 loc) · 1.3 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
import kotlinx.atomicfu.plugin.gradle.AtomicFUPluginExtension
import net.mamoe.weapons.build.WeaponsBuildExtension
plugins {
kotlin("jvm") apply false
kotlin("plugin.serialization") version Versions.kotlin apply false
id("kotlinx-atomicfu") apply false
id("org.jetbrains.compose")
}
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
RootProjectHolder.setRootProject(project)
allprojects {
group = "org.solvo"
version = "1.0.0"
extensions.create("weaponsBuild", WeaponsBuildExtension::class, this)
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/bootstrap")
}
afterEvaluate {
if (this.name == "buildSrc") {
return@afterEvaluate
}
configureJvmToolchain()
configureKotlinTest()
configureCommonOptIns()
extensions.findByType<AtomicFUPluginExtension>()?.apply {
transformJvm = false // bug
}
}
}
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}