Skip to content

Commit 10e82ed

Browse files
committed
HOTFIX: Configuration issue
1 parent 7408f16 commit 10e82ed

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

dependency-reduced-pom.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
<outputDirectory>${project.basedir}\out\Bot</outputDirectory>
5252
</configuration>
5353
</plugin>
54+
<plugin>
55+
<artifactId>maven-javadoc-plugin</artifactId>
56+
<version>3.6.3</version>
57+
<configuration>
58+
<reportOutputDirectory>./docs/</reportOutputDirectory>
59+
</configuration>
60+
</plugin>
5461
</plugins>
5562
</build>
5663
<repositories>
@@ -87,9 +94,9 @@
8794
</dependency>
8895
</dependencies>
8996
<properties>
90-
<maven.compiler.target>8</maven.compiler.target>
97+
<maven.compiler.target>17</maven.compiler.target>
9198
<mainClass>dev.jacrispys.JavaBot.JavaBotMain</mainClass>
92-
<maven.compiler.source>8</maven.compiler.source>
99+
<maven.compiler.source>17</maven.compiler.source>
93100
<author>Jacrispys</author>
94101
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
95102
</properties>

src/main/java/dev/jacrispys/JavaBot/utils/SecretData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected static InputStream generateSecretData() throws IOException {
6969
return new FileInputStream(file);
7070
} else throw new FileNotFoundException("Could not create required config file!");
7171

72-
} else return SecretData.class.getClassLoader().getResourceAsStream("loginInfo.yml");
72+
} else return new FileInputStream(path);
7373
}
7474

7575
@NotNull

0 commit comments

Comments
 (0)