Skip to content

Commit

Permalink
Fix final bugs and prepare for v0.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
stelitop committed Aug 29, 2023
1 parent 9f42e34 commit cdfa07b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 83 deletions.
13 changes: 1 addition & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'net.stelitop'
version = '0.0.1-alpha-4'
version = '0.0.1'

java {
sourceCompatibility = '17'
Expand Down Expand Up @@ -54,17 +54,6 @@ publishing {
}
}

//uploadArchives {
// repositories {
// mavenDeployer {
// repository(url: "file:///tmp/myRepo/")
// pom.groupId = 'stelitop'
// pom.version = '0.0.1-SNAPSHOT'
// pom.artifactId = 'mad4j'
// }
// }
//}

tasks.named('test') {
useJUnitPlatform()
}
28 changes: 0 additions & 28 deletions src/main/java/stelitop/mad4j/Mad4jAutoConfiguration.java

This file was deleted.

7 changes: 7 additions & 0 deletions src/main/java/stelitop/mad4j/Mad4jConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package stelitop.mad4j;

import org.springframework.context.annotation.ComponentScan;

@ComponentScan("stelitop.mad4j")
public class Mad4jConfig {
}
1 change: 1 addition & 0 deletions src/main/java/stelitop/mad4j/SlashCommandRegistrar.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
* to false in the application.properties file. This can be used because sometimes discord will
* "outdate" the commands and require you to wait.</p>
*/
@Component
public class SlashCommandRegistrar implements ApplicationRunner {

private final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.Map;
import java.util.stream.Collectors;

@Component
public class CommandOptionAutocompleteListener implements ApplicationRunner {

private final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.*;
import java.util.stream.Collectors;

@Component
public class ComponentEventListener implements ApplicationRunner {

private final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
* These requirements are first checked against and if any of them are unfulfilled, the execution
* is cancelled and an error message is returned instead.</p>
*/
@Component
public class SlashCommandListener implements ApplicationRunner {

private final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
Expand Down

0 comments on commit cdfa07b

Please sign in to comment.