forked from P3pp3rF1y/Reliquary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·75 lines (64 loc) · 2.22 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
buildscript {
repositories {
maven {
name = "forge"
url = "https://maven.minecraftforge.net"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath "com.anatawa12.forge:ForgeGradle:2.3-1.0.8"
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
repositories {
mavenCentral()
maven { url "https://dvs1.progwml6.com/files/maven" }
maven { url "https://modmaven.dev" }
maven { url "https://maven.thiakil.com" }
maven { url "https://maven.blamejared.com" }
maven { url "https://cursemaven.com" }
}
group = 'xreliquary'
version = "${minecraft_version}-${mod_version}"
archivesBaseName = 'Reliquary'
dependencies {
deobfCompile "mezz.jei:jei_${minecraft_version}:${jei_version}"
deobfCompile "curse.maven:hwyla-253449:${hwyla_version}"
deobfCompile "curse.maven:jer-240630:${jer_version}"
deobfCompile "com.azanor.baubles:Baubles:${baubles_version}"
deobfCompile "curse.maven:botania-225643:${botania_version}"
deobfCompile "slimeknights.mantle:Mantle:${mantle_version}"
deobfCompile "slimeknights:TConstruct:${tconstruct_version}"
testCompile 'org.testng:testng:6.9.10'
testCompile "org.mockito:mockito-core:1.+"
testCompile "org.powermock:powermock-mockito-release-full:1.6.2"
}
test {
useTestNG()
}
minecraft {
version = minecraft_version + "-" + forge_version
mappings = mcp_mappings
runDir = "run"
replaceIn "reference/Reference.java"
replace "@MOD_VERSION@", "${project.version}"
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "project_version", project.version
inputs.property "minecraft_version", minecraft_version
// Replace stuff in mcmod.info and in .lang files, nothing else.
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// Replace version and mcversion.
expand 'project_version': project.version, 'minecraft_version': minecraft_version
}
// Copy everything else that wasn't replaced.
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}