We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4b4279 commit 7bec1d1Copy full SHA for 7bec1d1
build.gradle.kts
@@ -1,5 +1,6 @@
1
+import com.possible_triangle.gradle.ModExtension
2
+
3
val mod_id: String by extra
-val mod_version: String by extra
4
val mc_version: String by extra
5
val registrate_version: String by extra
6
val create_version: String by extra
@@ -21,8 +22,9 @@ neoforge {
21
22
dataGen()
23
}
24
25
+val modVersion = the<ModExtension>().version
26
configure<BasePluginExtension> {
- archivesName.set("$mod_id-neoforge-${mod_version}")
27
+ archivesName = modVersion.map { "$mod_id-forge-$it" }
28
29
30
repositories {
0 commit comments