-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (49 loc) · 1.48 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
buildscript {
repositories {
maven { url 'https://jitpack.io' }
maven { url 'https://repo.spongepowered.org/maven' }
maven { url 'https://maven.minecraftforge.net/' }
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
apply plugin: 'java'
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
String modid = "cahud"
String mainClass = "CreeperAttackHUD"
version = "1.5.0"
archivesBaseName = modid
group = "com.mathgeniuszach.${modid}"
minecraft {
version = "1.8.9-11.15.1.2318-1.8.9"
runDir = "run"
mappings = "stable_22"
replace '${modid}', modid
replace '${version}', project.version
replace '${group}', group
makeObfSourceJar = false
}
compileJava {
options.encoding = 'UTF-8'
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from("./src/main/resources") { // sourceSets.main.resources.srcDirs
include 'mcmod.info'
expand(
'version':project.version,
'mcversion':project.minecraft.version,
'modid':modid,
'group':group,
)
}
}