Skip to content

Commit

Permalink
add mixin config to manifest so prod works (#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
screret authored Sep 11, 2024
1 parent b07b0a7 commit da947d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx6G
# Mod Info
mod_id = gtceu
mod_name = GregTech
mod_version = 1.4.2
mod_version = 1.4.1+patch.2
mod_description = GregTech CE Unofficial, ported from 1.12.2
mod_license = LGPL-3.0 license
mod_url = https://github.com/GregTechCEu/GregTech-Modern/
Expand Down
14 changes: 14 additions & 0 deletions gradle/scripts/jars.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,17 @@ tasks.register('sourcesJar', Jar) {
base {
archivesName = "${project.name}-${libs.versions.minecraft.get()}"
}

afterEvaluate {
tasks.withType(org.gradle.jvm.tasks.Jar).configureEach {
manifest.attributes([
'MixinConfigs': 'gtceu.mixins.json',
'Specification-Title': project.name,
'Specification-Version': mod_version,
'Specification-Vendor': 'GregTechCEu Team',
'Implementation-Title': base.archivesName,
'Implementation-Version': version,
'Implementation-Vendor': 'GregTechCEu Team',
])
}
}

0 comments on commit da947d9

Please sign in to comment.