Skip to content

Commit 4a51e2f

Browse files
committed
build: Reproducible builds
1 parent 9415d25 commit 4a51e2f

File tree

6 files changed

+76
-1
lines changed

6 files changed

+76
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ksyxis
22

3-
Speed up your world loading by not loading nearby chunks every time.
3+
Speed up your world loading by removing spawn chunks.
44

55
## How?
66

build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ tasks.withType<ProcessResources> {
6666
}
6767
}
6868

69+
tasks.withType<AbstractArchiveTask> {
70+
isPreserveFileTimestamps = false
71+
isReproducibleFileOrder = true
72+
}
73+
6974
tasks.withType<Jar> {
7075
from("LICENSE")
7176
manifest {

gradle.properties

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# MIT License
2+
#
3+
# Copyright (c) 2021-2024 VidTu
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included in all
13+
# copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
123
# Gradle
224
org.gradle.jvmargs=-Xmx2G
325
org.gradle.parallel=true

gradle/libs.versions.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# MIT License
2+
#
3+
# Copyright (c) 2021-2024 VidTu
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included in all
13+
# copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
123
[versions]
224
asm = "9.7.1"
325
log4j = "2.24.2"

loaders/NOTICE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Source files in this folder/module are provided under their own separate licenses,
2+
NOT the MIT license. See source files' headers for more. These source
3+
files are not included in the final JAR, they are stubs for compilation.
4+
The author of this repository is not a lawyer and this is not legal advice.

loaders/build.gradle.kts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,30 @@ plugins {
2929
java.sourceCompatibility = JavaVersion.VERSION_1_8
3030
java.targetCompatibility = JavaVersion.VERSION_1_8
3131
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
32+
3233
group = "ru.vidtu.ksyxis.loaders"
34+
base.archivesName = "Ksyxis-Loaders"
35+
description = "Module with stubs of loaders' classes for Ksyxis."
3336

3437
tasks.withType<JavaCompile> {
3538
options.encoding = "UTF-8"
39+
options.compilerArgs.addAll(listOf("-g", "-parameters"))
40+
}
41+
42+
tasks.withType<AbstractArchiveTask> {
43+
isPreserveFileTimestamps = false
44+
isReproducibleFileOrder = true
45+
}
46+
47+
tasks.withType<Jar> {
48+
manifest {
49+
attributes(
50+
"Specification-Title" to "Ksyxis",
51+
"Specification-Version" to project.version,
52+
"Specification-Vendor" to "VidTu",
53+
"Implementation-Title" to "Ksyxis-Loaders",
54+
"Implementation-Version" to project.version,
55+
"Implementation-Vendor" to "VidTu, FabricMC, MinecraftForge, NeoForged, QuiltMC"
56+
)
57+
}
3658
}

0 commit comments

Comments
 (0)