-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
77 lines (61 loc) · 1.65 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
65
66
67
68
69
70
71
72
73
74
75
76
plugins {
id 'maven-publish'
id 'java'
}
apply plugin: 'maven-publish'
version = "all-${mod_version}"
group = 'me.fengming.vaultpatcher'
println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"
jar {
baseName 'vaultpatcher'
manifest {
attributes([
"TweakClass": "me.fengming.vaultpatcher_asm.loader.launchwrapper.VPLaunchTweaker",
"TweakOrder": 209
])
}
from(configurations.runtimeClasspath.filter {
(it.name == 'Fabric-ASM-2.3.jar')
}) {
into 'META-INF/jars'
}
filesMatching("fabric.mod.json") {
expand "version": mod_version
}
exclude "cpw"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
disableAutoTargetJvm()
}
tasks.compileJava {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven {
url "https://maven.fabricmc.net/"
}
maven {
url "https://maven.minecraftforge.net/"
}
maven {
url "https://libraries.minecraft.net/"
}
maven {
url 'https://jitpack.io/'
}
}
dependencies {
compileOnly 'org.jetbrains:annotations:23.0.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'it.unimi.dsi:fastutil:7.0.10'
implementation 'net.fabricmc:fabric-loader:0.14.12'
implementation 'cpw.mods:modlauncher:8.1.3'
implementation 'net.minecraft:launchwrapper:1.12'
implementation 'com.github.Chocohead:Fabric-ASM:2.3'
}