@@ -24,12 +24,12 @@ repositories {
2424 name = ' Babric'
2525 url = ' https://maven.glass-launcher.net/babric'
2626 }
27- maven {
28- url = " https://api.modrinth.com/maven"
29- }
30- maven {
31- url ' https://btw-community.github.io/btw-mvn/'
32- }
27+ maven {
28+ url = " https://api.modrinth.com/maven"
29+ }
30+ maven {
31+ url ' https://btw-community.github.io/btw-mvn/'
32+ }
3333 mavenCentral() // For fastutil
3434}
3535
@@ -65,9 +65,7 @@ dependencies {
6565 // This is what MC 1.6 uses
6666 implementation ' com.google.code.gson:gson:2.2.2'
6767
68- implementation group : ' it.unimi.dsi' , name : ' fastutil' , version : ' 8.5.12'
69-
70- implementation ' com.typesafe:config:1.4.5'
68+ implementation ' com.typesafe:config:1.4.5'
7169}
7270
7371configurations. all {
@@ -85,9 +83,16 @@ configurations.all {
8583}
8684
8785processResources {
88- inputs. property " version" , project. version
86+ def expandedInfo = [
87+ " version" : project. version,
88+ " name" : project. name,
89+ " btw_version" : btw_version,
90+ " minecraft_version" : minecraft_version,
91+ " mod_id" : mod_id
92+ ]
93+ inputs. properties expandedInfo
8994 filesMatching(" fabric.mod.json" ) {
90- expand " version " : project . version
95+ expand expandedInfo
9196 }
9297}
9398
@@ -113,25 +118,25 @@ loom {
113118}
114119
115120tasks. register(' copyBtwJar' , Copy ) {
116- def depInter = dependencies. create(" maven.modrinth:btwce:${ project.btw_version} :intermediary" )
117- def depDoc = dependencies. create(" maven.modrinth:btwce:${ project.btw_version} :javadoc" )
118- def depMappings = dependencies. create(" btw.community:mappings:1.0.3" )
119-
120- def config = configurations. detachedConfiguration(depInter, depDoc, depMappings)
121- config. transitive = false
122-
123- from config
124- into file(" build_BTW/tmp/BTW_dev" )
125-
126- rename { String fileName ->
127- if (fileName. contains(" javadoc" )) {
128- return " BTW-CE-Intermediary-javadoc.jar"
129- }
130- if (fileName. contains(" mappings" )) {
131- return " BTW-CE-mappings.jar"
132- }
133- return " BTW-CE-Intermediary.jar"
134- }
121+ def depInter = dependencies. create(" maven.modrinth:btwce:${ project.btw_version} :intermediary" )
122+ def depDoc = dependencies. create(" maven.modrinth:btwce:${ project.btw_version} :javadoc" )
123+ def depMappings = dependencies. create(" btw.community:mappings:1.0.3" )
124+
125+ def config = configurations. detachedConfiguration(depInter, depDoc, depMappings)
126+ config. transitive = false
127+
128+ from config
129+ into file(" build_BTW/tmp/BTW_dev" )
130+
131+ rename { String fileName ->
132+ if (fileName. contains(" javadoc" )) {
133+ return " BTW-CE-Intermediary-javadoc.jar"
134+ }
135+ if (fileName. contains(" mappings" )) {
136+ return " BTW-CE-mappings.jar"
137+ }
138+ return " BTW-CE-Intermediary.jar"
139+ }
135140}
136141
137142class BTWJarReplacer implements MinecraftJarProcessor<Spec > {
0 commit comments