]> git.lizzy.rs Git - LightOverlay.git/blob - forge/build.gradle
Support 1.17 Forge
[LightOverlay.git] / forge / build.gradle
1 plugins {
2     id "com.github.johnrengelman.shadow" version "7.0.0"
3 }
4
5 configurations {
6     shadow
7 }
8
9 architectury {
10     platformSetupLoomIde()
11     forge()
12 }
13
14 processResources {
15     filesMatching("META-INF/mods.toml") {
16         expand "version": project.version
17     }
18     inputs.property "META-INF/mods.toml", project.version
19 }
20
21 dependencies {
22     minecraft("com.mojang:minecraft:${rootProject.architectury.minecraft}")
23     mappings(minecraft.officialMojangMappings())
24     forge("net.minecraftforge:forge:${rootProject.architectury.minecraft}-${project.forge_version}")
25     modImplementation("me.shedaniel.cloth:cloth-config-forge:${rootProject.cloth_config_version}")
26     modImplementation("dev.architectury:architectury-forge:${rootProject.architectury_version}")
27
28     implementation(project(path: ":common")) {
29         transitive = false
30     }
31     developmentForge(project(path: ":common")) {
32         transitive = false
33     }
34     shadow(project(path: ":common", configuration: "transformProductionForge")) {
35         transitive = false
36     }
37 }
38
39 shadowJar {
40     relocate "me.shedaniel.lightoverlay.common", "me.shedaniel.lightoverlay.common.forge"
41     exclude "fabric.mod.json"
42
43     configurations = [project.configurations.shadow]
44     classifier "shadow"
45 }
46
47 remapJar {
48     dependsOn(shadowJar)
49     input.set(shadowJar.archivePath)
50     archiveClassifier = "forge"
51 }