-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
40 lines (36 loc) · 1.16 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
subprojects {
apply plugin: 'java'
// Group id and mod version
group = modGroupId
version = modVersion
// Mojang ships Java 17 to end users in 1.18+
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
// Repositories for subprojects
repositories {
// Needed by Phantom Loader
mavenCentral()
maven {
name = 'CurseMaven'
url = 'https://cursemaven.com'
}
// Needed by TerraBlender
maven {
name = 'MinecraftForge'
url = 'https://maven.minecraftforge.net/'
}
}
// Jar manifest attributes
jar {
manifest {
attributes([
"Specification-Title": rootProject.name,
"Specification-Vendor": 'HexagonNico',
"Specification-Version": project.version,
"Implementation-Title": project.name,
"Implementation-Version": project.jar.archiveVersion,
"Implementation-Vendor": 'HexagonNico',
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
}