forked from HellFirePvP/AstralSorcery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
132 lines (105 loc) · 3.01 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
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'
apply plugin: "java"
version = "1.12.2-1.10.1"
group= "hellfirepvp.astralsorcery"
archivesBaseName = "astralsorcery"
minecraft {
version = "14.23.4.2748"
runDir = "run"
useDepAts = true
mappings = "snapshot_20180415"
}
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/"
}
maven {
//Baubles
name 'thiakil'
url 'http://maven.thiakil.com'
}
maven {
// Gamestages stuff
url 'https://maven.mcmoddev.com'
}
}
dependencies {
def jei_mc_version = "1.12.2"
def jei_version = "4.8.5.151"
////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.1.8.9"
deobfCompile("CraftTweaker2:CraftTweaker2-${ct_mc_version}-Main:${mc_version}-${ct_version}")
deobfCompile "com.azanor.baubles:Baubles:1.12-1.5.2"
compile "net.darkhax.gamestages:GameStages-1.12.2:2.0.91"
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
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"
}
}