-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
75 lines (61 loc) · 2.15 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
63
64
65
66
67
68
69
70
71
72
73
74
75
plugins {
id 'java'
id "com.hypherionmc.modutils.modpublisher" version "2.1.+" apply false
id "xyz.wagyourtail.unimined" version "1.2.4" apply false
id "com.hypherionmc.modutils.orion" version "1.0.+"
}
orion.setup {
multiProject = true
enableMirrorMaven = true
enableReleasesMaven = true
dopplerToken = System.getenv("DOPPLER_KEY")
versioning {
var relType = project.properties["releaseType"] ?: "${release_type}"
identifier("${relType}")
}
}
group = project_group
subprojects {
apply plugin: "xyz.wagyourtail.unimined"
apply plugin: 'java'
apply plugin: 'com.hypherionmc.modutils.modpublisher'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
group = rootProject.group
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.projectlombok:lombok:${lombok}")
annotationProcessor("org.projectlombok:lombok:${lombok}")
}
jar {
manifest {
attributes([
'Specification-Title' : mod_name,
'Specification-Vendor' : mod_author,
'Specification-Version' : project.jar.archiveVersion,
'Implementation-Title' : project.name,
'Implementation-Version' : project.jar.archiveVersion,
'Implementation-Vendor' : mod_author,
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
'Timestamp' : System.currentTimeMillis(),
'Built-On-Java' : "${System.getProperty('java.vm.version')} (${System.getProperty('java.vm.vendor')})",
'Built-On-Minecraft' : minecraft_version
])
}
}
unimined.minecraft(sourceSets.main, true) {
version minecraft_version
mappings {
mojmap()
devNamespace "mojmap"
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.release = 17
}
tasks.withType(GenerateModuleMetadata).configureEach {
enabled = false
}
}