<?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>PteroBot</artifactId> <groupId>tech.goksi</groupId> <version>canary</version> <packaging>jar</packaging> <name>PteroBot</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <kotlin.code.style>official</kotlin.code.style> <kotlin.compiler.jvmTarget>17</kotlin.compiler.jvmTarget> </properties> <repositories> <repository> <id>mavenCentral</id> <url>https://repo1.maven.org/maven2/</url> </repository> <repository> <id>jitpack</id> <name>jitpack</name> <url>https://jitpack.io/</url> </repository> </repositories> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> <!--<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>--> <plugins> <plugin> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-maven-plugin</artifactId> <version>1.7.20</version> <executions> <execution> <id>compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> <!--<execution> <id>test-compile</id> <phase>test-compile</phase> <goals> <goal>test-compile</goal> </goals> </execution>--> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.4.2</version> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <archive> <manifest> <mainClass> tech.goksi.pterobot.EntryPointKt </mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <finalName>PteroBot-${project.version}</finalName> <appendAssemblyId>false</appendAssemblyId> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> <!--Kt-linter--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <id>ktlint</id> <phase>verify</phase> <configuration> <target name="ktlint"> <java taskname="ktlint" dir="${basedir}" fork="true" failonerror="true" classpathref="maven.plugin.classpath" classname="com.pinterest.ktlint.Main"> <jvmarg value="--add-opens=java.base/java.lang=ALL-UNNAMED"/> <arg value="src/**/*.kt"/> </java> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> <execution> <id>ktlint-format</id> <configuration> <target name="ktlint"> <java taskname="ktlint" dir="${basedir}" fork="true" failonerror="true" classpathref="maven.plugin.classpath" classname="com.pinterest.ktlint.Main"> <jvmarg value="--add-opens=java.base/java.lang=ALL-UNNAMED"/> <arg value="-F"/> <arg value="src/**/*.kt"/> </java> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.pinterest</groupId> <artifactId>ktlint</artifactId> <version>0.47.1</version> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <!--Kotlin stuff--> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-test-junit5</artifactId> <version>1.7.20</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.9.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib-jdk8</artifactId> <version>1.7.20</version> </dependency> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-reflect</artifactId> <version>1.7.20</version> </dependency> <!--JDA things--> <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>5.0.0-beta.9</version> <exclusions> <exclusion> <groupId>club.minnced</groupId> <artifactId>opus-java</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.github.minndevelopment</groupId> <artifactId>jda-ktx</artifactId> <version>9fc90f6</version> <exclusions> <exclusion> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib-jdk8</artifactId> </exclusion> <exclusion> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib-common</artifactId> </exclusion> </exclusions> </dependency> <!--YAML parsing--> <dependency> <groupId>me.carleslc.Simple-YAML</groupId> <artifactId>Simple-Yaml</artifactId> <version>1.8.2</version> </dependency> <!--Logging--> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.8</version> </dependency> <!--JDBC drivers--> <dependency> <groupId>org.xerial</groupId> <artifactId>sqlite-jdbc</artifactId> <version>3.39.3.0</version> </dependency> <!--Ptero thingy--> <dependency> <groupId>com.github.Goksi</groupId> <artifactId>Pterodactyl4J</artifactId> <version>a57e6e5</version> </dependency> </dependencies> </project>