diff --git a/BauSystem/BauSystem_15/build.gradle.kts b/BauSystem/BauSystem_15/build.gradle.kts index ef9f7c38..46aaa27a 100644 --- a/BauSystem/BauSystem_15/build.gradle.kts +++ b/BauSystem/BauSystem_15/build.gradle.kts @@ -18,15 +18,7 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + steamwar.java } java { @@ -34,25 +26,10 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":BauSystem:BauSystem_Main")) compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.15") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.nms15) + compileOnly(libs.worldedit15) } diff --git a/BauSystem/BauSystem_18/build.gradle.kts b/BauSystem/BauSystem_18/build.gradle.kts index 8a449c9b..08a1a218 100644 --- a/BauSystem/BauSystem_18/build.gradle.kts +++ b/BauSystem/BauSystem_18/build.gradle.kts @@ -18,15 +18,7 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + steamwar.java } java { @@ -34,32 +26,10 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":BauSystem:BauSystem_Main")) compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.18") - compileOnly("de.steamwar:worldedit:1.15") - - compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT") - compileOnly("it.unimi.dsi:fastutil:8.5.6") - compileOnly("com.mojang:datafixerupper:4.0.26") - compileOnly("io.netty:netty-all:4.1.68.Final") - compileOnly("com.mojang:authlib:1.5.25") - compileOnly("com.mojang:brigadier:1.0.18") + compileOnly(libs.spigotapi) + compileOnly(libs.nms18) } diff --git a/BauSystem/BauSystem_19/build.gradle.kts b/BauSystem/BauSystem_19/build.gradle.kts index fd650279..f67105e7 100644 --- a/BauSystem/BauSystem_19/build.gradle.kts +++ b/BauSystem/BauSystem_19/build.gradle.kts @@ -18,15 +18,7 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + steamwar.java } java { @@ -34,33 +26,12 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":BauSystem:BauSystem_Main")) compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.19") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.spigotapi) + compileOnly(libs.paperapi) - compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT") - compileOnly("io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT") - compileOnly("it.unimi.dsi:fastutil:8.5.6") - compileOnly("com.mojang:datafixerupper:4.0.26") - compileOnly("io.netty:netty-all:4.1.68.Final") - compileOnly("com.mojang:authlib:1.5.25") - compileOnly("com.mojang:brigadier:1.0.18") + compileOnly(libs.nms19) } diff --git a/BauSystem/BauSystem_20/build.gradle.kts b/BauSystem/BauSystem_20/build.gradle.kts index 4a6b3d10..5ec08958 100644 --- a/BauSystem/BauSystem_20/build.gradle.kts +++ b/BauSystem/BauSystem_20/build.gradle.kts @@ -18,15 +18,7 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + steamwar.java } java { @@ -34,31 +26,11 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":BauSystem:BauSystem_Main")) compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.20") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") - compileOnly("it.unimi.dsi:fastutil:8.5.6") - compileOnly("com.mojang:datafixerupper:4.0.26") - compileOnly("io.netty:netty-all:4.1.68.Final") - compileOnly("com.mojang:authlib:1.5.25") - compileOnly("com.mojang:brigadier:1.0.18") + compileOnly(libs.nms20) } diff --git a/BauSystem/BauSystem_Linkage/build.gradle.kts b/BauSystem/BauSystem_Linkage/build.gradle.kts index aa5e1db0..8e924396 100644 --- a/BauSystem/BauSystem_Linkage/build.gradle.kts +++ b/BauSystem/BauSystem_Linkage/build.gradle.kts @@ -18,15 +18,7 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + steamwar.java } java { @@ -34,21 +26,6 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore")) } diff --git a/BauSystem/BauSystem_Main/build.gradle.kts b/BauSystem/BauSystem_Main/build.gradle.kts index fcb3ee1f..2b694df6 100644 --- a/BauSystem/BauSystem_Main/build.gradle.kts +++ b/BauSystem/BauSystem_Main/build.gradle.kts @@ -18,15 +18,10 @@ */ plugins { - id("java") - id("base") + steamwar.java } -group = "de.steamwar" -version = "" - tasks.compileJava { - options.encoding = "UTF-8" options.isWarnings = false options.compilerArgs.add("-AprojectDir=$projectDir") } @@ -36,34 +31,19 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/", "build/generated/sources/annotationProcessor/java/main/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") + annotationProcessor(project(":BauSystem:BauSystem_Linkage")) + annotationProcessor(project(":SpigotCore")) + compileOnly(project(":SpigotCore")) + + compileOnly(libs.spigotapi) + compileOnly(libs.axiom) + compileOnly(libs.authlib) + + compileOnly(libs.nms20) + compileOnly(libs.fawe18) implementation(project(":BauSystem:BauSystem_Linkage")) - annotationProcessor(project(":BauSystem:BauSystem_Linkage")) - compileOnly(project(":SpigotCore")) - annotationProcessor(project(":SpigotCore")) - - compileOnly("de.steamwar:spigot:1.20") - compileOnly("de.steamwar:fastasyncworldedit:1.18") - compileOnly("de.steamwar:axiompaper:RELEASE") - - implementation("org.luaj:luaj-jse:3.0.1") + implementation(libs.luaj) implementation(files("$projectDir/../libs/YAPION-SNAPSHOT.jar")) - compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") - compileOnly("com.mojang:authlib:1.5.25") - compileOnly("io.netty:netty-all:4.1.68.Final") } diff --git a/BauSystem/build.gradle.kts b/BauSystem/build.gradle.kts index ff8fbe89..55df7b50 100644 --- a/BauSystem/build.gradle.kts +++ b/BauSystem/build.gradle.kts @@ -18,32 +18,15 @@ */ plugins { - id("base") - id("java-library") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + `java-library` + alias(libs.plugins.shadow) } tasks.build { finalizedBy(tasks.shadowJar) } -java { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - implementation(project(":BauSystem:BauSystem_Main")) implementation(project(":BauSystem:BauSystem_15")) implementation(project(":BauSystem:BauSystem_18")) diff --git a/CommandFramework/build.gradle.kts b/CommandFramework/build.gradle.kts index 825b7a0f..61fbf34e 100644 --- a/CommandFramework/build.gradle.kts +++ b/CommandFramework/build.gradle.kts @@ -18,49 +18,10 @@ */ plugins { - id("base") - id("java") -} - -group = "de.steamwar" -version = "" - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -tasks.compileJava { - options.encoding = "UTF-8" -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } - test { - java { - srcDirs("testsrc/") - } - resources { - srcDirs("testsrc/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - testCompileOnly("org.projectlombok:lombok:1.18.32") - testAnnotationProcessor("org.projectlombok:lombok:1.18.32") - - testImplementation("junit:junit:4.13.2") - testImplementation("org.hamcrest:hamcrest:2.2") + testImplementation(libs.junit) + testImplementation(libs.hamcrest) } \ No newline at end of file diff --git a/CommonCore/Linkage/build.gradle.kts b/CommonCore/Linkage/build.gradle.kts index 2d896c53..ac86c4ce 100644 --- a/CommonCore/Linkage/build.gradle.kts +++ b/CommonCore/Linkage/build.gradle.kts @@ -1,20 +1,27 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + plugins { - id("java") + steamwar.java } -group = "de.steamwar" -version = "" - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -tasks.compileJava { - options.encoding = "UTF-8" -} - -tasks.create("buildResources") { +tasks.register("buildResources") { doLast { val to = File("$projectDir/build/classes/java/main/META-INF/services/javax.annotation.processing.Processor") to.parentFile.mkdirs() @@ -27,23 +34,4 @@ tasks.create("buildResources") { tasks.classes { finalizedBy("buildResources") -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - -dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - testCompileOnly("org.projectlombok:lombok:1.18.32") - testAnnotationProcessor("org.projectlombok:lombok:1.18.32") } \ No newline at end of file diff --git a/CommonCore/Network/build.gradle.kts b/CommonCore/Network/build.gradle.kts index f7845319..b633ca63 100644 --- a/CommonCore/Network/build.gradle.kts +++ b/CommonCore/Network/build.gradle.kts @@ -1,46 +1,27 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + plugins { - id("java") -} - -group = "de.steamwar" -version = "" - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -tasks.compileJava { - options.encoding = "UTF-8" -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } - test { - java { - srcDirs("testsrc/") - } - resources { - srcDirs("testsrc/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - testCompileOnly("org.projectlombok:lombok:1.18.32") - testAnnotationProcessor("org.projectlombok:lombok:1.18.32") - - testImplementation("junit:junit:4.13.2") - testImplementation("org.hamcrest:hamcrest:2.2") + testImplementation(libs.junit) + testImplementation(libs.hamcrest) } \ No newline at end of file diff --git a/CommonCore/SQL/build.gradle.kts b/CommonCore/SQL/build.gradle.kts index 7f627c74..567bd92f 100644 --- a/CommonCore/SQL/build.gradle.kts +++ b/CommonCore/SQL/build.gradle.kts @@ -1,34 +1,26 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + plugins { - id("java") -} - -group = "de.steamwar" -version = "" - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -tasks.compileJava { - options.encoding = "UTF-8" -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - testCompileOnly("org.projectlombok:lombok:1.18.32") - testAnnotationProcessor("org.projectlombok:lombok:1.18.32") + compileOnly(libs.sqlite) } \ No newline at end of file diff --git a/CommonCore/build.gradle.kts b/CommonCore/build.gradle.kts index 170f4045..b6ca5861 100644 --- a/CommonCore/build.gradle.kts +++ b/CommonCore/build.gradle.kts @@ -18,33 +18,10 @@ */ plugins { - id("base") - id("java-library") -} - -group = "de.steamwar" -version = "" - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -tasks.compileJava { - options.encoding = "UTF-8" -} - -sourceSets { + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - testCompileOnly("org.projectlombok:lombok:1.18.32") - testAnnotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly("org.xerial:sqlite-jdbc:3.46.0.0") - api(project(":CommonCore:SQL")) api(project(":CommonCore:Linkage")) api(project(":CommonCore:Network")) diff --git a/FightSystem/FightSystem_10/build.gradle.kts b/FightSystem/FightSystem_10/build.gradle.kts index dfab54e2..882668ff 100644 --- a/FightSystem/FightSystem_10/build.gradle.kts +++ b/FightSystem/FightSystem_10/build.gradle.kts @@ -18,41 +18,12 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":SpigotCore")) + compileOnly(project(":FightSystem:FightSystem_Core")) - compileOnly("de.steamwar:spigot:1.10") - compileOnly("de.steamwar:worldedit:1.12") + compileOnly(libs.nms10) } diff --git a/FightSystem/FightSystem_12/build.gradle.kts b/FightSystem/FightSystem_12/build.gradle.kts index e64720ce..c172455a 100644 --- a/FightSystem/FightSystem_12/build.gradle.kts +++ b/FightSystem/FightSystem_12/build.gradle.kts @@ -18,42 +18,14 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - + compileOnly(project(":SpigotCore")) compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":FightSystem:FightSystem_8")) - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.12") - compileOnly("de.steamwar:worldedit:1.12") + compileOnly(libs.nms12) + compileOnly(libs.worldedit12) } diff --git a/FightSystem/FightSystem_14/build.gradle.kts b/FightSystem/FightSystem_14/build.gradle.kts index 16e779aa..2c8e52d5 100644 --- a/FightSystem/FightSystem_14/build.gradle.kts +++ b/FightSystem/FightSystem_14/build.gradle.kts @@ -18,45 +18,17 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - + compileOnly(project(":SpigotCore")) compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":FightSystem:FightSystem_8")) compileOnly(project(":FightSystem:FightSystem_9")) - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.14") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.nms14) + compileOnly(libs.worldedit15) - compileOnly("it.unimi.dsi:fastutil:8.5.6") + compileOnly(libs.fastutil) } diff --git a/FightSystem/FightSystem_15/build.gradle.kts b/FightSystem/FightSystem_15/build.gradle.kts index b321f1b6..c1556233 100644 --- a/FightSystem/FightSystem_15/build.gradle.kts +++ b/FightSystem/FightSystem_15/build.gradle.kts @@ -18,41 +18,13 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":SpigotCore")) + compileOnly(project(":FightSystem:FightSystem_Core")) - compileOnly("de.steamwar:spigot:1.15") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.nms15) + compileOnly(libs.worldedit15) } diff --git a/FightSystem/FightSystem_18/build.gradle.kts b/FightSystem/FightSystem_18/build.gradle.kts index 604c7354..c6a938e0 100644 --- a/FightSystem/FightSystem_18/build.gradle.kts +++ b/FightSystem/FightSystem_18/build.gradle.kts @@ -18,47 +18,17 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":SpigotCore")) + compileOnly(project(":FightSystem:FightSystem_Core")) - compileOnly("de.steamwar:fastasyncworldedit:1.18") - compileOnly("de.steamwar:spigot:1.18") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT") - compileOnly("com.mojang:datafixerupper:4.0.26") - compileOnly("io.netty:netty-all:4.1.68.Final") - compileOnly("com.mojang:authlib:1.5.25") - compileOnly("it.unimi.dsi:fastutil:8.5.6") + compileOnly(libs.nms18) + compileOnly(libs.fawe18) + + compileOnly(libs.fastutil) } diff --git a/FightSystem/FightSystem_19/build.gradle.kts b/FightSystem/FightSystem_19/build.gradle.kts index b3475ff2..0dc7a095 100644 --- a/FightSystem/FightSystem_19/build.gradle.kts +++ b/FightSystem/FightSystem_19/build.gradle.kts @@ -18,47 +18,14 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":FightSystem:FightSystem_18")) - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:worldedit:1.15") - compileOnly("de.steamwar:spigot:1.19") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT") - compileOnly("com.mojang:brigadier:1.0.18") - compileOnly("com.mojang:datafixerupper:4.0.26") - compileOnly("com.mojang:authlib:1.5.25") + compileOnly(libs.nms19) } diff --git a/FightSystem/FightSystem_20/build.gradle.kts b/FightSystem/FightSystem_20/build.gradle.kts index 51b0862f..99c4a656 100644 --- a/FightSystem/FightSystem_20/build.gradle.kts +++ b/FightSystem/FightSystem_20/build.gradle.kts @@ -18,43 +18,16 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":FightSystem:FightSystem_18")) - compileOnly("de.steamwar:spigot:1.20") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") - compileOnly("it.unimi.dsi:fastutil:8.5.6") + compileOnly(libs.nms20) + + compileOnly(libs.fastutil) } diff --git a/FightSystem/FightSystem_8/build.gradle.kts b/FightSystem/FightSystem_8/build.gradle.kts index c316418d..d98e4045 100644 --- a/FightSystem/FightSystem_8/build.gradle.kts +++ b/FightSystem/FightSystem_8/build.gradle.kts @@ -18,41 +18,13 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":SpigotCore")) + compileOnly(project(":FightSystem:FightSystem_Core")) - compileOnly("de.steamwar:spigot:1.8") - compileOnly("de.steamwar:worldedit:1.12") + compileOnly(libs.nms8) + compileOnly(libs.worldedit12) } diff --git a/FightSystem/FightSystem_9/build.gradle.kts b/FightSystem/FightSystem_9/build.gradle.kts index 8e018b08..21c34e22 100644 --- a/FightSystem/FightSystem_9/build.gradle.kts +++ b/FightSystem/FightSystem_9/build.gradle.kts @@ -18,42 +18,13 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - + compileOnly(project(":SpigotCore")) compileOnly(project(":FightSystem:FightSystem_Core")) compileOnly(project(":FightSystem:FightSystem_8")) - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.9") - compileOnly("de.steamwar:worldedit:1.12") + compileOnly(libs.nms9) } diff --git a/FightSystem/FightSystem_Core/build.gradle.kts b/FightSystem/FightSystem_Core/build.gradle.kts index 188af1d3..8b1d5ece 100644 --- a/FightSystem/FightSystem_Core/build.gradle.kts +++ b/FightSystem/FightSystem_Core/build.gradle.kts @@ -18,44 +18,15 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT") - compileOnly("it.unimi.dsi:fastutil:8.5.6") - compileOnly("io.netty:netty-all:4.1.68.Final") - compileOnly("com.mojang:authlib:1.5.25") + compileOnly(libs.worldedit15) + compileOnly(libs.fastutil) + compileOnly(libs.authlib) } diff --git a/FightSystem/FightSystem_Standalone/build.gradle.kts b/FightSystem/FightSystem_Standalone/build.gradle.kts index 1ac6fcd6..97e19a53 100644 --- a/FightSystem/FightSystem_Standalone/build.gradle.kts +++ b/FightSystem/FightSystem_Standalone/build.gradle.kts @@ -18,39 +18,16 @@ */ plugins { - id("java") - id("base") - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + `java-library` + alias(libs.plugins.shadow) } tasks.build { finalizedBy(tasks.shadowJar) } -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs() - } - resources { - srcDirs() - } - } -} - dependencies { + implementation(project(":SpigotCore")) implementation(project(":FightSystem:FightSystem_Core")) implementation(project(":FightSystem:FightSystem_8")) implementation(project(":FightSystem:FightSystem_9")) @@ -61,5 +38,4 @@ dependencies { implementation(project(":FightSystem:FightSystem_18")) implementation(project(":FightSystem:FightSystem_19")) implementation(project(":FightSystem:FightSystem_20")) - implementation(project(":SpigotCore")) } diff --git a/FightSystem/build.gradle.kts b/FightSystem/build.gradle.kts index 016e0832..3f367461 100644 --- a/FightSystem/build.gradle.kts +++ b/FightSystem/build.gradle.kts @@ -18,32 +18,15 @@ */ plugins { - id("base") - id("java") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + `java-library` + alias(libs.plugins.shadow) } tasks.build { finalizedBy(tasks.shadowJar) } -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - implementation(project(":FightSystem:FightSystem_Core")) implementation(project(":FightSystem:FightSystem_8")) implementation(project(":FightSystem:FightSystem_9")) diff --git a/LobbySystem/build.gradle.kts b/LobbySystem/build.gradle.kts index 02a73986..3ad7a776 100644 --- a/LobbySystem/build.gradle.kts +++ b/LobbySystem/build.gradle.kts @@ -18,21 +18,7 @@ */ plugins { - id("java") - id("base") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -tasks.build { - finalizedBy(tasks.shadowJar) + steamwar.java } java { @@ -40,26 +26,11 @@ java { targetCompatibility = JavaVersion.VERSION_11 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.20") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") + compileOnly(libs.nms20) + compileOnly(libs.worldedit15) } diff --git a/MissileWars/build.gradle.kts b/MissileWars/build.gradle.kts index 38432228..755e1c46 100644 --- a/MissileWars/build.gradle.kts +++ b/MissileWars/build.gradle.kts @@ -18,21 +18,7 @@ */ plugins { - id("java") - id("base") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -tasks.build { - finalizedBy(tasks.shadowJar) + steamwar.java } java { @@ -40,26 +26,11 @@ java { targetCompatibility = JavaVersion.VERSION_11 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.20") - compileOnly("de.steamwar:fastasyncworldedit:1.18") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") + compileOnly(libs.nms20) + compileOnly(libs.fawe18) } diff --git a/Realtime/build.gradle.kts b/Realtime/build.gradle.kts index 0fdc717b..ebde1d0a 100644 --- a/Realtime/build.gradle.kts +++ b/Realtime/build.gradle.kts @@ -18,43 +18,9 @@ */ plugins { - id("java") - id("base") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -tasks.build { - finalizedBy(tasks.shadowJar) -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT") + compileOnly(libs.spigotapi) } diff --git a/SchematicSystem/SchematicSystem_15/build.gradle.kts b/SchematicSystem/SchematicSystem_15/build.gradle.kts index 261c40bd..bfb78f90 100644 --- a/SchematicSystem/SchematicSystem_15/build.gradle.kts +++ b/SchematicSystem/SchematicSystem_15/build.gradle.kts @@ -18,41 +18,13 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly(project(":SchematicSystem:SchematicSystem_Core")) compileOnly(project(":SpigotCore")) + compileOnly(project(":SchematicSystem:SchematicSystem_Core")) - compileOnly("de.steamwar:spigot:1.15") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.nms15) + compileOnly(libs.worldedit15) } diff --git a/SchematicSystem/SchematicSystem_8/build.gradle.kts b/SchematicSystem/SchematicSystem_8/build.gradle.kts index 14652dc6..f0e3ade3 100644 --- a/SchematicSystem/SchematicSystem_8/build.gradle.kts +++ b/SchematicSystem/SchematicSystem_8/build.gradle.kts @@ -18,41 +18,13 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly(project(":SchematicSystem:SchematicSystem_Core")) compileOnly(project(":SpigotCore")) + compileOnly(project(":SchematicSystem:SchematicSystem_Core")) - compileOnly("de.steamwar:spigot:1.8") - compileOnly("de.steamwar:worldedit:1.12") + compileOnly(libs.nms8) + compileOnly(libs.worldedit12) } diff --git a/SchematicSystem/SchematicSystem_Core/build.gradle.kts b/SchematicSystem/SchematicSystem_Core/build.gradle.kts index f833cb0f..3c08c5d2 100644 --- a/SchematicSystem/SchematicSystem_Core/build.gradle.kts +++ b/SchematicSystem/SchematicSystem_Core/build.gradle.kts @@ -18,40 +18,12 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.15") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.spigotapi) + compileOnly(libs.worldedit15) } diff --git a/SchematicSystem/build.gradle.kts b/SchematicSystem/build.gradle.kts index 0c2b5ae6..2c9ef365 100644 --- a/SchematicSystem/build.gradle.kts +++ b/SchematicSystem/build.gradle.kts @@ -18,32 +18,15 @@ */ plugins { - id("java") - id("base") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + `java-library` + alias(libs.plugins.shadow) } tasks.build { finalizedBy(tasks.shadowJar) } -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - implementation(project(":SchematicSystem:SchematicSystem_Core")) implementation(project(":SchematicSystem:SchematicSystem_8")) implementation(project(":SchematicSystem:SchematicSystem_15")) diff --git a/SpigotCore/CRIUDummy/build.gradle.kts b/SpigotCore/CRIUDummy/build.gradle.kts index 93545c5a..d8a1521e 100644 --- a/SpigotCore/CRIUDummy/build.gradle.kts +++ b/SpigotCore/CRIUDummy/build.gradle.kts @@ -18,28 +18,5 @@ */ plugins { - id("java") -} - -group = "de.steamwar" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } \ No newline at end of file diff --git a/SpigotCore/SpigotCore_10/build.gradle.kts b/SpigotCore/SpigotCore_10/build.gradle.kts index 145b04d3..38bce259 100644 --- a/SpigotCore/SpigotCore_10/build.gradle.kts +++ b/SpigotCore/SpigotCore_10/build.gradle.kts @@ -18,39 +18,11 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore:SpigotCore_Main")) - compileOnly("de.steamwar:spigot:1.10") + compileOnly(libs.nms10) } diff --git a/SpigotCore/SpigotCore_12/build.gradle.kts b/SpigotCore/SpigotCore_12/build.gradle.kts index 976aa202..a4c6acd3 100644 --- a/SpigotCore/SpigotCore_12/build.gradle.kts +++ b/SpigotCore/SpigotCore_12/build.gradle.kts @@ -18,40 +18,12 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly(project(":SpigotCore:SpigotCore_Main")) compileOnly(project(":CommonCore")) + compileOnly(project(":SpigotCore:SpigotCore_Main")) - compileOnly("de.steamwar:spigot:1.12") + compileOnly(libs.nms12) } diff --git a/SpigotCore/SpigotCore_14/build.gradle.kts b/SpigotCore/SpigotCore_14/build.gradle.kts index 49b7ef24..8586caeb 100644 --- a/SpigotCore/SpigotCore_14/build.gradle.kts +++ b/SpigotCore/SpigotCore_14/build.gradle.kts @@ -18,43 +18,15 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - + compileOnly(project(":CommonCore")) compileOnly(project(":SpigotCore:SpigotCore_Main")) compileOnly(project(":SpigotCore:SpigotCore_8")) compileOnly(project(":SpigotCore:SpigotCore_9")) - compileOnly(project(":CommonCore")) - compileOnly("de.steamwar:spigot:1.14") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.nms14) + compileOnly(libs.worldedit15) } diff --git a/SpigotCore/SpigotCore_15/build.gradle.kts b/SpigotCore/SpigotCore_15/build.gradle.kts index 9ff92f83..b637545e 100644 --- a/SpigotCore/SpigotCore_15/build.gradle.kts +++ b/SpigotCore/SpigotCore_15/build.gradle.kts @@ -18,39 +18,11 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore:SpigotCore_Main")) - compileOnly("de.steamwar:spigot:1.15") + compileOnly(libs.nms15) } diff --git a/SpigotCore/SpigotCore_18/build.gradle.kts b/SpigotCore/SpigotCore_18/build.gradle.kts index 211b29f4..b27c3aed 100644 --- a/SpigotCore/SpigotCore_18/build.gradle.kts +++ b/SpigotCore/SpigotCore_18/build.gradle.kts @@ -18,48 +18,23 @@ */ plugins { - id("java") - id("base") + steamwar.java } -group = "de.steamwar" -version = "" - tasks.compileJava { - options.encoding = "UTF-8" options.isWarnings = false } -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - + compileOnly(project(":CommonCore")) compileOnly(project(":SpigotCore:SpigotCore_Main")) compileOnly(project(":SpigotCore:SpigotCore_14")) - compileOnly(project(":CommonCore")) - compileOnly("de.steamwar:fastasyncworldedit:1.18") - compileOnly("de.steamwar:spigot:1.18") + compileOnly(libs.spigotapi) + compileOnly(libs.nms18) + compileOnly(libs.fawe18) - compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT") - compileOnly("com.mojang:datafixerupper:4.0.26") - compileOnly("io.netty:netty-all:4.1.68.Final") - compileOnly("com.mojang:authlib:1.5.25") + compileOnly(libs.datafixer) + compileOnly(libs.netty) + compileOnly(libs.authlib) } diff --git a/SpigotCore/SpigotCore_19/build.gradle.kts b/SpigotCore/SpigotCore_19/build.gradle.kts index 2363a872..da876e7e 100644 --- a/SpigotCore/SpigotCore_19/build.gradle.kts +++ b/SpigotCore/SpigotCore_19/build.gradle.kts @@ -18,47 +18,19 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore:SpigotCore_Main")) compileOnly(project(":SpigotCore:SpigotCore_14")) compileOnly(project(":SpigotCore:SpigotCore_18")) - compileOnly("de.steamwar:worldedit:1.15") - compileOnly("de.steamwar:spigot:1.19") + compileOnly(libs.worldedit15) + compileOnly(libs.nms19) - compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT") - compileOnly("com.mojang:brigadier:1.0.18") - compileOnly("com.mojang:datafixerupper:4.0.26") - compileOnly("com.mojang:authlib:1.5.25") + compileOnly(libs.spigotapi) + compileOnly(libs.brigadier) + compileOnly(libs.datafixer) + compileOnly(libs.authlib) } diff --git a/SpigotCore/SpigotCore_20/build.gradle.kts b/SpigotCore/SpigotCore_20/build.gradle.kts index 671ab444..a2a54c32 100644 --- a/SpigotCore/SpigotCore_20/build.gradle.kts +++ b/SpigotCore/SpigotCore_20/build.gradle.kts @@ -18,41 +18,13 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore:SpigotCore_Main")) - compileOnly("de.steamwar:spigot:1.20") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") + compileOnly(libs.nms20) } diff --git a/SpigotCore/SpigotCore_8/build.gradle.kts b/SpigotCore/SpigotCore_8/build.gradle.kts index aeb7077e..0ec4a191 100644 --- a/SpigotCore/SpigotCore_8/build.gradle.kts +++ b/SpigotCore/SpigotCore_8/build.gradle.kts @@ -18,41 +18,13 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly(project(":SpigotCore:SpigotCore_Main")) compileOnly(project(":CommonCore")) + compileOnly(project(":SpigotCore:SpigotCore_Main")) - compileOnly("de.steamwar:spigot:1.8") - compileOnly("de.steamwar:worldedit:1.12") + compileOnly(libs.nms8) + compileOnly(libs.worldedit12) } diff --git a/SpigotCore/SpigotCore_9/build.gradle.kts b/SpigotCore/SpigotCore_9/build.gradle.kts index 55c33eb8..31209477 100644 --- a/SpigotCore/SpigotCore_9/build.gradle.kts +++ b/SpigotCore/SpigotCore_9/build.gradle.kts @@ -18,42 +18,14 @@ */ plugins { - id("java") - id("base") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore:SpigotCore_Main")) compileOnly(project(":SpigotCore:SpigotCore_8")) - compileOnly("de.steamwar:spigot:1.9") + compileOnly(libs.nms9) - compileOnly("com.viaversion:viaversion-api:4.3.1") + compileOnly(libs.viaapi) } diff --git a/SpigotCore/SpigotCore_Main/build.gradle.kts b/SpigotCore/SpigotCore_Main/build.gradle.kts index 60e38095..c70479e5 100644 --- a/SpigotCore/SpigotCore_Main/build.gradle.kts +++ b/SpigotCore/SpigotCore_Main/build.gradle.kts @@ -18,55 +18,25 @@ */ plugins { - id("java") - id("base") + steamwar.java } -group = "de.steamwar" -version = "" - tasks.compileJava { - options.encoding = "UTF-8" options.isWarnings = false } -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":CommonCore")) compileOnly(project(":CommandFramework")) + compileOnly(project(":SpigotCore:CRIUDummy")) - compileOnly("de.steamwar:worldedit:1.12") + compileOnly(libs.worldedit12) - compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT") - compileOnly("io.netty:netty-all:4.1.68.Final") - compileOnly("com.mojang:authlib:1.5.25") - compileOnly("mysql:mysql-connector-java:5.1.49") - compileOnly("com.viaversion:viaversion-api:4.3.1") - compileOnly("it.unimi.dsi:fastutil:8.5.6") - implementation("net.wesjd:anvilgui:1.7.0-SNAPSHOT") + compileOnly(libs.spigotapi) + compileOnly(libs.netty) + compileOnly(libs.authlib) + compileOnly(libs.viaapi) + compileOnly(libs.fastutil) - try { - Class.forName("org.eclipse.openj9.criu.CRIUSupport") - } catch (e: ClassNotFoundException) { - compileOnly(project(":SpigotCore:CRIUDummy")) - } + implementation(libs.anvilgui) } diff --git a/SpigotCore/build.gradle.kts b/SpigotCore/build.gradle.kts index 61618228..3838522b 100644 --- a/SpigotCore/build.gradle.kts +++ b/SpigotCore/build.gradle.kts @@ -18,46 +18,26 @@ */ plugins { - id("base") - id("java-library") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" + `java-library` + alias(libs.plugins.shadow) } tasks.build { finalizedBy(tasks.shadowJar) } -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - api(project(":SpigotCore:SpigotCore_Main")) - api(project(":SpigotCore:SpigotCore_8")) - api(project(":SpigotCore:SpigotCore_9")) - api(project(":SpigotCore:SpigotCore_10")) - api(project(":SpigotCore:SpigotCore_12")) - api(project(":SpigotCore:SpigotCore_14")) - api(project(":SpigotCore:SpigotCore_15")) - api(project(":SpigotCore:SpigotCore_18")) - api(project(":SpigotCore:SpigotCore_19")) - api(project(":SpigotCore:SpigotCore_20")) - api(project(":CommonCore")) api(project(":CommandFramework")) + api(project(":SpigotCore:SpigotCore_Main")) + + implementation(project(":SpigotCore:SpigotCore_8")) + implementation(project(":SpigotCore:SpigotCore_9")) + implementation(project(":SpigotCore:SpigotCore_10")) + implementation(project(":SpigotCore:SpigotCore_12")) + implementation(project(":SpigotCore:SpigotCore_14")) + implementation(project(":SpigotCore:SpigotCore_15")) + implementation(project(":SpigotCore:SpigotCore_18")) + implementation(project(":SpigotCore:SpigotCore_19")) + implementation(project(":SpigotCore:SpigotCore_20")) } diff --git a/Teamserver/build.gradle.kts b/Teamserver/build.gradle.kts index eb1b15fc..a2b2a4bb 100644 --- a/Teamserver/build.gradle.kts +++ b/Teamserver/build.gradle.kts @@ -18,48 +18,14 @@ */ plugins { - id("java") - id("base") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -tasks.build { - finalizedBy(tasks.shadowJar) -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:worldedit:1.15") - compileOnly("de.steamwar:axiompaper:RELEASE") + compileOnly(libs.spigotapi) - compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT") + compileOnly(libs.worldedit15) + compileOnly(libs.axiom) } diff --git a/TowerRun/build.gradle.kts b/TowerRun/build.gradle.kts index fcecdfeb..ad7532f4 100644 --- a/TowerRun/build.gradle.kts +++ b/TowerRun/build.gradle.kts @@ -18,21 +18,7 @@ */ plugins { - id("java") - id("base") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -tasks.build { - finalizedBy(tasks.shadowJar) + steamwar.java } java { @@ -40,28 +26,14 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly("org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT") - annotationProcessor("org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT") + annotationProcessor(libs.spigotannotations) + compileOnly(libs.spigotannotations) compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.19") - compileOnly("de.steamwar:worldedit:1.15") + compileOnly(libs.nms19) + compileOnly(libs.worldedit15) - compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT") + compileOnly(libs.spigotapi) } diff --git a/TutorialSystem/build.gradle.kts b/TutorialSystem/build.gradle.kts index 34f36246..4b7a557a 100644 --- a/TutorialSystem/build.gradle.kts +++ b/TutorialSystem/build.gradle.kts @@ -18,45 +18,11 @@ */ plugins { - id("java") - id("base") - - id("com.github.johnrengelman.shadow") -} - -group = "de.steamwar" -version = "" - -tasks.compileJava { - options.encoding = "UTF-8" -} - -tasks.build { - finalizedBy(tasks.shadowJar) -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } + steamwar.java } dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - compileOnly(project(":SpigotCore")) - compileOnly("de.steamwar:spigot:1.15") + compileOnly(libs.nms15) } diff --git a/VelocityCore/Persistent/build.gradle.kts b/VelocityCore/Persistent/build.gradle.kts index f0c37802..a65d414a 100644 --- a/VelocityCore/Persistent/build.gradle.kts +++ b/VelocityCore/Persistent/build.gradle.kts @@ -18,13 +18,7 @@ */ plugins { - id("java") -} - -group = "de.steamwar" - -tasks.compileJava { - options.encoding = "UTF-8" + steamwar.java } java { @@ -32,22 +26,7 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") - - compileOnly("de.steamwar:velocity:RELEASE") - annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT") + compileOnly(libs.velocity) + annotationProcessor(libs.velocityapi) } \ No newline at end of file diff --git a/VelocityCore/build.gradle.kts b/VelocityCore/build.gradle.kts index 0b5d2f8e..2255dc08 100644 --- a/VelocityCore/build.gradle.kts +++ b/VelocityCore/build.gradle.kts @@ -18,12 +18,10 @@ */ plugins { - id("java") - id("com.github.johnrengelman.shadow") + steamwar.java + alias(libs.plugins.shadow) } -group = "de.steamwar" - tasks.shadowJar { exclude("META-INF/*") exclude("org/sqlite/native/FreeBSD/**', 'org/sqlite/native/Mac/**', 'org/sqlite/native/Windows/**', 'org/sqlite/native/Linux-Android/**', 'org/sqlite/native/Linux-Musl/**") @@ -41,48 +39,29 @@ tasks.build { finalizedBy(tasks.shadowJar) } -tasks.compileJava { - options.encoding = "UTF-8" -} - java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } -sourceSets { - main { - java { - srcDirs("src/") - } - resources { - srcDirs("src/") - exclude("**/*.java", "**/*.kt") - } - } -} - dependencies { - compileOnly("org.projectlombok:lombok:1.18.32") - annotationProcessor("org.projectlombok:lombok:1.18.32") + annotationProcessor(libs.velocityapi) + compileOnly(libs.velocity) - annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT") - compileOnly("de.steamwar:velocity:RELEASE") + compileOnly(project(":VelocityCore:Persistent")) implementation(project(":CommonCore")) implementation(project(":CommandFramework")) - compileOnly(project(":VelocityCore:Persistent")) + implementation(libs.sqlite) + implementation(libs.mysql) - implementation("org.xerial:sqlite-jdbc:3.46.0.0") - implementation("mysql:mysql-connector-java:8.0.33") - - implementation("net.dv8tion:JDA:4.4.0_352") { + implementation(libs.jda) { exclude(module = "opus-java") } - implementation("org.msgpack:msgpack-core:0.9.8") + implementation(libs.msgpack) - implementation("com.lunarclient:apollo-api:1.1.0") - implementation("com.lunarclient:apollo-common:1.1.0") + implementation(libs.apolloapi) + implementation(libs.apollocommon) } \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index e5070caf..21b9838c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,97 +17,11 @@ * along with this program. If not, see . */ -import org.codehaus.plexus.util.Os -import java.net.URI -import java.util.Properties - -/* - * This file is a part of the SteamWar software. - * - * Copyright (C) 2024 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 . - */ - plugins { - id("base") - id("application") - - id("com.github.johnrengelman.shadow") version "8.1.1" apply false + base } -group = "de.steamwar" -version = "" - -private val isInCi by lazy { Os.isFamily(Os.FAMILY_UNIX) && ProcessBuilder("hostname").start().inputStream.bufferedReader().readText().startsWith("steamwar.de") } - allprojects { - 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(rootProject.file("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/") - } - } -} - -sourceSets { + group = "de.steamwar" + version = "" } diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle new file mode 100644 index 00000000..b457102f --- /dev/null +++ b/buildSrc/build.gradle @@ -0,0 +1,30 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + +plugins { + id 'groovy-gradle-plugin' +} + +sourceSets { + main { + groovy { + srcDirs("src/") + } + } +} \ No newline at end of file diff --git a/buildSrc/src/steamwar.java.gradle b/buildSrc/src/steamwar.java.gradle new file mode 100644 index 00000000..c78ab55a --- /dev/null +++ b/buildSrc/src/steamwar.java.gradle @@ -0,0 +1,59 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2024 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 . + */ + +plugins { + id 'java-library' +} + +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} + +tasks.compileJava { + options.encoding "UTF-8" +} + +sourceSets { + main { + java { + srcDirs("src/", "build/generated/sources/annotationProcessor/java/main/") //TODO remove generated when LinkageUtils removed + } + resources { + srcDirs("src/") + exclude("**/*.java", "**/*.kt") + } + } + test { + java { + srcDirs("testsrc/") + } + resources { + srcDirs("testsrc/") + exclude("**/*.java", "**/*.kt") + } + } +} + +dependencies { + annotationProcessor libs.lombok + compileOnly libs.lombok + testCompileOnly libs.lombok + testAnnotationProcessor libs.lombok +} \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index ebb1ddb1..7c6f3c84 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -17,35 +17,150 @@ * along with this program. If not, see . */ +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" +) diff --git a/steamwarci.yml b/steamwarci.yml index 9a0811a4..c2769abd 100644 --- a/steamwarci.yml +++ b/steamwarci.yml @@ -1,7 +1,5 @@ -setup: [] - build: - - "JAVA_HOME=/usr/lib/jvm/java-17-openj9-amd64 ./gradlew build --no-daemon" + - "./gradlew build --no-daemon" artifacts: "/binarys/bausystem2.0.jar": "BauSystem/build/libs/BauSystem-all.jar" @@ -11,21 +9,21 @@ artifacts: # KotlinCore !! - "/binarys/lobbysystem2.0.jar": "LobbySystem/build/libs/LobbySystem-all.jar" + "/binarys/lobbysystem2.0.jar": "LobbySystem/build/libs/LobbySystem.jar" - "/binarys/missilewars.jar": "MissileWars/build/libs/MissileWars-all.jar" + "/binarys/missilewars.jar": "MissileWars/build/libs/MissileWars.jar" - "/binarys/realtime.jar": "Realtime/build/libs/Realtime-all.jar" + "/binarys/realtime.jar": "Realtime/build/libs/Realtime.jar" "/binarys/schematicsystem.jar": "SchematicSystem/build/libs/SchematicSystem-all.jar" "/binarys/spigotcore.jar": "SpigotCore/build/libs/SpigotCore-all.jar" - "/binarys/Builder.jar": "Teamserver/build/libs/Teamserver-all.jar" + "/binarys/Builder.jar": "Teamserver/build/libs/Teamserver.jar" - "/binarys/towerrun.jar": "TowerRun/build/libs/TowerRun-all.jar" + "/binarys/towerrun.jar": "TowerRun/build/libs/TowerRun.jar" - "/binarys/tutorialsystem.jar": "TutorialSystem/build/libs/TutorialSystem-all.jar" + "/binarys/tutorialsystem.jar": "TutorialSystem/build/libs/TutorialSystem.jar" "/binarys/PersistentVelocityCore.jar": "VelocityCore/Persistent/build/libs/Persistent.jar" "/binarys/VelocityCore.jar": "VelocityCore/build/libs/VelocityCore-all.jar"