Skip to content

Commit

Permalink
refactor: move boilerplate to io.github.name
Browse files Browse the repository at this point in the history
  • Loading branch information
darksaid98 committed Nov 19, 2023
1 parent fe6d820 commit 59e88df
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 59e88df

Please sign in to comment.