generated from PuzzleLoader/ExampleMod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
48 lines (41 loc) · 1.06 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
plugins {
id "java"
id "jigsaw"
id "com.github.johnrengelman.shadow"
}
loom {
splitEnvironmentSourceSets()
mods {
"cosmictooltips" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
accessWidenerPath = file("src/main/resources/cosmic_tooltips.manipulator")
}
repositories {
mavenCentral()
maven {
name "JitPack"
url "https://jitpack.io"
}
}
dependencies {
cosmicReach("finalforeach:cosmicreach:${cosmic_reach_version}")
}
processResources {
// Locations of where to inject the properties
def resourceTargets = [ "puzzle.mod.json" ]
// Left item is the name in the target, right is the variable 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
}
}