summaryrefslogtreecommitdiffstats
path: root/forge
diff options
context:
space:
mode:
Diffstat (limited to 'forge')
-rw-r--r--forge/build.gradle12
1 files changed, 9 insertions, 3 deletions
diff --git a/forge/build.gradle b/forge/build.gradle
index 3bdaf35..634da6d 100644
--- a/forge/build.gradle
+++ b/forge/build.gradle
@@ -137,9 +137,9 @@ jar {
attributes([
"Specification-Title": "${mod_name}",
"Specification-Vendor": "${mod_author}",
- "Specification-Version": "${version}",
+ "Specification-Version": "${manifest_version}",
"Implementation-Title": "${mod_name}",
- "Implementation-Version": "${version}",
+ "Implementation-Version": "${manifest_version}",
"Implementation-Vendor" :"${mod_author}",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"MixinConfigs": "mixins/common/nochatreports.mixins.json, mixins/forge/nochatreports-forge.mixins.json"
@@ -158,7 +158,7 @@ processResources {
// Replace properties in mods.toml with ones derived from settings.gradle
include 'mods.toml'
expand 'mod_license': mod_license,
- 'mod_version': version,
+ 'mod_version': manifest_version,
'mod_id' : mod_id,
'mod_name': mod_name,
'mod_url': mod_url,
@@ -248,4 +248,10 @@ publishing {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
+}
+
+sourceSets.each {
+ def dir = layout.buildDirectory.dir("sourceSets/$it.name")
+ it.output.resourcesDir = dir
+ it.java.destinationDirectory = dir
} \ No newline at end of file