-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
48 lines (41 loc) · 1.27 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
buildscript {
repositories {
jcenter()
maven { url = 'http://files.minecraftforge.net/maven' }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
// Version information
ext {
mcVersion = '1.12.2'
forgeVersion = '14.23.4.2710'
modVersion = '1.4.4'
mcpMappings = 'snapshot_20171003'
}
// JAR filenames and Maven coordinates
archivesBaseName = 'betterhud'
group = 'jobicade.betterhud'
version = "${project.ext.mcVersion}-${project.ext.modVersion}"
minecraft {
version = "${project.ext.mcVersion}-${project.ext.forgeVersion}"
mappings = project.ext.mcpMappings
runDir = 'run'
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property 'modVersion', project.version
inputs.property 'mcVersion', project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand project.ext.properties
}
// copy everything else except the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}