-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.10.gradle
69 lines (58 loc) · 1.79 KB
/
build.10.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
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = "fr.dams4k.cpsdisplay"
version = "mc1.10.2-${mod_version}"
archivesBaseName = "cpsdisplay"
minecraft {
version = "1.10.2-12.18.3.2511"
runDir = "run"
mappings = "snapshot_20161111"
makeObfSourceJar = false
}
dependencies {}
sourceSets {
main {
java {
srcDirs = ["src/main/java/v10", "src/main/java/core"]
}
resources {
srcDirs = ["src/main/resources/v10", "src/main/resources/core"]
}
}
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "mod_id", mod_id
inputs.property "mod_name", mod_name
inputs.property "mod_version", mod_version
inputs.property "mc_version", project.minecraft.version
inputs.property "mod_website", mod_website
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand "mod_version":mod_version, "mc_version":project.minecraft.version, "mod_id":mod_id, "mod_name":mod_name, "mod_website":mod_website
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
jar {
manifest {
attributes(
"TweakOrder": 0,
"TweakClass": "fr.dams4k.cpstweaker.CPSSetupTweaker"
)
}
}