diff options
author | nea <romangraef@gmail.com> | 2022-09-21 18:47:11 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-09-21 18:47:11 +0200 |
commit | dcf9b35ca749e10ea56c80bf6da63ba74b69ba55 (patch) | |
tree | 562b2976bfed58227f1732d558cb9f9af2ccfd4f /build.gradle | |
parent | f48d5823a88107383a94a76954e7ae867735083e (diff) | |
download | PerspectiveModv4-dcf9b35ca749e10ea56c80bf6da63ba74b69ba55.tar.gz PerspectiveModv4-dcf9b35ca749e10ea56c80bf6da63ba74b69ba55.tar.bz2 PerspectiveModv4-dcf9b35ca749e10ea56c80bf6da63ba74b69ba55.zip |
Arch Loom
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 65 |
1 files changed, 30 insertions, 35 deletions
diff --git a/build.gradle b/build.gradle index 189bde6..e4866a7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,25 +1,13 @@ -buildscript { - repositories { - mavenCentral() - gradlePluginPortal() - maven { - name = "forge" - url = "https://maven.minecraftforge.net/" - } - maven { - name = "jitpack" - url = "https://jitpack.io/" - } - } - dependencies { - classpath "com.github.asbyth:ForgeGradle:b13624b272" - classpath "com.github.jengelman.gradle.plugins:shadow:6.1.0" - } +import dev.architectury.pack200.java.Pack200Adapter + +plugins { + id 'idea' + id 'java' + id 'gg.essential.loom' version '0.10.0.+' + id 'dev.architectury.architectury-pack200' version '0.1.3' + id 'com.github.johnrengelman.shadow' version '7.1.2' } -apply plugin: "net.minecraftforge.gradle.forge" -apply plugin: "com.github.johnrengelman.shadow" - group= "me.djtheredstoner" sourceCompatibility = JavaVersion.VERSION_1_8 @@ -32,11 +20,16 @@ sourceSets { } } -minecraft { - version = "1.8.9-11.15.1.2318-1.8.9" - runDir = "run" - mappings = "stable_22" - clientJvmArgs += "-Dfml.coreMods.load=me.djtheredstoner.perspectivemod.forge.PerspectiveModTweaker" +loom { + launchConfigs { + client { + property("fml.coreMods.load", "me.djtheredstoner.perspectivemod.forge.PerspectiveModTweaker") + arg("--tweakClass", "gg.essential.loader.stage0.EssentialSetupTweaker") + } + } + forge { + pack200Provider = new Pack200Adapter() + } } configurations { @@ -52,9 +45,14 @@ repositories { } dependencies { - embed "gg.essential:loader-launchwrapper:1.1.0" + minecraft 'com.mojang:minecraft:1.8.9' + mappings 'de.oceanlabs.mcp:mcp_stable:22-1.8.9' + forge 'net.minecraftforge:forge:1.8.9-11.15.1.2318-1.8.9' + + + embed "gg.essential:loader-launchwrapper:1.1.3" - implementation "gg.essential:Essential:1193-10809-SNAPSHOT" + implementation "gg.essential:essential-1.8.9-forge:4804+g97db1f45b" } jar { @@ -77,26 +75,23 @@ shadowJar { ) } -reobfJar.dependsOn tasks.shadowJar - -reobf { - shadowJar { - mappingType = 'SEARGE' - } +remapJar { + from shadowJar + input = shadowJar.archiveFile } processResources { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE // this will ensure that this task is redone when the versions change. inputs.property "version", project.version - inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' // replace version and mcversion - expand 'version':project.version, 'mcversion':project.minecraft.version + expand 'version':project.version } // copy everything else, thats not the mcmod.info |