-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (43 loc) · 1.17 KB
/
build.gradle
File metadata and controls
54 lines (43 loc) · 1.17 KB
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
plugins {
id "net.lopymine.mossy-plugin-core" version "$mossy_plugin_version"
id "maven-publish"
}
mossyDependencies {
minecraft = stonecutter.current.project.substring(stonecutter.current.project.indexOf("-") + 1)
lombok = prop("base.lombok_version")
fabricApi = prop("build.fabric_api")
fabricLoader = prop("build.fabric_loader")
forge = prop("build.forge")
neoForge = prop("build.neoforge")
parchment = prop("build.parchment")
additional {
//disable("oldpotions")
if (sc.current.project.contains("fabric") && !stonecutter.current.version.startsWith("26.1")) {
override("modRuntimeOnly", "mossylib")
} else {
override("runtimeOnly", "mossylib")
}
}
}
repositories {
mavenLocal()
maven {
name "Mossy Projects"
url "https://maven.lopymine.net/releases"
}
}
dependencies {
def oldPotions = prop("dep.oldpotions")
if (oldPotions != "unknown") {
implementation group: 'com.electronwill.night-config', name: 'toml', version: '3.6.7'
}
}
stonecutter {
replacements.string(current.parsed >= "1.21.11") {
replace("ResourceLocation", "Identifier")
replace(".location()", ".identifier()")
}
}
String prop(String key) {
return findProperty(key).toString()
}