-
Notifications
You must be signed in to change notification settings - Fork 36
/
build-fabric.gradle
61 lines (50 loc) · 1.56 KB
/
build-fabric.gradle
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
plugins {
id 'fabric-loom' version '1.8-SNAPSHOT'
}
version = project.modVersion
group = "yalter.mousetweaks"
archivesBaseName = "MouseTweaks-fabric-mc${project.fabricMcVersion}"
java.toolchain.languageVersion = JavaLanguageVersion.of(project.modJavaVersion)
repositories {
maven {
url "https://maven.terraformersmc.com/releases"
}
}
sourceSets {
main {
java {
exclude 'yalter/mousetweaks/forge'
exclude 'yalter/mousetweaks/neoforge'
}
resources {
exclude 'META-INF/mods.toml'
exclude 'META-INF/neoforge.mods.toml'
}
}
}
loom {
mixin.defaultRefmapName = 'mousetweaks.mixins.refmap.json'
}
dependencies {
minecraft "com.mojang:minecraft:${project.fabricMcVersion}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.fabricLoaderVersion}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabricApiVersion}"
modImplementation "com.terraformersmc:modmenu:${project.fabricModMenuVersion}"
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand([
"version": project.modVersion,
"modJavaVersion": project.modJavaVersion,
"fabricMcVersion": project.fabricMcVersion,
"fabricLoaderVersion": project.fabricLoaderVersion,
"modCredits": project.modCredits,
"modDescription": project.modDescription,
])
}
}
java {
withSourcesJar()
}