From 59e88df694aa5b40377dc4a9b9505cfb358a8cb2 Mon Sep 17 00:00:00 2001 From: darksaid98 Date: Sun, 19 Nov 2023 09:26:07 +0100 Subject: [PATCH] refactor: move boilerplate to io.github.name --- build.gradle.kts | 2 +- .../ExamplePlugin/ExamplePlugin.java | 12 ++++++------ .../ExamplePlugin/Reloadable.java | 2 +- .../ExamplePlugin/command/CommandHandler.java | 6 +++--- .../ExamplePlugin/command/ExampleCommand.java | 2 +- .../ExamplePlugin/config/ConfigHandler.java | 6 +++--- .../ExamplePlugin/db/DatabaseHandler.java | 18 +++++++++--------- .../ExamplePlugin/db/DatabaseQueries.java | 8 ++++---- .../ExamplePlugin/db/DatabaseType.java | 2 +- .../db/flyway/DatabaseMigrationException.java | 2 +- .../db/flyway/DatabaseMigrationHandler.java | 6 +++--- .../db/flyway/FlywayMigrationsProvider.java | 2 +- .../db/flyway/migration/V3__Example.java | 8 ++++---- .../ExamplePlugin/db/jooq/JooqContext.java | 4 ++-- .../listener/ListenerHandler.java | 6 +++--- .../ExamplePlugin/utility/Cfg.java | 6 +++--- .../ExamplePlugin/utility/DB.java | 10 +++++----- .../ExamplePlugin/utility/Logger.java | 4 ++-- 18 files changed, 53 insertions(+), 53 deletions(-) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/ExamplePlugin.java (73%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/Reloadable.java (85%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/command/CommandHandler.java (78%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/command/ExampleCommand.java (92%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/config/ConfigHandler.java (83%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/db/DatabaseHandler.java (94%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/db/DatabaseQueries.java (91%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/db/DatabaseType.java (99%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/db/flyway/DatabaseMigrationException.java (66%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/db/flyway/DatabaseMigrationHandler.java (93%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/db/flyway/FlywayMigrationsProvider.java (88%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/db/flyway/migration/V3__Example.java (75%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/db/jooq/JooqContext.java (95%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/listener/ListenerHandler.java (73%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/utility/Cfg.java (66%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/utility/DB.java (74%) rename src/main/java/{com/github/ExampleUser => io/github/ExampleUser/ExamplePlugin}/ExamplePlugin/utility/Logger.java (78%) diff --git a/build.gradle.kts b/build.gradle.kts index 7143a44..b0ffb28 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,7 +18,7 @@ plugins { idea } -group = "com.github.ExampleUser" +group = "io.github.ExampleUser" version = "1.0.0" description = "" val mainPackage = "${project.group}.${rootProject.name}" diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/ExamplePlugin.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/ExamplePlugin.java similarity index 73% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/ExamplePlugin.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/ExamplePlugin.java index 7d35156..88027a5 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/ExamplePlugin.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/ExamplePlugin.java @@ -1,16 +1,16 @@ -package com.github.ExampleUser.ExamplePlugin; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin; -import com.github.ExampleUser.ExamplePlugin.command.CommandHandler; -import com.github.ExampleUser.ExamplePlugin.config.ConfigHandler; -import com.github.ExampleUser.ExamplePlugin.db.DatabaseHandler; -import com.github.ExampleUser.ExamplePlugin.listener.ListenerHandler; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.command.CommandHandler; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.config.ConfigHandler; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.DatabaseHandler; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.listener.ListenerHandler; import org.bukkit.plugin.java.JavaPlugin; import org.jetbrains.annotations.NotNull; public class ExamplePlugin extends JavaPlugin { private static ExamplePlugin instance; private ConfigHandler configHandler; - private DatabaseHandler DatabaseHandler; + private io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.DatabaseHandler DatabaseHandler; private CommandHandler commandHandler; private ListenerHandler listenerHandler; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/Reloadable.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/Reloadable.java similarity index 85% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/Reloadable.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/Reloadable.java index 695a1ba..150b1b7 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/Reloadable.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/Reloadable.java @@ -1,4 +1,4 @@ -package com.github.ExampleUser.ExamplePlugin; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin; /** * Implemented in classes that should support being reloaded IE executing the methods during runtime after startup. diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/command/CommandHandler.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/command/CommandHandler.java similarity index 78% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/command/CommandHandler.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/command/CommandHandler.java index 1cdeef0..496e7a8 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/command/CommandHandler.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/command/CommandHandler.java @@ -1,7 +1,7 @@ -package com.github.ExampleUser.ExamplePlugin.command; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.command; -import com.github.ExampleUser.ExamplePlugin.ExamplePlugin; -import com.github.ExampleUser.ExamplePlugin.Reloadable; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.ExamplePlugin; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.Reloadable; import dev.jorel.commandapi.CommandAPI; import dev.jorel.commandapi.CommandAPIBukkitConfig; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/command/ExampleCommand.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/command/ExampleCommand.java similarity index 92% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/command/ExampleCommand.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/command/ExampleCommand.java index 95818d3..a814d32 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/command/ExampleCommand.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/command/ExampleCommand.java @@ -1,4 +1,4 @@ -package com.github.ExampleUser.ExamplePlugin.command; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.command; import com.github.milkdrinkers.colorparser.ColorParser; import dev.jorel.commandapi.CommandAPICommand; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/config/ConfigHandler.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/config/ConfigHandler.java similarity index 83% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/config/ConfigHandler.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/config/ConfigHandler.java index 457cba5..cb0c727 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/config/ConfigHandler.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/config/ConfigHandler.java @@ -1,7 +1,7 @@ -package com.github.ExampleUser.ExamplePlugin.config; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.config; -import com.github.ExampleUser.ExamplePlugin.ExamplePlugin; -import com.github.ExampleUser.ExamplePlugin.Reloadable; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.ExamplePlugin; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.Reloadable; import com.github.milkdrinkers.Crate.Config; import javax.inject.Singleton; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseHandler.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseHandler.java similarity index 94% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseHandler.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseHandler.java index 9396fe2..c97c7e0 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseHandler.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseHandler.java @@ -1,12 +1,12 @@ -package com.github.ExampleUser.ExamplePlugin.db; - -import com.github.ExampleUser.ExamplePlugin.ExamplePlugin; -import com.github.ExampleUser.ExamplePlugin.Reloadable; -import com.github.ExampleUser.ExamplePlugin.db.flyway.DatabaseMigrationException; -import com.github.ExampleUser.ExamplePlugin.db.flyway.DatabaseMigrationHandler; -import com.github.ExampleUser.ExamplePlugin.db.jooq.JooqContext; -import com.github.ExampleUser.ExamplePlugin.utility.Cfg; -import com.github.ExampleUser.ExamplePlugin.utility.Logger; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db; + +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.ExamplePlugin; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.Reloadable; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.flyway.DatabaseMigrationException; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.flyway.DatabaseMigrationHandler; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.jooq.JooqContext; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility.Cfg; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility.Logger; import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariDataSource; import org.jetbrains.annotations.NotNull; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseQueries.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseQueries.java similarity index 91% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseQueries.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseQueries.java index 664a803..35ce494 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseQueries.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseQueries.java @@ -1,7 +1,7 @@ -package com.github.ExampleUser.ExamplePlugin.db; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db; -import com.github.ExampleUser.ExamplePlugin.utility.DB; -import com.github.ExampleUser.ExamplePlugin.utility.Logger; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility.DB; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility.Logger; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jooq.DSLContext; @@ -13,7 +13,7 @@ import java.sql.SQLException; import java.util.UUID; -import static com.github.ExampleUser.ExamplePlugin.db.schema.Tables.SOME_LIST; +import static io.github.ExampleUser.ExamplePlugin.db.schema.Tables.SOME_LIST; /** * A holder class for all SQL queries diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseType.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseType.java similarity index 99% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseType.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseType.java index 568b995..d5f77b4 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/DatabaseType.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/DatabaseType.java @@ -1,4 +1,4 @@ -package com.github.ExampleUser.ExamplePlugin.db; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db; import com.mysql.cj.jdbc.MysqlDataSource; import org.h2.jdbcx.JdbcDataSource; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/DatabaseMigrationException.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/DatabaseMigrationException.java similarity index 66% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/DatabaseMigrationException.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/DatabaseMigrationException.java index 90bd164..9beca32 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/DatabaseMigrationException.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/DatabaseMigrationException.java @@ -1,4 +1,4 @@ -package com.github.ExampleUser.ExamplePlugin.db.flyway; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.flyway; public class DatabaseMigrationException extends Exception { public DatabaseMigrationException(Throwable t) { diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/DatabaseMigrationHandler.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/DatabaseMigrationHandler.java similarity index 93% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/DatabaseMigrationHandler.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/DatabaseMigrationHandler.java index 59b93dc..012d2ee 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/DatabaseMigrationHandler.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/DatabaseMigrationHandler.java @@ -1,7 +1,7 @@ -package com.github.ExampleUser.ExamplePlugin.db.flyway; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.flyway; -import com.github.ExampleUser.ExamplePlugin.db.DatabaseType; -import com.github.ExampleUser.ExamplePlugin.db.flyway.migration.V3__Example; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.DatabaseType; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.flyway.migration.V3__Example; import com.github.milkdrinkers.Crate.Config; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.ClassProvider; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/FlywayMigrationsProvider.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/FlywayMigrationsProvider.java similarity index 88% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/FlywayMigrationsProvider.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/FlywayMigrationsProvider.java index dafb471..a1c0b8e 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/FlywayMigrationsProvider.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/FlywayMigrationsProvider.java @@ -1,4 +1,4 @@ -package com.github.ExampleUser.ExamplePlugin.db.flyway; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.flyway; import org.flywaydb.core.api.ClassProvider; import org.flywaydb.core.api.migration.JavaMigration; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/migration/V3__Example.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/migration/V3__Example.java similarity index 75% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/migration/V3__Example.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/migration/V3__Example.java index d71adbb..2ebafad 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/flyway/migration/V3__Example.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/flyway/migration/V3__Example.java @@ -1,12 +1,12 @@ -package com.github.ExampleUser.ExamplePlugin.db.flyway.migration; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.flyway.migration; -import com.github.ExampleUser.ExamplePlugin.utility.DB; -import com.github.ExampleUser.ExamplePlugin.utility.Logger; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility.DB; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility.Logger; import org.flywaydb.core.api.migration.BaseJavaMigration; import org.flywaydb.core.api.migration.Context; import org.jooq.DSLContext; -import static com.github.ExampleUser.ExamplePlugin.db.schema.Tables.TEST; +import static io.github.ExampleUser.ExamplePlugin.db.schema.Tables.TEST; import static org.jooq.impl.DSL.field; import static org.jooq.impl.DSL.name; import static org.jooq.impl.SQLDataType.VARCHAR; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/jooq/JooqContext.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/jooq/JooqContext.java similarity index 95% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/db/jooq/JooqContext.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/jooq/JooqContext.java index f464dd7..2619e41 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/db/jooq/JooqContext.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/db/jooq/JooqContext.java @@ -1,6 +1,6 @@ -package com.github.ExampleUser.ExamplePlugin.db.jooq; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.jooq; -import com.github.ExampleUser.ExamplePlugin.utility.Cfg; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility.Cfg; import org.jooq.*; import org.jooq.conf.*; import org.jooq.exception.DataAccessException; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/listener/ListenerHandler.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/listener/ListenerHandler.java similarity index 73% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/listener/ListenerHandler.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/listener/ListenerHandler.java index 1667219..d044302 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/listener/ListenerHandler.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/listener/ListenerHandler.java @@ -1,7 +1,7 @@ -package com.github.ExampleUser.ExamplePlugin.listener; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.listener; -import com.github.ExampleUser.ExamplePlugin.ExamplePlugin; -import com.github.ExampleUser.ExamplePlugin.Reloadable; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.ExamplePlugin; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.Reloadable; /** * A class to handle registration of event listeners. diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/utility/Cfg.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/Cfg.java similarity index 66% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/utility/Cfg.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/Cfg.java index 9104a18..518c222 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/utility/Cfg.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/Cfg.java @@ -1,7 +1,7 @@ -package com.github.ExampleUser.ExamplePlugin.utility; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility; -import com.github.ExampleUser.ExamplePlugin.ExamplePlugin; -import com.github.ExampleUser.ExamplePlugin.config.ConfigHandler; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.ExamplePlugin; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.config.ConfigHandler; import com.github.milkdrinkers.Crate.Config; import org.jetbrains.annotations.NotNull; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/utility/DB.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/DB.java similarity index 74% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/utility/DB.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/DB.java index 6c8e653..ed4b1ea 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/utility/DB.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/DB.java @@ -1,9 +1,9 @@ -package com.github.ExampleUser.ExamplePlugin.utility; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility; -import com.github.ExampleUser.ExamplePlugin.ExamplePlugin; -import com.github.ExampleUser.ExamplePlugin.db.DatabaseHandler; -import com.github.ExampleUser.ExamplePlugin.db.DatabaseType; -import com.github.ExampleUser.ExamplePlugin.db.jooq.JooqContext; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.ExamplePlugin; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.DatabaseHandler; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.DatabaseType; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.db.jooq.JooqContext; import org.jetbrains.annotations.NotNull; import org.jooq.DSLContext; diff --git a/src/main/java/com/github/ExampleUser/ExamplePlugin/utility/Logger.java b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/Logger.java similarity index 78% rename from src/main/java/com/github/ExampleUser/ExamplePlugin/utility/Logger.java rename to src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/Logger.java index 52cd53a..7aa41bd 100644 --- a/src/main/java/com/github/ExampleUser/ExamplePlugin/utility/Logger.java +++ b/src/main/java/io/github/ExampleUser/ExamplePlugin/ExamplePlugin/utility/Logger.java @@ -1,7 +1,7 @@ -package com.github.ExampleUser.ExamplePlugin.utility; +package io.github.ExampleUser.ExamplePlugin.ExamplePlugin.utility; -import com.github.ExampleUser.ExamplePlugin.ExamplePlugin; +import io.github.ExampleUser.ExamplePlugin.ExamplePlugin.ExamplePlugin; import net.kyori.adventure.text.logger.slf4j.ComponentLogger; import org.jetbrains.annotations.NotNull;