aboutsummaryrefslogtreecommitdiff
path: root/settings.gradle.kts
blob: fed4fd6fadfe8d8b0e3d30672764552bf0643931 (plain)
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
import dev.kikugie.stonecutter.gradle.StonecutterSettings

pluginManagement {
    repositories {
        mavenCentral()
        gradlePluginPortal()
        maven("https://maven.fabricmc.net/")
        maven("https://maven.architectury.dev")
        maven("https://maven.neoforged.net/releases/")
        maven("https://maven.minecraftforge.net/")
        maven("https://maven.kikugie.dev/releases")
    }
}

plugins {
    id("dev.kikugie.stonecutter") version "0.3.2"
}

extensions.configure<StonecutterSettings> {
    kotlinController(true)
    centralScript("build.gradle.kts")
    shared {
        fun mc(mcVersion: String, name: String = mcVersion, common: Boolean = true, loaders: Iterable<String>) {
            for (loader in loaders) {
                vers("$name-$loader", mcVersion)
            }
            if (common) {
                vers("$name-common", mcVersion)
            }
        }

        mc("1.20.4", loaders = listOf("fabric", "neoforge"))
        mc("1.20.1", loaders = listOf("fabric", "forge"))
        mc("1.20.5-beta.1", name = "1.20.5-pre1", loaders = listOf("fabric"))
    }
    create(rootProject)
}
rootProject.name = "YetAnotherConfigLib"