-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsettings.gradle.kts
53 lines (47 loc) · 1.52 KB
/
settings.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
import dev.kikugie.stonecutter.data.tree.TreeBuilder
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
maven("https://plugins.gradle.org/m2/")
maven("https://maven.parchmentmc.org")
maven("https://maven.fabricmc.net/")
maven("https://repo.spongepowered.org/repository/maven-public/")
maven("https://maven.neoforged.net/releases")
maven("https://maven.architectury.dev")
maven("https://maven.minecraftforge.net")
maven("https://maven.kikugie.dev/snapshots")
}
val kotlinVersion: String by settings
plugins {
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
}
}
plugins {
id("dev.kikugie.stonecutter") version "0.6-alpha.1"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
stonecutter {
kotlinController = true
centralScript = "build.gradle.kts"
shared {
fun mc(version: String, vararg loaders: String) {
for (it in loaders) vers("$version-$it", version)
}
mc("1.20.1", "fabric", "forge")
}
create(rootProject)
}
val modName: String by settings
rootProject.name = modName
includeBuild("docs") {
dependencySubstitution {
substitute(module("ru.hollowhorizon:hollowengine-docs-jvm")).using(project(":"))
}
}
//includeBuild("compiler-plugin") {
// dependencySubstitution {
// substitute(module("ru.hollowhorizon:HollowEnginePlugin")).using(project(":"))
// }
//}