forked from Snownee/Cuisine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
120 lines (103 loc) · 3.02 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
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
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 = "http://dvs1.progwml6.com/files/maven"
}
maven {
name = 'tterrag maven'
url = "http://maven.tterrag.com/"
}
maven {
name = "jared"
url = "http://maven.blamejared.com"
}
maven {
name = "tehnut"
url = "http://tehnut.info/maven"
}
flatDir {
dirs 'libs'
}
}
minecraft {
version = "${minecraft_version}-${forge_version}"
runDir = "run"
mappings = "${mapping_version}"
useDepAts = true
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 "CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-${ct_version}"
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'
}
compile files(
'Kiwi-1.12.2-0.2.4-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, 'mcversion':project.minecraft.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"
]
}