forked from Lach01298/QMD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
141 lines (119 loc) · 3.34 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
136
137
138
139
140
141
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
repositories {
maven {
name = "CurseForge"
url = "https://minecraft.curseforge.com/api/maven/"
}
maven {
name = "progwml6"
url = "http://dvs1.progwml6.com/files/maven/"
}
maven {
name = "blamejared"
url = "http://maven.blamejared.com/"
}
maven {
name = "ic2"
url = "http://maven.ic2.player.to/"
}
maven {
name = "cil"
url = "http://maven.cil.li/"
}
maven {
name = "CoFH Maven"
url = "http://maven.covers1624.net"
}
maven {
name = "CCL Maven"
url = "http://chickenbones.net/maven/"
}
maven {
name = "CyclopsMC"
url = "https://oss.jfrog.org/artifactory/simple/libs-release/"
}
maven {
name 'tterrag Maven'
url "https://maven.tterrag.com/"
}
maven {
name = "mcmoddev"
url = "https://maven.mcmoddev.com"
}
maven {
name = "ModMaven"
url = "https://modmaven.k-4u.nl"
}
}
version = "${mod_version}-${mc_version}"
group = "lach_01298"
archivesBaseName = "QMD"
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
version = "${mc_version}-${forge_version}"
runDir = "run"
replace "@VERSION@", "${mod_version}"
mappings = "${mapping_version}"
makeObfSourceJar = true
}
dependencies {
deobfCompile "nuclearcraft-overhauled:NuclearCraft:${nuclearcraft_version}:${mc_version}"
// compile against the JEI API but do not include it at runtime
deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api"
// at runtime, use the full JEI jar
runtime "mezz.jei:jei_${mc_version}:${jei_version}"
deobfCompile ("cofh:CoFHCore:${cofh_core_version}:universal") {
transitive = false
}
deobfCompile "codechicken:CodeChickenLib:1.12.2-+:universal"
deobfCompile "cofh:RedstoneFlux:1.12-+:universal"
deobfCompile "net.industrial-craft:industrialcraft-2:${ic2_version}:api"
deobfCompile "CraftTweaker2:CraftTweaker2-MC1120-Main:${crafttweaker_version}"
deobfCompile "base:base:${b_a_s_e_version}"
deobfCompile "contenttweaker:ContentTweaker:${contenttweaker_version}"
deobfCompile "li.cil.oc:OpenComputers:${oc_version}"
deobfCompile "mekanism:Mekanism:${mekanism_version}"
deobfCompile "vazkii.patchouli:Patchouli:${patchouli_version}"
deobfCompile "mcjty.theoneprobe:TheOneProbe-1.12:${top_version}"
}
processResources {
exclude '**/Thumbs.db'
exclude '**/assets/base/**'
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'
}
rename '(.+_at.cfg)', 'META-INF/$1'
}
jar {
manifest {
attributes "FMLAT": "qmd_at.cfg"
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = "deobf"
}
artifacts {
archives deobfJar
}