-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (35 loc) · 1.03 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
plugins {
// see https://fabricmc.net/develop/ for new versions
id 'fabric-loom' version '1.7-SNAPSHOT' apply false
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
id 'net.neoforged.moddev' version '0.1.110' apply false
}
mkdir file("build/tmp/javadoc/collect")
mkdir file("build/docs/javadoc")
evaluationDependsOn(":common")
tasks.register("javadoc", Copy) {
dependsOn "common:javadoc"
doFirst {
mkdir file("build/docs/javadoc")
}
from(project(":common").javadoc.outputs)
into(file("build/docs/javadoc"))
}
tasks.register("jar", Copy) {
dependsOn "common:build"
dependsOn "forge:build"
dependsOn "neoforge:build"
dependsOn "fabric:build"
doFirst {
mkdir file("build/libs")
}
from(project(":common").jar.outputs)
from(project(":forge").jar.outputs)
from(project(":neoforge").jar.outputs)
from(project(":fabric").jar.outputs)
into(file("build/libs"))
}
tasks.register("build") {
dependsOn "javadoc"
dependsOn "jar"
}