9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-19 14:59:25 +00:00

update main build file and some patches

This commit is contained in:
NONPLAYT
2025-03-05 21:22:34 +03:00
parent 58edc79952
commit 6e642cf763
7 changed files with 250 additions and 65 deletions

View File

@@ -3,7 +3,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
java
id("io.papermc.paperweight.patcher") version "2.0.0-beta.14"
id("io.papermc.paperweight.patcher") version "2.0.0-SNAPSHOT"
}
val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
@@ -37,6 +37,27 @@ paperweight {
}
}
allprojects {
apply(plugin = "java")
apply(plugin = "maven-publish")
java {
toolchain {
languageVersion = JavaLanguageVersion.of(22)
}
}
tasks.compileJava {
options.compilerArgs.add("-Xlint:-deprecation")
options.isWarnings = false
}
tasks.withType(JavaCompile::class.java).configureEach {
options.isFork = true
options.forkOptions.memoryMaximumSize = "4G"
}
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "maven-publish")
@@ -65,10 +86,6 @@ subprojects {
events(TestLogEvent.STANDARD_OUT)
}
}
tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
repositories {
mavenCentral()