aboutsummaryrefslogtreecommitdiff
path: root/spark-forge/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'spark-forge/build.gradle')
-rw-r--r--spark-forge/build.gradle44
1 files changed, 24 insertions, 20 deletions
diff --git a/spark-forge/build.gradle b/spark-forge/build.gradle
index 6ab62da..a939d6c 100644
--- a/spark-forge/build.gradle
+++ b/spark-forge/build.gradle
@@ -1,17 +1,22 @@
plugins {
id 'com.gradleup.shadow' version '8.3.0'
- id 'net.minecraftforge.gradle' version '[6.0.24,6.2)'
+ id "xyz.wagyourtail.unimined" version "1.2.14"
}
tasks.withType(JavaCompile) {
- // override, compile targeting J21
- options.release = 21
+ // override, compile targeting J8
+ options.release = 8
}
-minecraft {
- mappings channel: 'official', version: '1.21.4'
- accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
- reobf = false
+unimined.minecraft {
+ version "1.8.9"
+ mappings {
+ searge()
+ mcp "stable", "22-1.8.9"
+ }
+ minecraftForge {
+ loader "11.15.1.2318-1.8.9"
+ }
}
configurations {
@@ -20,26 +25,19 @@ configurations {
}
dependencies {
- minecraft 'net.minecraftforge:forge:1.21.4-54.0.6'
shade project(':spark-common')
}
processResources {
- from(sourceSets.main.resources.srcDirs) {
- include 'META-INF/mods.toml'
- expand (
- 'pluginVersion': project.pluginVersion,
- 'pluginDescription': project.pluginDescription
- )
- }
-
- from(sourceSets.main.resources.srcDirs) {
- exclude 'META-INF/mods.toml'
+ inputs.property 'pluginVersion', project.pluginVersion
+ inputs.property 'pluginDescription', project.pluginDescription
+ filesMatching("mcmod.info") {
+ expand(inputs.properties)
}
}
shadowJar {
- archiveFileName = "spark-${project.pluginVersion}-forge.jar"
+ archiveFileName = "spark-${project.pluginVersion}-legacy-forge-1.8.9-dev.jar"
configurations = [project.configurations.shade]
relocate 'net.kyori.adventure', 'me.lucko.spark.lib.adventure'
@@ -55,7 +53,13 @@ shadowJar {
project.applyExcludes(delegate)
}
+remapJar {
+ inputFile = tasks.shadowJar.archiveFile
+ dependsOn tasks.shadowJar
+ archiveFileName = "spark-${project.pluginVersion}-legacy-forge-1.8.9.jar"
+}
+
artifacts {
- archives shadowJar
+ archives remapJar
shadow shadowJar
}