forked from tomdodd4598/NuclearCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
147 lines (134 loc) · 3.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
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
142
143
144
145
146
147
buildscript {
repositories {
mavenCentral()
maven {
name = "jitpack"
url = "https://jitpack.io/"
}
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
}
}
dependencies {
classpath("com.github.GregTechCE:ForgeGradle:FG_2.3-SNAPSHOT")
classpath("org.eclipse.jgit:org.eclipse.jgit:5.8.0.202006091008-r")
classpath("org.apache.commons:commons-lang3:3.12.0")
}
}
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.dev/"
}
}
version = "${mod_version}-${mc_version}"
group = "nc"
archivesBaseName = "NuclearCraft"
sourceCompatibility = targetCompatibility = "1.8"
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
minecraft {
version = "${mc_version}-${forge_version}"
runDir = "run"
replace "@VERSION@", "${mod_version}"
mappings = "${mapping_version}"
makeObfSourceJar = true
}
dependencies {
// 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 "baubles:Baubles:${baubles_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 "slimeknights.mantle:Mantle:${mantle_version}"
deobfCompile "slimeknights:TConstruct:${tic_version}"
deobfCompile "constructs-armory:conarm:${conarm_version}"
deobfCompile "li.cil.oc:OpenComputers:${oc_version}"
deobfCompile "gregtechce:gregtech:${gregtech_version}"
deobfCompile "mekanism:Mekanism:${mekanism_version}"
deobfCompile "projecte:ProjectE:${projecte_version}"
deobfCompile "org.cyclops.commoncapabilities:CommonCapabilities:${mc_version}-${common_capabilities_version}"
deobfCompile "net.darkhax.bookshelf:Bookshelf-${mc_version}:${bookshelf_version}"
deobfCompile "net.darkhax.gamestages:GameStages-${mc_version}:${gamestages_version}"
deobfCompile "vazkii.patchouli:Patchouli:${patchouli_version}"
deobfCompile "mcjty.theoneprobe:TheOneProbe-1.12:${top_version}"
deobfCompile "hwyla:Hwyla:${hwyla_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": "nuclearcraft_at.cfg"
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = "deobf"
}
artifacts {
archives deobfJar
}