From 410a48fd2c4d3ad01171a1f31a0bf01d25341889 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 1 Jun 2024 14:54:14 +0200 Subject: [PATCH] Move and update things --- BauSystem_Autostart/build.gradle | 17 +----- BauSystem_Backup/build.gradle | 17 +----- BauSystem_BuilderUtilities/build.gradle | 17 +----- BauSystem_Detonator/build.gradle | 17 +----- BauSystem_GUI/build.gradle | 17 +----- BauSystem_ItemUtilities/build.gradle | 20 ++----- BauSystem_LoadTimer/build.gradle | 55 +++++++++++++++++++ .../bausystem}/loadtimer/Loadtimer.java | 26 ++++----- .../loadtimer/LoadtimerCommand.java | 26 ++++----- .../loadtimer/LoadtimerGuiItem.java | 26 ++++----- .../loadtimer/LoadtimerListener.java | 28 +++++----- BauSystem_Loader/build.gradle | 17 +----- BauSystem_Scoreboard/build.gradle | 17 +----- BauSystem_Script/build.gradle | 18 +----- BauSystem_Shieldprinting/build.gradle | 17 +----- BauSystem_Simulator/build.gradle | 17 +----- BauSystem_TPSLimit/build.gradle | 20 ++----- BauSystem_Tracer/build.gradle | 17 +----- BauSystem_Warp/build.gradle | 17 +----- build.gradle | 21 +++++++ 20 files changed, 162 insertions(+), 265 deletions(-) create mode 100644 BauSystem_LoadTimer/build.gradle rename {BauSystem_Main/src/de/steamwar/bausystem/features => BauSystem_LoadTimer/src/de/steamwar/bausystem}/loadtimer/Loadtimer.java (91%) rename {BauSystem_Main/src/de/steamwar/bausystem/features => BauSystem_LoadTimer/src/de/steamwar/bausystem}/loadtimer/LoadtimerCommand.java (60%) rename {BauSystem_Main/src/de/steamwar/bausystem/features => BauSystem_LoadTimer/src/de/steamwar/bausystem}/loadtimer/LoadtimerGuiItem.java (71%) rename {BauSystem_Main/src/de/steamwar/bausystem/features => BauSystem_LoadTimer/src/de/steamwar/bausystem}/loadtimer/LoadtimerListener.java (67%) diff --git a/BauSystem_Autostart/build.gradle b/BauSystem_Autostart/build.gradle index eaf2b679..55102a04 100644 --- a/BauSystem_Autostart/build.gradle +++ b/BauSystem_Autostart/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } diff --git a/BauSystem_Backup/build.gradle b/BauSystem_Backup/build.gradle index eaf2b679..55102a04 100644 --- a/BauSystem_Backup/build.gradle +++ b/BauSystem_Backup/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } diff --git a/BauSystem_BuilderUtilities/build.gradle b/BauSystem_BuilderUtilities/build.gradle index eaf2b679..55102a04 100644 --- a/BauSystem_BuilderUtilities/build.gradle +++ b/BauSystem_BuilderUtilities/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } diff --git a/BauSystem_Detonator/build.gradle b/BauSystem_Detonator/build.gradle index eaf2b679..55102a04 100644 --- a/BauSystem_Detonator/build.gradle +++ b/BauSystem_Detonator/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } diff --git a/BauSystem_GUI/build.gradle b/BauSystem_GUI/build.gradle index eaf2b679..55102a04 100644 --- a/BauSystem_GUI/build.gradle +++ b/BauSystem_GUI/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } diff --git a/BauSystem_ItemUtilities/build.gradle b/BauSystem_ItemUtilities/build.gradle index 8ee6ddca..769b596b 100644 --- a/BauSystem_ItemUtilities/build.gradle +++ b/BauSystem_ItemUtilities/build.gradle @@ -46,22 +46,10 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") + + compileOnly libraries.base + annotationProcessor libraries.base + compileOnly project(":BauSystem_GUI") annotationProcessor project(":BauSystem_GUI") - - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' } diff --git a/BauSystem_LoadTimer/build.gradle b/BauSystem_LoadTimer/build.gradle new file mode 100644 index 00000000..769b596b --- /dev/null +++ b/BauSystem_LoadTimer/build.gradle @@ -0,0 +1,55 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2021 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 'java' +} + +apply from: '../module.gradle' + +group 'steamwar' +version '1.0' + +compileJava.options.encoding = 'UTF-8' + +sourceCompatibility = 17 +targetCompatibility = 17 + +sourceSets { + main { + java { + srcDirs = ['src/', 'build/generated/sources/annotationProcessor/java/main/'] + } + resources { + srcDirs = ['src/'] + exclude '**/*.java', '**/*.kt' + } + } +} + +dependencies { + implementation project(":BauSystem_PluginBase") + + compileOnly libraries.base + annotationProcessor libraries.base + + compileOnly project(":BauSystem_GUI") + annotationProcessor project(":BauSystem_GUI") +} diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/Loadtimer.java b/BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/Loadtimer.java similarity index 91% rename from BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/Loadtimer.java rename to BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/Loadtimer.java index 116edba5..05029ffd 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/Loadtimer.java +++ b/BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/Loadtimer.java @@ -1,23 +1,23 @@ /* - * This file is a part of the SteamWar software. + * This file is a part of the SteamWar software. * - * Copyright (C) 2021 SteamWar.de-Serverteam + * 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 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. + * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . */ -package de.steamwar.bausystem.features.loadtimer; +package de.steamwar.bausystem.loadtimer; import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.features.tpslimit.TPSUtils; diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerCommand.java b/BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerCommand.java similarity index 60% rename from BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerCommand.java rename to BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerCommand.java index 503c1b47..e903df97 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerCommand.java +++ b/BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerCommand.java @@ -1,23 +1,23 @@ /* - * This file is a part of the SteamWar software. + * This file is a part of the SteamWar software. * - * Copyright (C) 2021 SteamWar.de-Serverteam + * 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 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. + * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . */ -package de.steamwar.bausystem.features.loadtimer; +package de.steamwar.bausystem.loadtimer; import de.steamwar.bausystem.region.Region; import de.steamwar.command.SWCommand; diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerGuiItem.java b/BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerGuiItem.java similarity index 71% rename from BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerGuiItem.java rename to BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerGuiItem.java index f190d9f0..b10f3a69 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerGuiItem.java +++ b/BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerGuiItem.java @@ -1,23 +1,23 @@ /* - * This file is a part of the SteamWar software. + * This file is a part of the SteamWar software. * - * Copyright (C) 2021 SteamWar.de-Serverteam + * 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 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. + * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . */ -package de.steamwar.bausystem.features.loadtimer; +package de.steamwar.bausystem.loadtimer; import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.Permission; diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerListener.java b/BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerListener.java similarity index 67% rename from BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerListener.java rename to BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerListener.java index ddbaed9a..f1c0d3ad 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/loadtimer/LoadtimerListener.java +++ b/BauSystem_LoadTimer/src/de/steamwar/bausystem/loadtimer/LoadtimerListener.java @@ -1,23 +1,23 @@ /* - * This file is a part of the SteamWar software. + * This file is a part of the SteamWar software. * - * Copyright (C) 2021 SteamWar.de-Serverteam + * 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 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. + * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . */ -package de.steamwar.bausystem.features.loadtimer; +package de.steamwar.bausystem.loadtimer; import de.steamwar.bausystem.region.Region; import de.steamwar.linkage.Linked; @@ -30,7 +30,7 @@ import org.bukkit.event.entity.EntityExplodeEvent; import org.bukkit.event.entity.EntitySpawnEvent; import org.bukkit.event.player.PlayerInteractEvent; -import static de.steamwar.bausystem.features.loadtimer.Loadtimer.*; +import static de.steamwar.bausystem.loadtimer.Loadtimer.*; @Linked public class LoadtimerListener implements Listener { diff --git a/BauSystem_Loader/build.gradle b/BauSystem_Loader/build.gradle index eaf2b679..55102a04 100644 --- a/BauSystem_Loader/build.gradle +++ b/BauSystem_Loader/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } diff --git a/BauSystem_Scoreboard/build.gradle b/BauSystem_Scoreboard/build.gradle index dd0a66df..7e5df44d 100644 --- a/BauSystem_Scoreboard/build.gradle +++ b/BauSystem_Scoreboard/build.gradle @@ -45,19 +45,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } \ No newline at end of file diff --git a/BauSystem_Script/build.gradle b/BauSystem_Script/build.gradle index eaf2b679..dc894cc4 100644 --- a/BauSystem_Script/build.gradle +++ b/BauSystem_Script/build.gradle @@ -47,19 +47,7 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base + implementation 'org.luaj:luaj-jse:3.0.1' } diff --git a/BauSystem_Shieldprinting/build.gradle b/BauSystem_Shieldprinting/build.gradle index eaf2b679..55102a04 100644 --- a/BauSystem_Shieldprinting/build.gradle +++ b/BauSystem_Shieldprinting/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } diff --git a/BauSystem_Simulator/build.gradle b/BauSystem_Simulator/build.gradle index dd0a66df..7e5df44d 100644 --- a/BauSystem_Simulator/build.gradle +++ b/BauSystem_Simulator/build.gradle @@ -45,19 +45,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } \ No newline at end of file diff --git a/BauSystem_TPSLimit/build.gradle b/BauSystem_TPSLimit/build.gradle index f9ff1197..e273f67f 100644 --- a/BauSystem_TPSLimit/build.gradle +++ b/BauSystem_TPSLimit/build.gradle @@ -46,24 +46,12 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") + + compileOnly libraries.base + annotationProcessor libraries.base + compileOnly project(":BauSystem_GUI") annotationProcessor project(":BauSystem_GUI") compileOnly project(":BauSystem_Scoreboard") annotationProcessor project(":BauSystem_Scoreboard") - - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' } \ No newline at end of file diff --git a/BauSystem_Tracer/build.gradle b/BauSystem_Tracer/build.gradle index ba94acaf..f8cc7798 100644 --- a/BauSystem_Tracer/build.gradle +++ b/BauSystem_Tracer/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } \ No newline at end of file diff --git a/BauSystem_Warp/build.gradle b/BauSystem_Warp/build.gradle index ba94acaf..f8cc7798 100644 --- a/BauSystem_Warp/build.gradle +++ b/BauSystem_Warp/build.gradle @@ -47,19 +47,6 @@ sourceSets { dependencies { implementation project(":BauSystem_PluginBase") - compileOnly 'org.projectlombok:lombok:1.18.22' - annotationProcessor 'org.projectlombok:lombok:1.18.22' - - 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' - - compileOnly swdep('Spigot-1.20') - compileOnly swdep('SpigotCore') - annotationProcessor swdep('SpigotCore') - - compileOnly swdep('FastAsyncWorldEdit-1.18') - // compileOnly swdep('AxiomPaper') - - // implementation 'org.luaj:luaj-jse:3.0.1' + compileOnly libraries.base + annotationProcessor libraries.base } \ No newline at end of file diff --git a/build.gradle b/build.gradle index e005af23..e30e47c8 100644 --- a/build.gradle +++ b/build.gradle @@ -68,6 +68,27 @@ allprojects { } } +ext.libraries = [ + base: [ + // Spigot Things + swdep('Spigot-1.20'), + 'org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT', + 'com.mojang:authlib:1.5.25', + 'io.netty:netty-all:4.1.68.Final', + + // Base Dependencies + swdep('SpigotCore'), + swdep('FastAsyncWorldEdit-1.18'), + swdep('AxiomPaper'), + + // Lombok + 'org.projectlombok:lombok:1.18.22', + + // Other + 'org.luaj:luaj-jse:3.0.1', + ] +] + dependencies { file('.').listFiles().each { if (!it.isDirectory()) {