forked from SteamWar/SteamWar
Gradle Rewrite
This commit is contained in:
+162
-41
@@ -17,35 +17,150 @@
|
||||
* 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.Properties
|
||||
|
||||
rootProject.name = "SteamWar"
|
||||
|
||||
include("BauSystem")
|
||||
include("BauSystem:BauSystem_15")
|
||||
include("BauSystem:BauSystem_18")
|
||||
include("BauSystem:BauSystem_19")
|
||||
include("BauSystem:BauSystem_20")
|
||||
include("BauSystem:BauSystem_Linkage")
|
||||
include("BauSystem:BauSystem_Main")
|
||||
private val isInCi by lazy { Os.isFamily(Os.FAMILY_UNIX) && ProcessBuilder("hostname").start().inputStream.bufferedReader().readText().startsWith("steamwar.de") }
|
||||
|
||||
dependencyResolutionManagement {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
maven {
|
||||
url = URI("https://m2.dv8tion.net/releases")
|
||||
content {
|
||||
includeGroup("net.dv8tion")
|
||||
}
|
||||
}
|
||||
|
||||
maven {
|
||||
url = URI("https://repo.lunarclient.dev")
|
||||
content {
|
||||
includeGroup("com.lunarclient")
|
||||
}
|
||||
}
|
||||
|
||||
if (isInCi) {
|
||||
maven {
|
||||
url = URI("file:///var/www/html/maven/")
|
||||
}
|
||||
} else {
|
||||
maven {
|
||||
url = URI("https://steamwar.de/maven/")
|
||||
credentials {
|
||||
val swProps = Properties()
|
||||
swProps.load(rootDir.resolve("steamwar.properties").inputStream())
|
||||
|
||||
username = swProps.getProperty("maven.username")
|
||||
password = swProps.getProperty("maven.password")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
maven {
|
||||
url = URI("https://repo.codemc.io/repository/maven-snapshots/")
|
||||
}
|
||||
|
||||
maven {
|
||||
url = URI("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
||||
}
|
||||
|
||||
maven {
|
||||
url = URI("https://libraries.minecraft.net")
|
||||
}
|
||||
|
||||
maven {
|
||||
url = URI("https://repo.viaversion.com")
|
||||
}
|
||||
|
||||
maven {
|
||||
url = URI("https://repo.papermc.io/repository/maven-public/")
|
||||
}
|
||||
}
|
||||
|
||||
versionCatalogs {
|
||||
create("libs") {
|
||||
plugin("shadow", "com.github.johnrengelman.shadow").version("8.1.1")
|
||||
|
||||
library("lombok", "org.projectlombok:lombok:1.18.32")
|
||||
library("luaj", "org.luaj:luaj-jse:3.0.1")
|
||||
library("sqlite", "org.xerial:sqlite-jdbc:3.46.0.0")
|
||||
library("mysql", "mysql:mysql-connector-java:8.0.33")
|
||||
library("fastutil", "it.unimi.dsi:fastutil:8.5.6")
|
||||
library("netty", "io.netty:netty-all:4.1.68.Final")
|
||||
library("junit", "junit:junit:4.13.2")
|
||||
library("hamcrest", "org.hamcrest:hamcrest:2.2")
|
||||
library("jda", "net.dv8tion:JDA:4.4.0_352")
|
||||
library("msgpack", "org.msgpack:msgpack-core:0.9.8")
|
||||
|
||||
library("spigotapi", "org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT")
|
||||
library("spigotannotations", "org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT")
|
||||
library("paperapi", "io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT")
|
||||
library("authlib", "com.mojang:authlib:1.5.25")
|
||||
library("datafixer", "com.mojang:datafixerupper:4.0.26")
|
||||
library("brigadier", "com.mojang:brigadier:1.0.18")
|
||||
library("viaapi", "com.viaversion:viaversion-api:4.3.1")
|
||||
library("anvilgui", "net.wesjd:anvilgui:1.7.0-SNAPSHOT")
|
||||
|
||||
library("nms8", "de.steamwar:spigot:1.8")
|
||||
library("nms9", "de.steamwar:spigot:1.9")
|
||||
library("nms10", "de.steamwar:spigot:1.10")
|
||||
library("nms12", "de.steamwar:spigot:1.12")
|
||||
library("nms14", "de.steamwar:spigot:1.14")
|
||||
library("nms15", "de.steamwar:spigot:1.15")
|
||||
library("nms18", "de.steamwar:spigot:1.18")
|
||||
library("nms19", "de.steamwar:spigot:1.19")
|
||||
library("nms20", "de.steamwar:spigot:1.20")
|
||||
|
||||
library("axiom", "de.steamwar:axiompaper:RELEASE")
|
||||
library("worldedit12", "de.steamwar:worldedit:1.12")
|
||||
library("worldedit15", "de.steamwar:worldedit:1.15")
|
||||
library("fawe18", "de.steamwar:fastasyncworldedit:1.18")
|
||||
|
||||
library("velocity", "de.steamwar:velocity:RELEASE")
|
||||
library("velocityapi", "com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
|
||||
library("apolloapi", "com.lunarclient:apollo-api:1.1.0")
|
||||
library("apollocommon", "com.lunarclient:apollo-common:1.1.0")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
include(
|
||||
"BauSystem",
|
||||
"BauSystem:BauSystem_15",
|
||||
"BauSystem:BauSystem_18",
|
||||
"BauSystem:BauSystem_19",
|
||||
"BauSystem:BauSystem_20",
|
||||
"BauSystem:BauSystem_Linkage",
|
||||
"BauSystem:BauSystem_Main"
|
||||
)
|
||||
|
||||
include("CommandFramework")
|
||||
|
||||
include("CommonCore")
|
||||
include("CommonCore:SQL")
|
||||
include("CommonCore:Linkage")
|
||||
include("CommonCore:Network")
|
||||
include(
|
||||
"CommonCore",
|
||||
"CommonCore:SQL",
|
||||
"CommonCore:Linkage",
|
||||
"CommonCore:Network"
|
||||
)
|
||||
|
||||
include("FightSystem")
|
||||
include("FightSystem:FightSystem_8")
|
||||
include("FightSystem:FightSystem_9")
|
||||
include("FightSystem:FightSystem_10")
|
||||
include("FightSystem:FightSystem_12")
|
||||
include("FightSystem:FightSystem_14")
|
||||
include("FightSystem:FightSystem_15")
|
||||
include("FightSystem:FightSystem_18")
|
||||
include("FightSystem:FightSystem_19")
|
||||
include("FightSystem:FightSystem_20")
|
||||
include("FightSystem:FightSystem_Core")
|
||||
include("FightSystem:FightSystem_Standalone")
|
||||
include(
|
||||
"FightSystem",
|
||||
"FightSystem:FightSystem_8",
|
||||
"FightSystem:FightSystem_9",
|
||||
"FightSystem:FightSystem_10",
|
||||
"FightSystem:FightSystem_12",
|
||||
"FightSystem:FightSystem_14",
|
||||
"FightSystem:FightSystem_15",
|
||||
"FightSystem:FightSystem_18",
|
||||
"FightSystem:FightSystem_19",
|
||||
"FightSystem:FightSystem_20",
|
||||
"FightSystem:FightSystem_Core",
|
||||
"FightSystem:FightSystem_Standalone"
|
||||
)
|
||||
|
||||
// include("KotlinCore")
|
||||
|
||||
@@ -55,23 +170,27 @@ include("MissileWars")
|
||||
|
||||
include("Realtime")
|
||||
|
||||
include("SchematicSystem")
|
||||
include("SchematicSystem:SchematicSystem_8")
|
||||
include("SchematicSystem:SchematicSystem_15")
|
||||
include("SchematicSystem:SchematicSystem_Core")
|
||||
include(
|
||||
"SchematicSystem",
|
||||
"SchematicSystem:SchematicSystem_8",
|
||||
"SchematicSystem:SchematicSystem_15",
|
||||
"SchematicSystem:SchematicSystem_Core"
|
||||
)
|
||||
|
||||
include("SpigotCore")
|
||||
include("SpigotCore:CRIUDummy")
|
||||
include("SpigotCore:SpigotCore_8")
|
||||
include("SpigotCore:SpigotCore_9")
|
||||
include("SpigotCore:SpigotCore_10")
|
||||
include("SpigotCore:SpigotCore_12")
|
||||
include("SpigotCore:SpigotCore_14")
|
||||
include("SpigotCore:SpigotCore_15")
|
||||
include("SpigotCore:SpigotCore_18")
|
||||
include("SpigotCore:SpigotCore_19")
|
||||
include("SpigotCore:SpigotCore_20")
|
||||
include("SpigotCore:SpigotCore_Main")
|
||||
include(
|
||||
"SpigotCore",
|
||||
"SpigotCore:CRIUDummy",
|
||||
"SpigotCore:SpigotCore_8",
|
||||
"SpigotCore:SpigotCore_9",
|
||||
"SpigotCore:SpigotCore_10",
|
||||
"SpigotCore:SpigotCore_12",
|
||||
"SpigotCore:SpigotCore_14",
|
||||
"SpigotCore:SpigotCore_15",
|
||||
"SpigotCore:SpigotCore_18",
|
||||
"SpigotCore:SpigotCore_19",
|
||||
"SpigotCore:SpigotCore_20",
|
||||
"SpigotCore:SpigotCore_Main"
|
||||
)
|
||||
|
||||
include("Teamserver")
|
||||
|
||||
@@ -79,5 +198,7 @@ include("TowerRun")
|
||||
|
||||
include("TutorialSystem")
|
||||
|
||||
include("VelocityCore")
|
||||
include("VelocityCore:Persistent")
|
||||
include(
|
||||
"VelocityCore",
|
||||
"VelocityCore:Persistent"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user