forked from HellFirePvP/AstralSorcery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
112 lines (90 loc) · 2.62 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
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'
version = "1.12.2-1.8.5"
group= "hellfirepvp.astralsorcery"
archivesBaseName = "astralsorcery"
minecraft {
version = "14.23.1.2560"
runDir = "run"
useDepAts = true
mappings = "snapshot_20170624"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
compileApiJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
maven {
// location of the maven that hosts JEI files
url = "http://dvs1.progwml6.com/files/maven"
}
maven {
// CraftTweaker
name 'jared maven'
url "http://maven.blamejared.com/"
}
}
dependencies {
def jei_mc_version = "1.12.1"
def jei_version = "4.7.8.91"
////JEI stuff
deobfCompile "mezz.jei:jei_${jei_mc_version}:${jei_version}"
def mc_version = "1.12"
def ct_mc_version = "MC1120"
def ct_version = "4.0.0.7"
deobfCompile("CraftTweaker2:CraftTweaker2-${ct_mc_version}-Main:${mc_version}-${ct_version}")
}
task signMainJar(type: SignJar, dependsOn: reobfJar) {
onlyIf { // Skip the task if our secret data isn't available
project.hasProperty('keyStore')
}
if (project.hasProperty('keyStore')) { // This needs to be a path to the keystore file
keyStore = project.keyStore
alias = project.alias
storePass = project.storePass
keyPass = project.keyPass
inputFile = jar.archivePath
outputFile = jar.archivePath
}
}
build.dependsOn signMainJar
jar {
manifest {
attributes 'FMLAT': 'astralsorcery_at.cfg'
attributes 'FMLCorePlugin': "hellfirepvp.astralsorcery.core.AstralCore"
attributes 'FMLCorePluginContainsFMLMod': 'true'
}
}
processResources
{
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include "mcmod.info"
// replace version and mcversion
expand "version": project.version, "mcversion": "1.12"
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude "mcmod.info"
}
}