Add ViaAxiom
Deploy / Build (push) Skipped
Pull Request Build / Build (pull_request) Failing after 17s

This commit is contained in:
Jakob Schulz
2026-11-01 15:30:21 +01:00
parent e198772885
commit f373e3d6d9
76 changed files with 4496 additions and 896 deletions
+15 -110
View File
@@ -1,115 +1,20 @@
/*
* This file is a part of the SteamWar software.
*
* Copyright (C) 2025 SteamWar.de-Serverteam
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import org.apache.tools.ant.taskdefs.condition.Os
import java.net.URI
import java.util.*
pluginManagement {
plugins {
kotlin("plugin.lombok") version "2.3.20"
}
}
rootProject.name = "ViaAxiom"
private val isInCi by lazy { Os.isFamily(Os.FAMILY_UNIX) && ProcessBuilder("hostname").start().inputStream.bufferedReader().readText().startsWith("steamwar.de") }
dependencyResolutionManagement {
repositories {
maven {
url = URI("https://m2.dv8tion.net/releases")
content {
includeGroup("net.dv8tion")
}
}
maven {
url = URI("https://maven.enginehub.org/repo")
content {
includeGroup("com.sk89q.worldedit")
includeGroup("com.sk89q.worldedit.worldedit-libs")
}
}
maven {
if (isInCi) {
url = URI("file:///var/www/maven/")
} else {
url = URI("https://maven.steamwar.de/")
credentials {
val swProps = Properties()
swProps.load(rootDir.resolve("steamwar.properties").inputStream())
username = swProps.getProperty("maven.username")
password = swProps.getProperty("maven.password")
}
}
content {
includeGroup("de.steamwar")
}
}
maven {
url = URI("https://repo.codemc.io/repository/maven-snapshots/")
content {
includeGroup("net.wesjd")
}
}
maven {
url = URI("https://libraries.minecraft.net")
content {
includeGroup("com.mojang")
}
}
maven {
url = URI("https://repo.viaversion.com")
content {
includeGroup("com.viaversion")
}
}
maven {
url = URI("https://repo.papermc.io/repository/maven-public/")
content {
includeGroup("org.bukkit")
includeGroup("org.spigotmc")
includeGroup("io.papermc.paper")
includeGroup("com.velocitypowered")
includeGroup("net.md-5")
}
}
mavenCentral()
}
versionCatalogs {
create("libs") {
plugin("shadow", "com.github.johnrengelman.shadow").version("8.1.1")
library("lombok", "org.projectlombok:lombok:1.18.32")
library("axiom", "de.steamwar:axiompaper:RELEASE")
library("velocity", "de.steamwar:velocity:RELEASE")
library("velocityapi", "com.velocitypowered:velocity-api:3.5.0-SNAPSHOT")
library("viaapi", "com.viaversion:viaversion-api:4.3.1")
library("viavelocity", "com.viaversion:viaversion-velocity:4.3.1")
maven("https://maven.fabricmc.net/") {
name = "Fabric"
}
gradlePluginPortal()
}
}
rootProject.name = "viaaxiom"
include("core", "velocity")
val tasks = gradle.startParameter.taskNames
val proxyOnly = tasks.isNotEmpty() && tasks.all { it.startsWith(":velocity:") || it.startsWith(":core:") }
// Minecraft 26.2 needs Java 25, and Loom sets it up during configuration.
if (JavaVersion.current() >= JavaVersion.VERSION_25 && !proxyOnly) {
include("fabric")
}