-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (74 loc) · 2.18 KB
/
Copy pathbuild.gradle
File metadata and controls
93 lines (74 loc) · 2.18 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
85
86
87
88
89
90
91
92
93
plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
}
version = '1.0.0'
group = 'com.deaddiesel'
base {
archivesName = "guide"
}
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
minecraft {
mappings channel: 'official', version: '1.20.1'
copyIdeResources = true
ext.inferModulePath = false
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
args '--ignoreModulePath'
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'--add-opens', 'java.base/java.util=ALL-UNNAMED'
mods {
main {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run-server')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
args '--nogui'
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
mods {
main {
source sourceSets.main
}
}
}
}
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories {
mavenCentral()
maven {
name = "BlameJared Maven"
url = "https://maven.blamejared.com/"
}
maven {
name = "Modrinth"
url = "https://modrinth.com"
}
maven {
name = "Forge Maven"
url = "https://maven.minecraftforge.net/"
}
}
dependencies {
minecraft "net.minecraftforge:forge:1.20.1-47.4.20"
implementation 'com.vladsch.flexmark:flexmark:0.64.8'
implementation 'com.vladsch.flexmark:flexmark-util-data:0.64.8'
compileOnly fg.deobf("mezz.jei:jei-1.20.1-common-api:15.20.0.130")
compileOnly fg.deobf("mezz.jei:jei-1.20.1-forge-api:15.20.0.130")
runtimeOnly fg.deobf("mezz.jei:jei-1.20.1-forge:15.20.0.130")
}
compileJava {
options.encoding = 'UTF-8'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}