forked from PuzzleLoader/ExampleMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
43 lines (35 loc) · 1005 Bytes
/
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
plugins {
id "java"
id "org.jetbrains.kotlin.jvm"
id "cr_puzzle_gradle"
id "com.github.johnrengelman.shadow"
}
puzzle_loader {
accessManipulatorPath = file("src/main/resources/example_mod.manipulator")
}
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(17)
}
dependencies {
compileOnly("finalforeach:cosmicreach:$cosmic_reach_version:client")
mod "com.github.PuzzleLoader:puzzle-language-kotlin:1.0.2"
}
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
}
}