diff --git a/build.gradle.kts b/build.gradle.kts index 66b4f4e6..11278fed 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,21 @@ +/* + * Numismatics + * Copyright (c) 2024 The Railways Team + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import net.fabricmc.loom.api.LoomGradleExtensionAPI import net.fabricmc.loom.task.RemapJarTask diff --git a/common/build.gradle.kts b/common/build.gradle.kts index 71bf72f1..e23eb5b4 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -1,3 +1,21 @@ +/* + * Numismatics + * Copyright (c) 2024 The Railways Team + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + architectury { common { for(p in rootProject.subprojects) { diff --git a/settings.gradle.kts b/settings.gradle.kts index 63f56de5..5d786410 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,13 +1,52 @@ +/* + * Numismatics + * Copyright (c) 2024 The Railways Team + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +import dev.kikugie.stonecutter.StonecutterSettings + pluginManagement { repositories { maven("https://maven.fabricmc.net/") maven("https://maven.architectury.dev/") maven("https://maven.minecraftforge.net/") maven("https://maven.quiltmc.org/repository/release") + //maven("https://maven.kikugie.dev/releases") + maven("https://maven.kikugie.dev/snapshots") gradlePluginPortal() } } +plugins { + id("dev.kikugie.stonecutter") version "0.4-beta.3" // https://github.com/kikugie/stonecutter-kt +} + +extensions.configure { + kotlinController = true + centralScript = "build.gradle.kts" + + shared { + //fixme don't hardcode mc ver + vers("fabric", "1.20.1") + vers("forge", "1.20.1") + } + + create(rootProject) +} + include("common") include("fabric") include("forge") diff --git a/stonecutter.gradle.kts b/stonecutter.gradle.kts new file mode 100644 index 00000000..2c033e58 --- /dev/null +++ b/stonecutter.gradle.kts @@ -0,0 +1,34 @@ +/* + * Numismatics + * Copyright (c) 2024 The Railways Team + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +plugins { + id("dev.kikugie.stonecutter") + id("dev.architectury.loom") version "1.6.+" apply false + id("me.modmuss50.mod-publish-plugin") version "0.3.4" apply false // https://github.com/modmuss50/mod-publish-plugin +} +stonecutter active "fabric" /* [SC] DO NOT EDIT */ + +stonecutter registerChiseled tasks.register("chiseledBuild", stonecutter.chiseled) { + group = "project" + ofTask("build") +} + +stonecutter registerChiseled tasks.register("chiseledPublishMods", stonecutter.chiseled) { + group = "project" + ofTask("publishMods") +} \ No newline at end of file