-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
112 lines (90 loc) · 2.98 KB
/
build.gradle
File metadata and controls
112 lines (90 loc) · 2.98 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
104
105
106
107
108
109
110
111
112
plugins {
id 'net.fabricmc.fabric-loom' version "${loom_version}"
id 'com.gradleup.shadow' version '9.3.1'
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
}
repositories {
maven { url = 'https://maven.terraformersmc.com/' }
maven {
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
loom {
accessWidenerPath = file("src/main/resources/vivatech.classtweaker")
}
fabricApi {
configureDataGeneration()
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
// ------------------------
// --- MOD DEPENDENCIES ---
// ------------------------
// --------------------------
// --- OTHER DEPENDENCIES ---
// --------------------------
implementation 'org.jgrapht:jgrapht-core:1.5.2'
shadow 'org.jgrapht:jgrapht-core:1.5.2'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
// ---------------------
// --- COMPATIBILITY ---
// ---------------------
// modCompileOnly "mcp.mobius.waila:wthit-api:fabric-$wthit_version"
// modLocalRuntime "mcp.mobius.waila:wthit:fabric-$wthit_version"
// modLocalRuntime "lol.bai:badpackets:fabric-$badpackets_version"
// modCompileOnly "dev.emi:emi-fabric:$emi_version:api"
// modLocalRuntime "dev.emi:emi-fabric:$emi_version"
// modCompileOnly("mezz.jei:jei-$minecraft_version-fabric-api:$jei_version")
// modRuntimeOnly("mezz.jei:jei-$minecraft_version-fabric:$jei_version")
compileOnly "com.terraformersmc:modmenu:$modmenu_version"
localRuntime "com.terraformersmc:modmenu:$modmenu_version"
// -------------------
// --- CONVENIENCE ---
// -------------------
// Comment out / uncomment for testing and convenience
// modLocalRuntime "maven.modrinth:betterf3:11.0.3"
// modLocalRuntime "maven.modrinth:component-viewer:1.3.2+1.21.11-fabric"
// modLocalRuntime "maven.modrinth:tooltip-scroll:1.5.1+1.21.10"
// modLocalRuntime "maven.modrinth:dev-tools-unlocker:1.0.0"
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": inputs.properties.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 25
}
tasks.shadowJar {
dependsOn(jar)
setArchiveClassifier("")
configurations = [project.configurations.shadow]
relocate("org.jgrapht", "falseresync.shadowed.jgrapht")
relocate("org.jheaps", "falseresync.shadowed.jheaps")
minimize()
exclude('.cache/**')
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
}
tasks.assemble {
dependsOn(shadowJar)
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_25
}