Biome grass/foliage/dry-foliage/water colors and grass color modifiers are now read from the server's built-in worldgen biome data at runtime, with a 26.3 snapshot as fallback. Fixes missing biomes (dappled_forest, pale_garden, sulfur_caves) and several outdated values. Replace deprecated ExactChoice constructors.
63 lines
1.3 KiB
Groovy
63 lines
1.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'com.diffplug.spotless' version '7.0.2'
|
|
}
|
|
|
|
group = 'eu.mhsl.minecraft.pixelpics'
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "papermc-repo"
|
|
url = "https://repo.papermc.io/repository/maven-public/"
|
|
}
|
|
maven {
|
|
name = "sonatype"
|
|
url = "https://oss.sonatype.org/content/groups/public/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:26.3.build.240-stable")
|
|
}
|
|
|
|
def targetJavaVersion = 25
|
|
java {
|
|
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
|
|
sourceCompatibility = javaVersion
|
|
targetCompatibility = javaVersion
|
|
if (JavaVersion.current() < javaVersion) {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
|
|
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
|
|
options.release.set(targetJavaVersion)
|
|
}
|
|
}
|
|
|
|
processResources {
|
|
def props = [version: version]
|
|
inputs.properties props
|
|
filteringCharset 'UTF-8'
|
|
filesMatching('plugin.yml') {
|
|
expand props
|
|
}
|
|
}
|
|
|
|
spotless {
|
|
java {
|
|
target 'src/main/java/**/*.java'
|
|
palantirJavaFormat()
|
|
removeUnusedImports()
|
|
}
|
|
}
|
|
|
|
if (file("local.gradle").exists()) {
|
|
apply from: "local.gradle"
|
|
}
|