]> git.lizzy.rs Git - LightOverlay.git/blob - fabric/build.gradle
2.8.0 Cubic Chunk calculation, using glList during caching
[LightOverlay.git] / fabric / build.gradle
1 plugins {
2     id "com.github.johnrengelman.shadow" version "5.0.0"
3 }
4
5 minecraft {
6     accessWidener = file("src/main/resources/lightoverlay.accesswidener")
7 }
8
9 architectury {
10     transformerVersion = "2.0.9999"
11     platformSetupLoomIde()
12     fabric()
13 }
14
15 processResources {
16     filesMatching("fabric.mod.json") {
17         expand "version": project.version
18     }
19     inputs.property "version", project.version
20 }
21
22 configurations {
23     shadow
24 }
25
26 repositories {
27     mavenLocal()
28 }
29
30 dependencies {
31     minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
32     mappings minecraft.officialMojangMappings()
33     modCompile "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
34
35     modCompile "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
36     modImplementation("me.shedaniel.cloth:cloth-config-fabric:${rootProject.cloth_config_version}") {
37         exclude(group: "net.fabricmc.fabric-api")
38     }
39     modImplementation("io.github.prospector:modmenu:${rootProject.modmenu_version}") {
40         transitive = false
41     }
42     modCompile("me.shedaniel:architectury:${rootProject.architectury_version}:fabric")
43
44     implementation(project(path: ":common")) {
45         transitive = false
46     }
47     developmentFabric(project(path: ":common")) {
48         transitive = false
49     }
50     shadow(project(path: ":common", configuration: "transformProductionFabric")) {
51         transitive = false
52     }
53 }
54
55 shadowJar {
56     relocate "me.shedaniel.lightoverlay.common", "me.shedaniel.lightoverlay.common.fabric"
57
58     configurations = [project.configurations.shadow]
59     classifier "shadow"
60 }
61
62 remapJar {
63     dependsOn(shadowJar)
64     input.set(shadowJar.archivePath)
65     archiveClassifier = "fabric"
66 }