mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 18:02:31 -05:00
Single-source supported Java versions in Audio code (#6500)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
from .ll_server_config import generate_server_config, get_default_server_config
|
||||
from .ll_version import LAVALINK_BUILD_LINE, LavalinkOldVersion, LavalinkVersion
|
||||
from .version_pins import JAR_VERSION, YT_PLUGIN_VERSION
|
||||
from . import version_pins
|
||||
|
||||
__all__ = (
|
||||
"generate_server_config",
|
||||
@@ -11,6 +11,5 @@ __all__ = (
|
||||
"LAVALINK_BUILD_LINE",
|
||||
"LavalinkOldVersion",
|
||||
"LavalinkVersion",
|
||||
"JAR_VERSION",
|
||||
"YT_PLUGIN_VERSION",
|
||||
"version_pins",
|
||||
)
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
from typing import Final
|
||||
from typing import Final, Tuple
|
||||
|
||||
from .ll_version import LavalinkVersion
|
||||
|
||||
__all__ = ("JAR_VERSION", "YT_PLUGIN_VERSION")
|
||||
__all__ = (
|
||||
"JAR_VERSION",
|
||||
"YT_PLUGIN_VERSION",
|
||||
"SUPPORTED_JAVA_VERSIONS",
|
||||
"LATEST_SUPPORTED_JAVA_VERSION",
|
||||
"OLDER_SUPPORTED_JAVA_VERSIONS",
|
||||
)
|
||||
|
||||
|
||||
JAR_VERSION: Final[LavalinkVersion] = LavalinkVersion(3, 7, 12, red=1)
|
||||
YT_PLUGIN_VERSION: Final[str] = "1.11.2"
|
||||
# keep this sorted from oldest to latest
|
||||
SUPPORTED_JAVA_VERSIONS: Final[Tuple[int, ...]] = (11, 17)
|
||||
LATEST_SUPPORTED_JAVA_VERSION: Final = SUPPORTED_JAVA_VERSIONS[-1]
|
||||
OLDER_SUPPORTED_JAVA_VERSIONS: Final[Tuple[int, ...]] = SUPPORTED_JAVA_VERSIONS[:-1]
|
||||
|
||||
Reference in New Issue
Block a user