stuff to fix the warning

This commit is contained in:
Chayapak 2023-05-11 11:58:37 +07:00
parent 7c4165ef4e
commit 62c01def65
2 changed files with 28 additions and 0 deletions

View file

@ -31,6 +31,17 @@
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer>
<mainClass>land.chipmunk.chayapak.chomens_bot.Main</mainClass>
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</transformer>
<transformer />
</transformers>
</configuration>
</execution>
</executions>
</plugin>

17
pom.xml
View file

@ -120,6 +120,12 @@
<artifactId>adventure-text-serializer-legacy</artifactId>
<version>4.13.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.20.0</version>
</dependency>
</dependencies>
<build>
@ -154,6 +160,17 @@
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>land.chipmunk.chayapak.chomens_bot.Main</mainClass>
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration>
</execution>
</executions>
</plugin>