forked from CottonMC/Templates
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
executable file
·64 lines (54 loc) · 1.25 KB
/
build.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
62
63
64
buildscript {
repositories {
maven {
name = "Fabric"
url = "https://maven.fabricmc.net/"
content {
includeGroup "net.fabricmc"
includeGroup "fabric-loom"
}
}
mavenCentral()
}
dependencies {
classpath "fabric-loom:fabric-loom.gradle.plugin:1.1.14"
}
}
apply plugin: "fabric-loom"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.withSourcesJar()
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = 17
}
repositories {
mavenCentral()
maven {
url = "https://maven.terraformersmc.com/releases/"
content {
includeGroup "com.terraformersmc"
}
}
}
dependencies {
minecraft "com.mojang:minecraft:1.20.1"
mappings "net.fabricmc:yarn:1.20.1+build.2"
modApi "net.fabricmc:fabric-loader:0.14.21"
modApi "net.fabricmc.fabric-api:fabric-api:0.83.1+1.20.1"
implementation "com.google.code.findbugs:jsr305:3.0.2"
//modRuntimeOnly "com.terraformersmc:modmenu:7.2.1" //REMAP FAILURES?????
}
loom {
mixin {
defaultRefmapName = "templates.refmap.json" //see templates.mixins.json. I just like to always specify the name
}
}
processResources {
inputs.property "version", project.version
filesMatching("**/fabric.mod.json") {
expand "version": project.version
}
}
jar {
from "LICENSE"
}