144 lines
5.6 KiB
XML
144 lines
5.6 KiB
XML
<project>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>starter</groupId>
|
|
<artifactId>kotlin-starter</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<kotlin.version>1.4.10</kotlin.version>
|
|
<kotlin.code.style>official</kotlin.code.style>
|
|
</properties>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>jcenter</id>
|
|
<name>jcenter</name>
|
|
<url>https://jcenter.bintray.com</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.pebbletemplates</groupId>
|
|
<artifactId>pebble</artifactId>
|
|
<version>3.1.4</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.electronwill.night-config</groupId>
|
|
<artifactId>toml</artifactId>
|
|
<version>3.6.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.http4k</groupId>
|
|
<artifactId>http4k-core</artifactId>
|
|
<version>3.265.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-compress</artifactId>
|
|
<version>1.20</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.koin</groupId>
|
|
<artifactId>koin-core</artifactId>
|
|
<version>2.1.6</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
<version>1.7.30</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
|
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.2.4</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<minimizeJar>true</minimizeJar>
|
|
<transformers>
|
|
<transformer
|
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>starter.KotlinStarterKt</mainClass>
|
|
</transformer>
|
|
</transformers>
|
|
<filters>
|
|
<filter>
|
|
<artifact>com.electronwill.night-config:*</artifact>
|
|
<includes>
|
|
<include>**</include>
|
|
</includes>
|
|
</filter>
|
|
<filter>
|
|
<artifact>*:*</artifact>
|
|
<excludes>
|
|
<exclude>META-INF/maven/**</exclude>
|
|
<exclude>META-INF/proguard/**</exclude>
|
|
<exclude>META-INF/*.kotlin_module</exclude>
|
|
<exclude>META-INF/DEPENDENCIES*</exclude>
|
|
<exclude>META-INF/NOTICE*</exclude>
|
|
<exclude>META-INF/LICENSE*</exclude>
|
|
<exclude>LICENSE*</exclude>
|
|
<exclude>META-INF/README*</exclude>
|
|
<exclude>META-INF/native-image/**</exclude>
|
|
</excludes>
|
|
</filter>
|
|
</filters>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
<version>${kotlin.version}</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>
|
|
<configuration>
|
|
<jvmTarget>11</jvmTarget>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|