-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle
162 lines (139 loc) · 5.03 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
buildscript {
repositories {
mavenCentral()
maven { url = "http://files.minecraftforge.net/maven" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
plugins {
id 'net.franz-becker.gradle-lombok' version '1.5'
id 'com.matthewprenger.cursegradle' version '1.0.8'
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'maven-publish'
group = 'tterrag.wailaplugins'
archivesBaseName = "WAILAPlugins"
version = "MC${minecraft_version}-${mod_version}-${System.getenv().BUILD_NUMBER}"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
minecraft {
version = "${minecraft_version}-${forge_version}"
runDir = 'run'
mappings = 'snapshot_20180717'
replace "@VERSION@", project.version
replace "${toReplace}", "required-after:Forge@[${forge_version},);required-after:endercore@[${endercore_version},);required-after:Waila;"
replaceIn "WailaPlugins.java"
}
repositories {
maven { // ttCore
name 'tterrag Repo'
url "http://maven.tterrag.com/"
}
maven { // WAILA
name "Mobius Repo"
url "http://mobiusstrip.eu/maven/"
}
maven { // CCC/NEI (for WAILA)
name 'CB Repo'
url "http://chickenbones.net/maven/"
}
maven { // Forestry
name 'Player Maven'
url "http://maven.ic2.player.to/"
}
maven { // RCrops
name 'TehNut Maven'
url "http://tehnut.info/maven/"
}
maven { // Thermal Expansion / CoFH
name = "CoFH Maven"
url = "http://maven.covers1624.net"
}
maven { // CCL
name = "CB Maven"
url = "http://chickenbones.net/maven"
}
maven { // JEI
url "http://dvs1.progwml6.com/files/maven/"
}
maven { // MystCraft
name 'XCompWiz Maven'
url "http://maven.xcompwiz.com"
}
ivy {
name = "RailCraft"
url = "http://www.railcraft.info/ivy/"
}
maven { url 'https://jitpack.io' }
maven { // CurseForge
url "https://minecraft.curseforge.com/api/maven/"
}
}
dependencies {
deobfCompile "com.enderio.core:EnderCore:${endercore_version}"
deobfCompile "mcp.mobius.waila:Hwyla:${HWYLA_version}_${minecraft_version}"
deobfCompile "net.sengir.forestry:forestry_${minecraft_version}:${forestry_version}"
deobfCompile "info.tehnut.resourcefulcrops:ResourcefulCrops:${rcrops_version}"
deobfCompile "com.wayoftime.bloodmagic:BloodMagic:${minecraft_version}-${bloodmagic_version}"
deobfCompile "info.amerifrance.guideapi:Guide-API:${guideapi_version}"
// deobfCompile 'com.github.railcraft:railcraft:indev-1.12.2-SNAPSHOT'
// compile "com.xcompwiz.mystcraft:mystcraft:${mystcraft_version}:dev"
deobfCompile "cofh:ThermalExpansion:${minecraft_version}-${te_version}:universal"
deobfCompile "cofh:ThermalFoundation:${minecraft_version}-${tf_version}:universal"
deobfCompile "cofh:CoFHCore:${minecraft_version}-${cofhcore_version}:universal"
deobfCompile "cofh:CoFHWorld:${minecraft_version}-${cofhworld_version}:universal"
deobfCompile "cofh:RedstoneFlux:1.12-${rf_version}:universal"
deobfCompile "codechicken:CodeChickenLib:${minecraft_version}-${ccl_version}:universal"
// deobfCompile ("com.headlamp-games:Railcraft:${railcraft_version}") {
// exclude module: "forestry_1.10.2"
// exclude module: "industrialcraft-2"
// }
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include '**/*.info'
include '**/*.properties'
// replace version and mcversion
expand 'version': project.version, 'mcversion': project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.info'
exclude '**/*.properties'
}
}
lombok {
version = "1.16.6"
sha256 = "e0a471be03e1e6b02bf019480cec7a3ac9801702bf7bf62f15d077ad4df8dd5d"
}
import net.franz_becker.gradle.lombok.task.DelombokTask
task delombok(type: DelombokTask) {
args("src/main/java", "-d", "build/sources/delomboked/java")
}
tasks.eclipse.dependsOn installLombok
tasks.curseforge.enabled = System.getenv('CURSE') != null && System.getenv('CURSE').equals('true') && project.hasProperty('curseforge_key')
curseforge {
if (project.hasProperty('curseforge_key')) {
apiKey = project.curseforge_key
}
project {
id = project.curse_projectId
changelog = System.getenv('CHANGELOG') == null || System.getenv('CHANGELOG').equals('none') ? getChangelog() : System.getenv('CHANGELOG')
changelogType = 'text'
releaseType = 'beta'
addGameVersion '1.10.2'
mainArtifact(jar) {
displayName = "WAILA Plugins - ${version}"
relations {
requiredLibrary 'endercore'
requiredLibrary 'hwyla'
}
}
}
}