-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
125 lines (108 loc) · 3.08 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "https://maven.minecraftforge.net"
}
maven {
name = "github"
url = "https://github.com/juanmuscaria/maven/raw/master"
}
maven {
name = "sponge"
url = "https://repo.spongepowered.org/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
version = mod_version
group = mod_group
archivesBaseName = mod_archives_name + "-" + mc_version
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
version = "1.12.2-14.23.5.2847"
mappings = "stable_39"
runDir = "run"
replace '@VERSION@', project.version
def args = [
"-Dfml.coreMods.load=com.github.vfyjxf.jeiutilities.asm.JeiUtilitiesLoadingPlugin",
"-Dmixin.hotSwap=true",
"-Dmixin.checks.interfaces=true",
"-Dmixin.debug.export=true"
]
clientJvmArgs.addAll(args)
serverJvmArgs.addAll(args)
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version': project.version,
'mod_id': mod_id,
'mod_name': mod_name,
'mod_author': mod_author,
'mod_description': mod_description,
'mc_version': mc_version,
'mod_version': mod_version,
'mod_icon': mod_icon
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
repositories {
maven {
// location of the maven that hosts JEI files
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
// location of a maven mirror for JEI files, as a fallback
name = "ModMaven"
url = "https://modmaven.k-4u.nl"
}
maven {
url = 'https://maven.blamejared.com'
name = 'BlameJared Maven'
}
maven {
name = "CurseMaven"
url = "https://cursemaven.com"
}
maven {
url "https://maven.cleanroommc.com"
}
}
dependencies {
deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}"
//big recipe test
runtime "curse.maven:extended-crafting-268387:2777071"
runtime "curse.maven:cucumber-272335:2645867"
// deobfCompile("zone.rong:mixinbooter:4.2")
}
task devJar(type: Jar) {
classifier = 'dev'
from sourceSets.main.output
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
runClient {
args '--username', 'developer'
}
jar {
manifest.attributes(
'FMLCorePlugin': 'com.github.vfyjxf.jeiutilities.asm.JeiUtilitiesLoadingPlugin',
'FMLCorePluginContainsFMLMod': 'true'
)
}
artifacts {
archives devJar
archives sourcesJar
}