11plugins {
2- id( " fabric- loom" ) version " 1.14-SNAPSHOT "
2+ alias(libs.plugins. fabric. loom)
33 id(" maven-publish" )
44}
55
66base {
77 archivesName = properties[" archives_name" ] as String
8- version = properties[ " mod_version " ] as String
8+ version = libs.versions.mod.version.get()
99 group = properties[" maven_group" ] as String
1010}
1111
@@ -45,8 +45,8 @@ repositories {
4545 // Where Is It, JackFredLib
4646 maven {
4747 url = uri(" https://maven.jackf.red/releases/" )
48- // Meteor Client
4948 }
49+ // Meteor Client
5050 maven {
5151 name = " meteor-maven"
5252 url = uri(" https://maven.meteordev.org/releases" )
@@ -61,28 +61,28 @@ repositories {
6161
6262dependencies {
6363 // Fabric
64- minecraft(" com.mojang: minecraft: ${properties[ " minecraft_version " ] as String } " )
65- mappings(" net.fabricmc: yarn: ${properties[ " yarn_mappings " ] as String } :v2 " )
66- modImplementation(" net.fabricmc: fabric- loader: ${properties[ " loader_version " ] as String } " )
64+ minecraft(libs. minecraft)
65+ mappings(variantOf(libs. yarn) { classifier( " v2 " ) } )
66+ modImplementation(libs. fabric. loader)
6767
6868 // Fabric API
69- modImplementation(" net.fabricmc. fabric- api:fabric-api: ${properties[ " fabric_version " ] as String } " )
69+ modImplementation(libs. fabric. api)
7070
7171 // Mixin extras
7272 annotationProcessor(" io.github.llamalad7:mixinextras-fabric:0.5.0" )
7373
7474 // Meteor Client
7575 modImplementation(files(" libs\\ baritone-unoptimized-fabric-1.15.0-2-gf7a53504.jar" ))
76- modImplementation(" meteordevelopment: meteor- client: ${properties[ " minecraft_version " ] as String } -SNAPSHOT " )
77- implementation(" org.meteordev: starscript:0.2.5 " )
78- implementation(" meteordevelopment:orbit:0.2.4 " )
76+ modImplementation(libs. meteor. client)
77+ implementation(libs. starscript)
78+ implementation(libs.orbit )
7979
8080 // Xaero's Mods
81- modCompileOnly(" maven.modrinth:xaeros-world-map: ${properties[ " xwm_fabric_version " ] as String } " ) // Xaero's World Map
82- modCompileOnly(" maven.modrinth:xaeros-minimap: ${properties[ " xmm_fabric_version " ] as String } " ) // Xaero's Minimap
81+ modCompileOnly(libs.xwm ) // Xaero's World Map
82+ modCompileOnly(libs.xmm ) // Xaero's Minimap
8383
8484 // Chest Tracker
85- modImplementation(" red.jackf: whereisit: ${properties[ " where_is_it_version " ] as String } " )
85+ modImplementation(libs. whereisit)
8686}
8787
8888loom {
@@ -93,7 +93,7 @@ tasks {
9393 processResources {
9494 val propertyMap = mapOf (
9595 " version" to project.version,
96- " mc_version" to project.property( " minecraft_version " ),
96+ " mc_version" to libs.versions.minecraft.get( ),
9797 " gh_hash" to (System .getenv(" GITHUB_SHA" ) ? : " " ),
9898 )
9999
0 commit comments