-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
50 lines (44 loc) · 2.04 KB
/
Copy pathsettings.gradle.kts
File metadata and controls
50 lines (44 loc) · 2.04 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
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven("https://maven.fabricmc.net/") { name = "FabricMC" }
maven("https://maven.neoforged.net/releases/") { name = "NeoForged" }
maven("https://maven.kikugie.dev/releases") { name = "KikuGie Releases" }
maven("https://maven.kikugie.dev/snapshots") { name = "KikuGie Snapshots" }
}
}
plugins {
// Check the latest version on https://stonecutter.kikugie.dev/blog/changes/0.9
id("dev.kikugie.stonecutter") version "0.9.6"
// Used for cross-compat for 26.1+ and older versions (https://codeberg.org/KikuGie/loom-back-compat)
id("dev.kikugie.loom-back-compat") version "0.3"
// Sometimes it is needed to make Gradle run at all, so it doesn't hurt to have
// (https://github.com/gradle/foojay-toolchains)
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}
stonecutter {
create(rootProject) {
/**
* Creates version nodes for multiple loaders.
*
* This function will create subprojects named `versions/{project}-{loader}`.
* Each project has a logical [version], which should match the Minecraft version,
* whereas [project] is the arbitrary name part of the folder.
*
* Each project will also have a separate build script assigned depending on the loader,
* named `build.{loader}.gradle.kts`.
*/
fun match(project: String, vararg loaders: String, version: String = project) {
for (loader in loaders) version("$project-$loader", version).buildscript("build.$loader.gradle.kts")
}
// See https://stonecutter.kikugie.dev/wiki/start/#choosing-minecraft-versions
match("1.21.1", "fabric", "neoforge")
match("1.21.11", "fabric", "neoforge")
match("26.2.x", "fabric", "neoforge", version = "26.2")
match("26.3.x", "fabric", "neoforge", version = "26.3")
vcsVersion = "26.3.x-fabric"
}
}
rootProject.name = "bookshelf-inspector"