-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (53 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
buildscript {
repositories {
mavenCentral()
}
}
allprojects {
apply plugin: "java"
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs = ["-Xlint:deprecation"]
options.release.set(21)
}
dependencies {
implementation(libs.gson)
implementation(libs.log4japi)
implementation(libs.log4jcore)
}
repositories {
mavenCentral()
maven {
name = "Minecraft Libraries"
url = uri("https://libraries.minecraft.net")
}
maven {
name = "Cloth Config"
url = "https://maven.shedaniel.me/"
}
}
}
group = mod_group_id
archivesBaseName = "${project.mod_name}-${project.minecraft_version}"
task buildJar(type: Jar, group: "modding") {
dependsOn ":common:build", ":fabric:build", ":neoforge:build"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from zipTree("common/build/libs/common-${project.version}.jar"),
zipTree("fabric/build/libs/fabric-${project.version}.jar"),
zipTree("neoforge/build/libs/neoforge-${project.version}.jar")
from('./') {
include 'LICENSE.md'
}
manifest {
attributes([
"Specification-Title" : project.mod_id,
"Specification-Vendor" : project.vendor,
"Specification-Version" : project.version,
"Implementation-Title" : project.mod_name,
"Implementation-Version" : project.version,
"Implementation-Vendor" : project.vendor,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
assemble.finalizedBy("buildJar")