-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (83 loc) · 2.3 KB
/
build.gradle
File metadata and controls
102 lines (83 loc) · 2.3 KB
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
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "https://files.minecraftforge.net/maven"
}
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT"
}
}
plugins {
id 'io.franzbecker.gradle-lombok' version '1.12'
id 'net.ltgt.apt' version '0.10'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'application'
apply plugin: "net.minecraftforge.gradle.forge"
group = modGroup
archivesBaseName = modBaseName
version = System.getenv()['BUILD_NUMBER'] != null ? System.getenv()['BUILD_NUMBER'] : System.getenv()['TRAVIS_BUILD_NUMBER']
mainClassName = 'co.chatchain.mc.forge.ChatChainMC'
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
minecraft {
version = project.forgeVersion
runDir = "run"
mappings = project.mcpVersion
}
repositories {
maven {
name 'LDTTeam - Modding'
url 'https://ldtteam.jfrog.io/ldtteam/modding/'
}
mavenCentral()
jcenter()
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
compile('org.jetbrains:annotations:15.0')
compile('org.projectlombok:lombok:1.16.18')
apt('org.projectlombok:lombok:1.16.18')
compileOnly('org.spongepowered:spongeapi:' + spongeApiVersion)
compile 'co.chatchain:commons:33267'
shadow 'co.chatchain:commons:33267'
}
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"
}
}
shadowJar {
configurations = [project.configurations.shadow]
exclude 'dummyThing'
exclude 'META-INF'
relocate('com.typesafe.config', 'co.chatchain.typesafe.config')
relocate('ninja.leaping.configurate', "co.chatchain.configurate")
relocate('com.google', 'co.chatchain.google')
relocate('javax.inject', 'co.chatchain.inject')
}
reobf {
shadowJar {}
}