-
-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/3.0.0' into feature/no-known-channels
# Conflicts: # proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java # proxy/src/main/java/com/velocitypowered/proxy/connection/client/InitialConnectSessionHandler.java # proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java # proxy/src/test/java/com/velocitypowered/proxy/util/collect/CappedSetTest.java
- Loading branch information
Showing
472 changed files
with
11,069 additions
and
4,135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
Copyright (C) 2018 Velocity Contributors | ||
/* | ||
* Copyright (C) $YEAR Velocity Contributors | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Copyright (C) 2018 Velocity Contributors | ||
/* | ||
* Copyright (C) $YEAR Velocity Contributors | ||
* | ||
* The Velocity API is licensed under the terms of the MIT License. For more details, | ||
* reference the LICENSE file in the api top-level directory. | ||
*/ | ||
|
||
The Velocity API is licensed under the terms of the MIT License. For more details, | ||
reference the LICENSE file in the api top-level directory. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
plugins { | ||
`java-library` | ||
`maven-publish` | ||
} | ||
|
||
java { | ||
withJavadocJar() | ||
withSourcesJar() | ||
|
||
sourceSets["main"].java { | ||
srcDir("src/ap/java") | ||
} | ||
|
||
sourceSets["main"].resources { | ||
srcDir("src/ap/resources") | ||
} | ||
} | ||
|
||
dependencies { | ||
api(libs.gson) | ||
api(libs.guava) | ||
|
||
// DEPRECATED: Will be removed in Velocity Polymer | ||
api("com.moandjiezana.toml:toml4j:0.7.2") | ||
|
||
api(platform(libs.adventure.bom)) | ||
api("net.kyori:adventure-api") | ||
api("net.kyori:adventure-text-serializer-gson") | ||
api("net.kyori:adventure-text-serializer-legacy") | ||
api("net.kyori:adventure-text-serializer-plain") | ||
api("net.kyori:adventure-text-minimessage") | ||
|
||
api(libs.slf4j) | ||
api(libs.guice) | ||
api(libs.checker.qual) | ||
api(libs.brigadier) | ||
api(libs.bundles.configurate) | ||
api(libs.caffeine) | ||
} | ||
|
||
tasks { | ||
jar { | ||
manifest { | ||
attributes["Automatic-Module-Name"] = "com.velocitypowered.api" | ||
} | ||
} | ||
withType<Javadoc> { | ||
exclude("com/velocitypowered/api/plugin/ap/**") | ||
|
||
val o = options as StandardJavadocDocletOptions | ||
o.encoding = "UTF-8" | ||
o.source = "8" | ||
|
||
o.links( | ||
"https://www.slf4j.org/apidocs/", | ||
"https://guava.dev/releases/${libs.guava.get().version}/api/docs/", | ||
"https://google.github.io/guice/api-docs/${libs.guice.get().version}/javadoc/", | ||
"https://docs.oracle.com/en/java/javase/11/docs/api/", | ||
"https://jd.advntr.dev/api/${libs.adventure.bom.get().version}/", | ||
"https://javadoc.io/doc/com.github.ben-manes.caffeine/caffeine" | ||
) | ||
|
||
// Disable the crazy super-strict doclint tool in Java 8 | ||
o.addStringOption("Xdoclint:none", "-quiet") | ||
|
||
// Remove "undefined" from search paths when generating javadoc for a non-modular project (JDK-8215291) | ||
if (JavaVersion.current() >= JavaVersion.VERSION_1_9 && JavaVersion.current() < JavaVersion.VERSION_12) { | ||
o.addBooleanOption("-no-module-directories", true) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
api/src/main/java/com/velocitypowered/api/command/BrigadierCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
api/src/main/java/com/velocitypowered/api/command/Command.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.