Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
699147c916
# Conflicts: # api/build.gradle # api/src/main/java/com/velocitypowered/api/proxy/connection/Player.java # api/src/main/java/com/velocitypowered/api/proxy/player/TabList.java # build.gradle # proxy/build.gradle # proxy/src/main/java/com/velocitypowered/proxy/Velocity.java # proxy/src/main/java/com/velocitypowered/proxy/command/CommandNodeFactory.java # proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BackendPlaySessionHandler.java # proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java # proxy/src/main/java/com/velocitypowered/proxy/connection/backend/VelocityServerConnection.java # proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java # proxy/src/main/java/com/velocitypowered/proxy/network/packet/clientbound/ClientboundAvailableCommandsPacket.java # proxy/src/main/java/com/velocitypowered/proxy/network/packet/clientbound/ClientboundJoinGamePacket.java # proxy/src/main/java/com/velocitypowered/proxy/network/packet/clientbound/ClientboundRespawnPacket.java # proxy/src/main/java/com/velocitypowered/proxy/network/pipeline/MinecraftDecoder.java # proxy/src/main/java/com/velocitypowered/proxy/protocol/MinecraftPacket.java # proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/EncryptionResponse.java # proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/HeaderAndFooter.java # proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/LoginPluginMessage.java # proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/PluginMessage.java # proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/ServerLogin.java # proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/StatusPing.java # proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/StatusRequest.java # proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java # proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabListLegacy.java # proxy/src/test/java/com/velocitypowered/proxy/command/CommandManagerTests.java
112 Zeilen
2.9 KiB
Groovy
112 Zeilen
2.9 KiB
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'maven-publish'
|
|
id 'checkstyle'
|
|
}
|
|
|
|
apply from: '../gradle/checkstyle.gradle'
|
|
apply from: '../gradle/publish.gradle'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
sourceSets {
|
|
ap {
|
|
compileClasspath += main.compileClasspath + main.output
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api 'com.google.code.gson:gson:2.8.6'
|
|
api "com.google.guava:guava:${guavaVersion}"
|
|
|
|
api "net.kyori:adventure-api:${adventureVersion}"
|
|
api "net.kyori:adventure-text-serializer-gson:${adventureVersion}"
|
|
api "net.kyori:adventure-text-serializer-legacy:${adventureVersion}"
|
|
api "net.kyori:adventure-text-serializer-plain:${adventureVersion}"
|
|
api("net.kyori:coffee:1.0.0-SNAPSHOT")
|
|
|
|
api "org.slf4j:slf4j-api:${slf4jVersion}"
|
|
api 'com.google.inject:guice:4.2.3'
|
|
api "org.checkerframework:checker-qual:${checkerFrameworkVersion}"
|
|
api 'com.velocitypowered:velocity-brigadier:1.0.0-SNAPSHOT'
|
|
|
|
api "org.spongepowered:configurate-hocon:${configurateVersion}"
|
|
api "org.spongepowered:configurate-yaml:${configurateVersion}"
|
|
api "org.spongepowered:configurate-gson:${configurateVersion}"
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
|
|
testImplementation "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
|
|
}
|
|
|
|
task javadocJar(type: Jar) {
|
|
classifier 'javadoc'
|
|
from javadoc
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier 'sources'
|
|
from sourceSets.main.allSource
|
|
from sourceSets.ap.output
|
|
}
|
|
|
|
jar {
|
|
from sourceSets.ap.output
|
|
}
|
|
|
|
shadowJar {
|
|
from sourceSets.ap.output
|
|
}
|
|
|
|
artifacts {
|
|
archives javadocJar
|
|
archives shadowJar
|
|
archives sourcesJar
|
|
}
|
|
|
|
javadoc {
|
|
options.encoding = 'UTF-8'
|
|
options.charSet = 'UTF-8'
|
|
options.source = '8'
|
|
// options.links(
|
|
// 'https://www.slf4j.org/apidocs/',
|
|
// 'https://guava.dev/releases/30.0-jre/api/docs/',
|
|
// 'https://google.github.io/guice/api-docs/4.2/javadoc/',
|
|
// 'https://docs.oracle.com/javase/8/docs/api/',
|
|
// 'https://jd.adventure.kyori.net/api/4.0.0/'
|
|
// )
|
|
|
|
// Disable the crazy super-strict doclint tool in Java 8
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
// Mark sources as Java 8 source compatible
|
|
options.source = '8'
|
|
|
|
// Remove 'undefined' from seach paths when generating javadoc for a non-modular project (JDK-8215291)
|
|
if (JavaVersion.current() >= JavaVersion.VERSION_1_9 && JavaVersion.current() < JavaVersion.VERSION_12) {
|
|
options.addBooleanOption('-no-module-directories', true)
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
from components.java
|
|
|
|
artifact sourcesJar
|
|
artifact javadocJar
|
|
}
|
|
}
|
|
}
|