-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (63 loc) · 1.79 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
buildscript {
repositories {
mavenCentral()
maven {
name = 'ForgeGradle 5'
url = 'https://maven.minecraftforge.net'
}
maven {
name = 'FancyGradle'
url = 'https://gitlab.com/api/v4/projects/26758973/packages/maven'
}
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath group: 'wtf.gofancy.fancygradle', name: 'wtf.gofancy.fancygradle.gradle.plugin', version: '1.1.+'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'wtf.gofancy.fancygradle'
version = project.mod_version
group = project.maven_group
archivesBaseName = project.archives_base_name
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
minecraft {
mappings channel: 'stable', version: '39-1.12'
runs {
client {
workingDirectory project.file('run/client')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
}
server {
workingDirectory project.file('run/server')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
mods {
'${archives_base_name}' {
source sourceSets.main
}
}
}
}
}
sourceSets.main.resources {
srcDir 'src/generated/resources'
}
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
}
fancyGradle {
patches {
resources
coremods
}
}
jar {
finalizedBy('reobfJar')
manifest {
attributes([
"TweakClass": "gblodb.preventCrappyLauncher.PreventCrappyLauncher"
])
}
}