This repository was archived by the owner on Feb 14, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
84 lines (73 loc) · 2.37 KB
/
Copy pathbuild.gradle
File metadata and controls
84 lines (73 loc) · 2.37 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
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath 'org.spongepowered:mixingradle:0.7.+'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'eclipse'
version = mod_version
group = "wthitharvestability"
archivesBaseName = "wthitharvestability-mc" + "${minecraft_version}"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
repositories {
maven { url "https://maven2.bai.lol" }
maven { url "https://dvs1.progwml6.com/files/maven" }
}
minecraft {
mappings channel: "official", version: minecraft_version
runs {
client {
workingDirectory project.file('run')
mods {
wthitharvestability {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
mods {
wthitharvestability {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
args '--mod', 'wthitharvestability', '--all', '--output', file("src/generated/resources/"), '--existing', file("src/main/resources/")
mods {
wthitharvestability {
source sourceSets.main
}
}
}
}
}
sourceSets.main.java.srcDirs += 'java'
sourceSets.main.java.srcDirs += 'apis'
sourceSets.main.resources.srcDirs += 'resources'
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
compileOnly fg.deobf("mcp.mobius.waila:wthit-api:forge-${wthit_version}")
runtimeOnly fg.deobf("mcp.mobius.waila:wthit:forge-${wthit_version}")
runtimeOnly fg.deobf("lol.bai:badpackets:forge-${badpackets_version}")
// compileOnly fg.deobf("slimeknights.mantle:Mantle:${mantle_version}")
// compileOnly fg.deobf("slimeknights.tconstruct:TConstruct:${tconstruct_version}")
}
jar {
finalizedBy('reobfJar')
manifest {
attributes([
"Implementation-Version": "${project.version}"
])
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}