forked from gamerforEA/Minecraft-PacketUnlimiter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
51 lines (42 loc) · 994 Bytes
/
build.gradle
File metadata and controls
51 lines (42 loc) · 994 Bytes
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
buildscript {
repositories {
mavenCentral()
maven {
name = 'forge'
url = 'https://maven.minecraftforge.net/'
}
}
dependencies {
classpath('com.anatawa12.forge:ForgeGradle:2.3-1.0.+') {
changing = true
}
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
minecraft {
version = '1.12.2-14.23.5.2847' // Max forge for FG v2.3
mappings = 'stable_39'
runDir = "run"
makeObfSourceJar = false
replace '@VERSION@', project.mod_version
replaceIn 'CoreMod.java'
}
// Project settings
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
version = minecraft.version + '-' + project.mod_version
jar {
manifest {
attributes 'FMLCorePlugin': project.core_mod_class
attributes 'FMLCorePluginContainsFMLMod': 'true'
}
}
runClient {
jvmArgs '-Dfml.coreMods.load=' + project.core_mod_class
}
runServer {
jvmArgs '-Dfml.coreMods.load=' + project.core_mod_class
args 'nogui'
}