forked from PuzzlesHQ/example-mod-cosmic-reach
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
36 lines (29 loc) · 798 Bytes
/
build.gradle
File metadata and controls
36 lines (29 loc) · 798 Bytes
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
plugins {
id "java"
id "cr_puzzle_gradle"
id "com.github.johnrengelman.shadow"
}
puzzle_loader {
accessManipulatorPath = file("src/main/resources/example_mod.manipulator")
}
repositories {
mavenCentral()
}
dependencies {
}
processResources {
// Locations of where to inject the properties
def resourceTargets = [ "puzzle.mod.json" ]
// Left item is the name in the target, right is the varuable name
def replaceProperties = [
"mod_version" : version,
"mod_desc" : desc,
"mod_name" : project.name,
"mod_id" : id,
]
inputs.properties replaceProperties
replaceProperties.put "project", project
filesMatching(resourceTargets) {
expand replaceProperties
}
}