-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
83 lines (65 loc) · 2.4 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
76
77
78
79
80
81
82
83
plugins {
id 'java-library'
id 'eclipse'
id 'idea'
id 'net.neoforged.gradle.userdev' version '7.0.109'
id 'com.diffplug.spotless' version '6.25.0'
}
version = "${minecraft_version}-${mod_version}"
group = 'platinpython.rgbblocks'
base.archivesName = 'RGB Blocks'
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"
minecraft.accessTransformers.file 'src/main/resources/META-INF/accesstransformers.cfg'
runs {
configureEach {
systemProperty 'forge.logging.markers', 'REGISTRIES'
systemProperty 'forge.logging.console.level', 'debug'
modSource project.sourceSets.main
}
client {
systemProperty 'forge.enabledGameTestNamespaces', 'rgbblocks'
}
server {
systemProperty 'forge.enabledGameTestNamespaces', 'rgbblocks'
programArgument '--nogui'
}
data {
programArguments.addAll '--mod', 'rgbblocks', '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath()
}
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories {
maven {
url "https://www.cursemaven.com/"
content {
includeGroup "curse.maven"
}
}
}
dependencies {
implementation 'net.neoforged:neoforge:20.6.12-beta'
compileOnly 'org.jspecify:jspecify:0.3.0'
implementation 'curse.maven:the-one-probe-245211:5304322'
if (rootProject.file('libs/FramedBlocks-10.0.0.jar').exists()) {
implementation files('libs/FramedBlocks-10.0.0.jar')
}
}
jar {
manifest {
attributes([
"Specification-Title" : "rgbblocks",
"Specification-Vendor" : "PlatinPython",
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : project.jar.archiveVersion,
"Implementation-Vendor" : "PlatinPython",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
// TODO: Figure out why it's still needed
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
apply from: rootProject.file('codeformat/spotless-rules.gradle')