forked from YaLTeR/MouseTweaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-fabric.gradle
54 lines (42 loc) · 1.11 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
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT'
}
def minecraftVersion = "1.20" // Used for output JAR filenames.
version = project.mod_version
group = "yalter.mousetweaks"
archivesBaseName = "MouseTweaks-fabric-mc${minecraftVersion}"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
repositories {
maven {
url "https://maven.terraformersmc.com/releases"
}
}
sourceSets {
main {
java {
exclude 'yalter/mousetweaks/forge'
}
resources {
exclude 'META-INF/mods.toml'
}
}
}
loom {
mixin.defaultRefmapName = 'mousetweaks.mixins.refmap.json'
}
dependencies {
minecraft "com.mojang:minecraft:${minecraftVersion}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:0.14.21"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.83.0+1.20"
modImplementation 'com.terraformersmc:modmenu:7.0.1'
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
java {
withSourcesJar()
}