-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
85 lines (69 loc) · 3.04 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
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.2'
}
apply plugin: 'net.minecraftforge.gradle.forge'
def build_version = "1.5.${System.getenv("BUILD_NUMBER") ?: 0}-${System.getenv("GIT_BRANCH") ?: "CUSTOM_BUILD"}"
version = build_version
group = "play.ai.dragonrealm.geiloutils" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "geiloutils"
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
version = "1.12.2-14.23.5.2768"
runDir = "run"
mappings = "snapshot_20171003"
replaceIn "play/ai/dragonrealm/geiloutils/GeiloUtils.java"
replace "@VERSION@", "${build_version}"
}
repositories {
maven { url "https://maven.latmod.com/" }
maven { url "https://dvs1.progwml6.com/files/maven" } //JEI
maven { url "https://dl.bintray.com/dv8fromtheworld/maven" }
jcenter()
}
dependencies {
deobfProvided "com.feed_the_beast.mods:FTBLib:5.+"
deobfProvided "com.feed_the_beast.mods:FTBUtilities:5.+"
compile 'net.dv8tion:JDA:4.2.0_218'
}
shadowJar {
classifier = ""
relocate "org.slf4j","play.ai.dragonrealm.geiloutils.repack.org.slf4j"
relocate "com.iwebpp.crypto", "play.ai.dragonrealm.geiloutils.repack.com.iwebpp.crypto"
relocate "com.neovisionaries.ws.client", "play.ai.dragonrealm.geiloutils.repack.com.neovisionaries.ws.client"
relocate "com.sun.jna", "play.ai.dragonrealm.geiloutils.repack.com.sun.jna"
relocate "com.vdurmont.emoji", "play.ai.dragonrealm.geiloutils.repack.com.vdurmont.emoji"
relocate "gnu.trove", "play.ai.dragonrealm.geiloutils.gnu.trove"
relocate "net.dv8tion.jda", "play.ai.dragonrealm.geiloutils.repack.net.dv8tion.jda"
relocate "okhttp3", "play.ai.dragonrealm.geiloutils.repack.okhttp3"
relocate "okio", "play.ai.dragonrealm.geiloutils.repack.okio"
relocate "org.apache.commons.collections4", "play.ai.dragonrealm.geiloutils.repack.org.apache.commons.collections4"
relocate "org.apache.commons.lang3", "play.ai.dragonrealm.geiloutils.repack.org.apache.commons.lang3"
relocate "org.json", "play.ai.dragonrealm.geiloutils.repack.org.json"
relocate "tomp2p.opuswrapper", "play.ai.dragonrealm.geiloutils.repack.tomp2p.opuswrapper"
relocate "com.fasterxml", "play.ai.dragonrealm.geiloutils.repack.com.fasterxml"
}
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'
}
}
reobf { shadowJar { mappingType = "SEARGE" } }
tasks.reobfShadowJar.mustRunAfter shadowJar