Update gitignore & fix pom

pom.xml needs a lot of work - this just gets it to compile.
leaving this for someone more experienced in maven
This commit is contained in:
Anya 2022-03-28 23:05:01 -07:00
parent 4a1528bea2
commit 1e4fb03226
2 changed files with 54 additions and 4 deletions

1
.gitignore vendored
View file

@ -3,5 +3,6 @@ target
/target /target
/.idea /.idea
config.yml config.yml
dependency-reduced-pom.xml
out out
/out/ /out/

57
pom.xml
View file

@ -6,20 +6,24 @@
<groupId>moe.oko</groupId> <groupId>moe.oko</groupId>
<artifactId>Kiafumi</artifactId> <artifactId>Kiafumi</artifactId>
<name>Kiafumi</name>
<version>0.5</version> <version>0.5</version>
<packaging>jar</packaging>
<url>https://oko.moe/kiafumi.htm</url>
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <project.jdk.version>17</project.jdk.version>
<maven.compiler.target>8</maven.compiler.target> <mainclass>moe.oko.Kiafumi.Kiafumi</mainclass>
</properties> </properties>
<!-- JDA (https://mvnrepository.com/artifact/net.dv8tion/JDA) -->
<!-- https://mvnrepository.com/artifact/net.dv8tion/JDA -->
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>net.dv8tion</groupId> <groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId> <artifactId>JDA</artifactId>
<version>5.0.0-alpha.9</version> <version>5.0.0-alpha.9</version>
<scope>compile</scope>
<type>jar</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>me.carleslc.Simple-YAML</groupId> <groupId>me.carleslc.Simple-YAML</groupId>
@ -69,4 +73,49 @@
<url>https://jcenter.bintray.com</url> <url>https://jcenter.bintray.com</url>
</repository> </repository>
</repositories> </repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${project.jdk.version}</source>
<target>${project.jdk.version}</target>
<compilerVersion>${project.jdk.version}</compilerVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<index>true</index>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${mainclass}</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>