- paper-api 26.2.build.129-stable (all modules), Java toolchain 25, shadow 9.6.1 - fixed NoSuchFieldError on join/quit/chat: Adventure 5 ClickEvent API (ClickEvent.suggestCommand / openUrl instead of ClickEvent.Action constants) - fixed NBTComponent generics in AntiFormattedBook - replaced javax.annotation with org.jetbrains.annotations (no longer provided by paper-api) - local.gradle.example: Gradle 9 compatible (archiveFile, providers.exec) The previous state is tagged as paper-1.21.10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
54 lines
1.1 KiB
Groovy
54 lines
1.1 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'com.gradleup.shadow' version "9.6.1"
|
|
}
|
|
|
|
allprojects {
|
|
group = 'de.mhsl.craftattack'
|
|
version = '1.0.0'
|
|
|
|
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/"
|
|
}
|
|
maven {
|
|
url = uri("https://repo.opencollab.dev/main/")
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'com.gradleup.shadow'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(25)
|
|
}
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
shadowImplementation.extendsFrom implementation
|
|
}
|
|
|
|
shadowJar {
|
|
configurations = [project.configurations.shadowImplementation]
|
|
archiveClassifier.set('')
|
|
|
|
relocate 'org.apache.httpcomponents', 'eu.mhsl.lib.shadow.httpclient'
|
|
relocate 'com.sparkjava', 'eu.mhsl.lib.shadow.spark-core'
|
|
|
|
mergeServiceFiles()
|
|
}
|
|
|
|
if (file("local.gradle").exists()) {
|
|
apply from: "local.gradle"
|
|
}
|