-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
143 lines (126 loc) · 3.89 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
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
plugins {
id "com.matthewprenger.cursegradle" version "1.4.0"
}
apply plugin: 'net.minecraftforge.gradle.forge'
archivesBaseName = "Clans"
version = "2.1.9+1.12.2"
group = "dev.the-fireplace"
allprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
minecraft {
version = "1.12.2-14.23.5.2847"
runDir = "run"
replace '${version}', project.version
mappings = "stable_39"
clientRunArgs += "--uuid=0b1ec5ad-cb2a-43b7-995d-889320eb2e5b --username=The_Fireplace"
}
configurations {
shade
compile.extendsFrom shade
}
dependencies {
compile group: "net.shadowfacts", name: "Forgelin", version: "1.8.2", transitive: true
deobfProvided "us.dynmap:DynmapCoreAPI:3.0-SNAPSHOT"
provided ('org.spongepowered:spongeapi:7.1.0') {
exclude module: 'org.yaml:snakeyaml:1.18'
}
compile("appeng:appliedenergistics2:rv6-stable-7"){
exclude group: 'mezz.jei'
}
provided("vazkii.autoreglib:AutoRegLib:1.3-33.34") {
transitive = true
}
provided "vazkii.quark:Quark:r1.6-177.753"
deobfCompile "net.ilexiconn:llibrary:1.7.9-1.12.2"
shade 'com.electronwill.night-config:hocon:3.6.4'
}
repositories {
jcenter()
//Night-Config, probably others
mavenCentral()
// Sponge
maven { url 'https://repo.spongepowered.org/maven' }
// Forgelin
maven { url "http://maven.shadowfacts.net/" }
// Dynmap
maven { url "http://repo.mikeprimm.com" }
// iChunUtil, JourneyMap API, Chisels & Bits
maven { url "https://minecraft.curseforge.com/api/maven/" }
// Quark, AutoRegLib
maven { url = "http://maven.blamejared.com/" }
// LLibrary (needed for Ice and Fire)
maven { url "https://maven.mcmoddev.com/" }
}
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'
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
artifacts {
archives jar
archives deobfJar
archives sourceJar
}
jar {
configurations.shade.each { dep ->
from(project.zipTree(dep)) {
exclude 'META-INF/*.SF'
exclude 'META-INF/*.RSA'
exclude 'META-INF/*.MF'
exclude '**/*.html'
}
}
}
if (hasProperty('curseForgeApiKey')) {
curseforge {
apiKey = curseForgeApiKey
project {
id = '313915'
changelog = file('changelog.txt')
releaseType = 'release'
addGameVersion '1.12.2'
addGameVersion 'Java 8'
mainArtifact(new File(new File(buildDir, "libs"), "$archivesBaseName-${version}.jar")) {
displayName = jar.archiveName.replace(".jar", "")
relations {
optionalLibrary 'grand-economy'
optionalLibrary 'dynmapforge'
optionalLibrary 'chat-censor'
}
}
addArtifact(sourceJar) {
displayName = sourceJar.archiveName.replace(".jar", "")
changelog = "*This is a file for mod developers. If you don't know what to do with it, don't use it!*"
}
addArtifact(deobfJar) {
displayName = deobfJar.archiveName.replace(".jar", "")
changelog = "*This is a file for mod developers. If you don't know what to do with it, don't use it!*"
}
}
}
}