diff --git a/library/build.gradle b/mad4j/build.gradle similarity index 100% rename from library/build.gradle rename to mad4j/build.gradle diff --git a/library/src/main/java/io/github/stelitop/mad4j/DiscordEventsComponent.java b/mad4j/src/main/java/io/github/stelitop/mad4j/DiscordEventsComponent.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/DiscordEventsComponent.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/DiscordEventsComponent.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/Mad4jConfig.java b/mad4j/src/main/java/io/github/stelitop/mad4j/Mad4jConfig.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/Mad4jConfig.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/Mad4jConfig.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/Command.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/Command.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/Command.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/Command.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/CommandData.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/CommandData.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/CommandData.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/CommandData.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/CommandParam.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/CommandParam.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/CommandParam.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/CommandParam.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/CommandParamChoice.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/CommandParamChoice.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/CommandParamChoice.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/CommandParamChoice.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/CommandType.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/CommandType.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/CommandType.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/CommandType.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/DefaultValue.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/DefaultValue.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/DefaultValue.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/DefaultValue.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/InteractionEvent.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/InteractionEvent.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/InteractionEvent.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/InteractionEvent.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/SlashCommand.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/SlashCommand.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/SlashCommand.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/SlashCommand.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/SlashCommandRegistrar.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/SlashCommandRegistrar.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/SlashCommandRegistrar.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/SlashCommandRegistrar.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/AutocompletionExecutor.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/AutocompletionExecutor.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/AutocompletionExecutor.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/AutocompletionExecutor.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/InputSuggestion.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/InputSuggestion.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/InputSuggestion.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/InputSuggestion.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/NullAutocompleteExecutor.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/NullAutocompleteExecutor.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/NullAutocompleteExecutor.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/autocomplete/NullAutocompleteExecutor.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/components/ComponentInteraction.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/components/ComponentInteraction.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/components/ComponentInteraction.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/components/ComponentInteraction.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/convenience/EventUser.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/convenience/EventUser.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/convenience/EventUser.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/convenience/EventUser.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/convenience/EventUserId.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/convenience/EventUserId.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/convenience/EventUserId.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/convenience/EventUserId.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/requirements/CommandRequirement.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/CommandRequirement.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/requirements/CommandRequirement.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/CommandRequirement.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/requirements/CommandRequirementExecutor.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/CommandRequirementExecutor.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/requirements/CommandRequirementExecutor.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/CommandRequirementExecutor.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/DMCommandRequirement.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/DMCommandRequirement.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/DMCommandRequirement.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/DMCommandRequirement.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/DMCommandRequirementImplementation.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/DMCommandRequirementImplementation.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/DMCommandRequirementImplementation.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/DMCommandRequirementImplementation.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/GuildCommandRequirement.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/GuildCommandRequirement.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/GuildCommandRequirement.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/GuildCommandRequirement.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/GuildCommandRequirementImplementation.java b/mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/GuildCommandRequirementImplementation.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/GuildCommandRequirementImplementation.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/commands/requirements/standard/GuildCommandRequirementImplementation.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/events/AllowedEventResult.java b/mad4j/src/main/java/io/github/stelitop/mad4j/events/AllowedEventResult.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/events/AllowedEventResult.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/events/AllowedEventResult.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/events/AllowedEventResultHandler.java b/mad4j/src/main/java/io/github/stelitop/mad4j/events/AllowedEventResultHandler.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/events/AllowedEventResultHandler.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/events/AllowedEventResultHandler.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/events/SlashCommandEmbedCreateSpecEventResult.java b/mad4j/src/main/java/io/github/stelitop/mad4j/events/SlashCommandEmbedCreateSpecEventResult.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/events/SlashCommandEmbedCreateSpecEventResult.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/events/SlashCommandEmbedCreateSpecEventResult.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/events/SlashCommandEventResponseEventResult.java b/mad4j/src/main/java/io/github/stelitop/mad4j/events/SlashCommandEventResponseEventResult.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/events/SlashCommandEventResponseEventResult.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/events/SlashCommandEventResponseEventResult.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/events/SlashCommandMonoVoidEventResult.java b/mad4j/src/main/java/io/github/stelitop/mad4j/events/SlashCommandMonoVoidEventResult.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/events/SlashCommandMonoVoidEventResult.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/events/SlashCommandMonoVoidEventResult.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/events/SlashCommandStringEventResult.java b/mad4j/src/main/java/io/github/stelitop/mad4j/events/SlashCommandStringEventResult.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/events/SlashCommandStringEventResult.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/events/SlashCommandStringEventResult.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/interactions/EventResponse.java b/mad4j/src/main/java/io/github/stelitop/mad4j/interactions/EventResponse.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/interactions/EventResponse.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/interactions/EventResponse.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/listeners/CommandOptionAutocompleteListener.java b/mad4j/src/main/java/io/github/stelitop/mad4j/listeners/CommandOptionAutocompleteListener.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/listeners/CommandOptionAutocompleteListener.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/listeners/CommandOptionAutocompleteListener.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/listeners/ComponentEventListener.java b/mad4j/src/main/java/io/github/stelitop/mad4j/listeners/ComponentEventListener.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/listeners/ComponentEventListener.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/listeners/ComponentEventListener.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/listeners/MessageListener.java b/mad4j/src/main/java/io/github/stelitop/mad4j/listeners/MessageListener.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/listeners/MessageListener.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/listeners/MessageListener.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/listeners/SlashCommandListener.java b/mad4j/src/main/java/io/github/stelitop/mad4j/listeners/SlashCommandListener.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/listeners/SlashCommandListener.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/listeners/SlashCommandListener.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/utils/ActionResult.java b/mad4j/src/main/java/io/github/stelitop/mad4j/utils/ActionResult.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/utils/ActionResult.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/utils/ActionResult.java diff --git a/library/src/main/java/io/github/stelitop/mad4j/utils/OptionType.java b/mad4j/src/main/java/io/github/stelitop/mad4j/utils/OptionType.java similarity index 100% rename from library/src/main/java/io/github/stelitop/mad4j/utils/OptionType.java rename to mad4j/src/main/java/io/github/stelitop/mad4j/utils/OptionType.java diff --git a/library/src/main/resources/application.properties b/mad4j/src/main/resources/application.properties similarity index 100% rename from library/src/main/resources/application.properties rename to mad4j/src/main/resources/application.properties diff --git a/library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/BaseTestConfiguration.java b/mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/BaseTestConfiguration.java similarity index 100% rename from library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/BaseTestConfiguration.java rename to mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/BaseTestConfiguration.java diff --git a/library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/BaseTestConfigurationTest.java b/mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/BaseTestConfigurationTest.java similarity index 100% rename from library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/BaseTestConfigurationTest.java rename to mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/BaseTestConfigurationTest.java diff --git a/library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/executing/PlainCommandTest.java b/mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/executing/PlainCommandTest.java similarity index 100% rename from library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/executing/PlainCommandTest.java rename to mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/executing/PlainCommandTest.java diff --git a/library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/CommandGroupTest.java b/mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/CommandGroupTest.java similarity index 100% rename from library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/CommandGroupTest.java rename to mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/CommandGroupTest.java diff --git a/library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/IncorrectCommandMethodDefinitionTest.java b/mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/IncorrectCommandMethodDefinitionTest.java similarity index 100% rename from library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/IncorrectCommandMethodDefinitionTest.java rename to mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/IncorrectCommandMethodDefinitionTest.java diff --git a/library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/PlainCommandTest.java b/mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/PlainCommandTest.java similarity index 100% rename from library/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/PlainCommandTest.java rename to mad4j/src/test/java/test/io/github/stelitop/mad4j/slashcommands/registering/PlainCommandTest.java diff --git a/settings.gradle b/settings.gradle index 723702e..53f7179 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,5 +1,5 @@ rootProject.name = 'mad4j' -include 'library' +include 'mad4j' include 'general-bot' project(':general-bot').projectDir = file('test-bots/general-bot') diff --git a/test-bots/general-bot/build.gradle b/test-bots/general-bot/build.gradle index 8751459..f43c082 100644 --- a/test-bots/general-bot/build.gradle +++ b/test-bots/general-bot/build.gradle @@ -20,7 +20,7 @@ repositories { dependencies { implementation 'org.springframework.boot:spring-boot-starter' implementation 'com.discord4j:discord4j-core:3.2.6' - implementation project(":library") + implementation project(":mad4j") //implementation 'io.github.stelitop:mad4j:0.0.6-SNAPSHOT' testImplementation 'org.springframework.boot:spring-boot-starter-test'