Skip to content

Commit 8f429dd

Browse files
committed
build: some fixes
1 parent bff837d commit 8f429dd

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ dependencies {
2525
}
2626
}
2727

28-
tasks.processResources {
29-
if (mod.isFabric) expand(
30-
"fabric_loader" to mod.prop("loader_version"), "java_version" to java.toolchain
31-
.languageVersion.toString(), "fabric_api" to mod.prop("fabric_version"),
32-
"flk_version" to "${mod.prop("flk_version")}+kotlin.$kotlinVersion"
33-
) else expand(
34-
"neoforge_version" to mod.prop("loader_version"), "klf_version" to mod.prop("klf_version"),
28+
modSettings {
29+
val replaces = mutableMapOf(
30+
"fabric_loader" to mod.prop("loader_version"), "java_version" to java.toolchain.languageVersion.toString(),
31+
"fabric_api" to mod.prop("fabric_version"),
32+
"flk_version" to "${mod.prop("flk_version")}+kotlin.$kotlinVersion",
33+
"neoforge_version" to mod.prop("loader_version"), "klf_version" to mod.prop("klf_version")
3534
)
35+
variableReplacements.putAll(replaces)
3636
}
3737

3838
fun DependencyHandlerScope.implementMod(dependencyNotation: Any) {

gradlew

100644100755
File mode changed.

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"description": "${description}",
77
"authors": [ "AlgorithmLX" ],
88
"contact": {
9-
"issues": "https://github.com/AlgorithmLX/${mod_name}/issues",
10-
"sources": "https://github.com/AlgorithmLX/${mod_name}/"
9+
"issues": "https://github.com/AlgorithmLX/${name}/issues",
10+
"sources": "https://github.com/AlgorithmLX/${name}/"
1111
},
1212
"icon": "logo.png",
1313
"license": "All-Rights-Reserved",

0 commit comments

Comments
 (0)