-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
103 lines (80 loc) · 2.64 KB
/
Copy pathbuild.gradle
File metadata and controls
103 lines (80 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id("java")
id("checkstyle")
id("fabric-loom") version "1.2-SNAPSHOT"
}
java.sourceCompatibility = JavaVersion.VERSION_17
project.version = project.mod_version
project.group = project.maven_group
loom {
accessWidenerPath = file("src/main/resources/deviousmod.accesswidener")
}
repositories {
mavenCentral()
maven {
name = "OpenCollab"
url = "https://repo.opencollab.dev/maven-snapshots/"
}
maven {
name = "Allink Maven"
url = "https://maven.allink.esixtwo.one/snapshots/"
}
maven {
name = "Jitpack"
url = "https://jitpack.io/"
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
configurations {
implementation.extendsFrom require
api.extendsFrom require
}
dependencies {
minecraft("com.mojang:minecraft:${project.minecraft_version}")
mappings("net.fabricmc:yarn:${project.yarn_mappings}:v2")
modImplementation("net.fabricmc:fabric-loader:${project.loader_version}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")
require("com.github.allinkdev:Reflector:${project.reflector_version}")
require("io.github.spair:imgui-java-binding:${project.imgui_version}")
require("io.github.spair:imgui-java-lwjgl3:${project.imgui_version}") {
exclude module: 'lwjgl'
exclude module: 'lwjgl-glfw'
exclude module: 'lwjgl-opengl'
}
require("io.github.spair:imgui-java-natives-linux:${project.imgui_version}")
require("io.github.spair:imgui-java-natives-windows:${project.imgui_version}")
require("io.github.spair:imgui-java-natives-macos:${project.imgui_version}")
require(project(":deviousmod-api"))
modImplementation include("net.kyori:adventure-platform-fabric:${project.adventure_platform_version}")
modImplementation "maven.modrinth:sodium:mc${project.sodium_version}"
include(implementation(annotationProcessor("com.github.llamalad7.mixinextras:mixinextras-fabric:${project.mixin_extra_version}")))
}
tasks {
assemble {
dependsOn(checkstyleMain)
}
compileJava {
options.release.set(17)
}
processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand(project.properties)
}
}
jar {
dependsOn configurations.require
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.require.collect {
zipTree(it)
}
}
from("LICENSE") {
rename { "LICENSE_${archiveBaseName.get()}" }
}
}
}