This repository has been archived by the owner on Oct 31, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
135 lines (117 loc) · 3.4 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
126
127
128
129
130
131
132
133
134
135
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
allprojects {
repositories {
jcenter() {
url = 'http://jcenter.bintray.com/'
}
maven {
url 'http://repository.jboss.org/nexus/content/groups/public'
}
}
}
apply plugin: 'idea'
apply plugin: 'net.minecraftforge.gradle.forge'
version = "${version_major}.${version_minor}.${version_patch}"
group = "snownee.cuisine"
archivesBaseName = "Cuisine"
if (System.getenv().BUILD_NUMBER != null) {
version += "-build${System.getenv().BUILD_NUMBER}"
}
sourceCompatibility = targetCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
maven {
name = "jei"
url = "https://dvs1.progwml6.com/files/maven"
}
maven {
name = 'tterrag maven'
url = "https://maven.tterrag.com/"
}
maven {
name = "jared"
url = "https://maven.blamejared.com"
}
maven {
name = "tehnut"
url = "https://tehnut.info/maven"
}
flatDir {
dirs 'libs'
}
}
minecraft {
version = "${minecraft_version}-${forge_version}"
runDir = "run"
mappings = mapping_version
useDepAts = true // TODO Actually it could be bad practice
replace "@VERSION_INJECT@", project.version
}
dependencies {
// Why not deobfCompile? Since JEI 4.13.1, JEI uses stable_39 mapping, so we are on the same MCP version now.
compile "mezz.jei:jei_${minecraft_version}:${jei_version}"
deobfCompile "vazkii.patchouli:Patchouli:${patchi_version}"
deobfCompile("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-${ct_version}") {
exclude group: 'org.ow2.asm'
}
deobfCompile "CraftTweaker2:CraftTweaker2-API:${ct_version}"
deobfCompile "CraftTweaker2:ZenScript:${ct_version}"
deobfCompile "mcp.mobius.waila:Hwyla:1.8.26-B41_1.12.2"
deobfCompile("mcjty.theoneprobe:TheOneProbe-1.12:${top_version}") {
exclude group: 'cofh'
}
deobfCompile "blusunrize:ImmersiveEngineering:0.12-92-559"
compile files(
'Kiwi-1.12.2-0.5.1-deobf.jar',
'Nutrition-1.12.2-3.5.0.jar',
'Baubles-1.12-1.5.2.jar',
'Carry+On+MC1.12.2+v1.10.jar',
'ToughAsNails-1.12.2-3.1.0.129-api.jar'
)
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version':project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
jar {
exclude "**/*.bat"
exclude "**/*.psd"
exclude "**/*.d"
exclude "**/*.exe"
exclude "**/*.e"
exclude "**/*.txt"
manifest {
attributes 'FMLAT': 'cuisine_at.cfg'
attributes 'Maven-Artifact': "${project.group}:${project.archivesBaseName}:${project.version}"
attributes 'Timestamp': System.currentTimeMillis()
}
}
javadoc {
options.encoding = "UTF-8"
options.charSet = "UTF-8"
options.links = [
'https://docs.oracle.com/javase/8/docs/api/'
]
options.tags = [
"implSpec:a:Implementation Specification",
"implNote:a:Implementation Note"
]
}