-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathbuild.gradle
More file actions
35 lines (30 loc) · 1.09 KB
/
build.gradle
File metadata and controls
35 lines (30 loc) · 1.09 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
plugins {
// see https://fabricmc.net/develop/ for new versions
id 'net.fabricmc.fabric-loom' version '1.15.5' apply false
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
id 'net.neoforged.moddev' version '2.0.141' apply false
}
tasks.register("cleanUp") {
group = 'build'
description = "Cleans up fabric and forge"
dependsOn ':fabric:clean', ':neoforge:clean'
finalizedBy 'buildAllLoaders'
}
tasks.register('buildAllLoaders') {
group = 'build'
description = 'Builds both Fabric and NeoForge loader projects.'
dependsOn ':fabric:build', ':neoforge:build'
finalizedBy 'publishBuiltJars'
}
tasks.register('publishBuiltJars', Copy) {
group = 'build'
description = 'Copies built Fabric and NeoForge jars into the root Publish directory.'
dependsOn ':fabric:build', ':neoforge:build'
from(project(':fabric').layout.buildDirectory.dir('libs')) {
include '*.jar'
}
from(project(':neoforge').layout.buildDirectory.dir('libs')) {
include '*.jar'
}
into layout.projectDirectory.dir('Publish')
}