-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
40 lines (36 loc) · 1.21 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
plugins {
// see https://fabricmc.net/develop/ for new versions
id 'fabric-loom' version '1.8-SNAPSHOT' apply false
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
id 'net.neoforged.moddev' version '2.0.49-beta' apply false
// build a single jar with multiple loaders supported
id "io.github.pacifistmc.forgix" version "1.2.9"
}
forgix {
group = "com.legobmw99.BetterThanMending"
mergedJarName = "${mod_name}-${version}.jar"
outputDir = "merged/build/libs"
// removeDuplicate "com.legobmw99.BetterThanMending.core.util"
fabric {
jarLocation = "build/libs/${mod_name}-fabric-${version}.jar"
}
neoforge {
jarLocation = "build/libs/${mod_name}-neoforge-${version}.jar"
}
forge {
jarLocation = "build/libs/${mod_name}-forge-${version}.jar"
}
}
tasks.register('build') { t ->
group = "build"
t.dependsOn(subprojects*.tasks*.findByName('build').minus(null))
t.finalizedBy(mergeJars)
}
tasks.register('clean') { t ->
group = "build"
t.dependsOn(subprojects*.tasks*.findByName('clean').minus(null))
def mergedFolder = file("merged")
if (mergedFolder.exists()) {
delete(mergedFolder)
}
}