11plugins {
22 id ' maven-publish'
3- alias libs . plugins . quilt . loom
4- alias libs . plugins . ploceus
3+ id ' fabric- loom' version ' 1.3-SNAPSHOT '
4+ id ' ploceus' version ' 1.3-SNAPSHOT '
55}
66
7- archivesBaseName = project. archives_base_name
8- version = " ${ project.version} +${ libs.versions.minecraft.get()} "
7+ base {
8+ archivesName = project. archives_base_name
9+ }
10+ version = " ${ project.version} +mc${ project.minecraft_version} "
911group = project. maven_group
1012
1113repositories {
@@ -19,21 +21,21 @@ repositories {
1921// All the dependencies are declared at gradle/libs.version.toml and referenced with "libs.<id>"
2022// See https://docs.gradle.org/current/userguide/platforms.html for information on how version catalogs work.
2123dependencies {
22- minecraft libs . minecraft
24+ minecraft " com.mojang: minecraft: ${ project.minecraft_version } "
2325 mappings loom. layered {
24- mappings variantOf(libs . feather. mappings) { classifier ' v2 ' }
25- ploceus. nestedMappings(it ) // remove this line if not using nests
26+ mappings " net.ornithemc: feather: ${ project.minecraft_version } +build. ${ project.feather_build } :v2 "
27+ addLayer ploceus. nestedMappings() // remove this line if not using nests
2628 }
27- nests libs . nests // remove this line if not using nests
29+ nests " net.ornithemc: nests: ${ project.minecraft_version } +build. ${ project.nests_build } " // remove this line if not using nests
2830
29- modImplementation libs . quilt . loader
31+ modImplementation " net.fabricmc:fabric- loader: ${ project.loader_version } "
3032}
3133
3234processResources {
3335 inputs. property ' version' , version
3436
35- filesMatching(' quilt .mod.json' ) {
36- expand " version" : version
37+ filesMatching(' fabric .mod.json' ) {
38+ expand ' version' : version
3739 }
3840}
3941
5961// If you plan to use a different file for the license, don't forget to change the file name here!
6062jar {
6163 from(' LICENSE' ) {
62- rename { " ${ it} _${ archivesBaseName } " }
64+ rename { " ${ it} _${ base.archivesName.get() } " }
6365 }
6466}
6567
0 commit comments