| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Copyright 2018 JetBrains s.r.o. |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>org.jetbrains.kotlinx</groupId> |
| <artifactId>serialization-maven-example</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| <packaging>jar</packaging> |
| |
| <name>serialization-maven-example</name> |
| |
| <repositories> |
| <repository> |
| <id>bintray-kotlin-kotlinx</id> |
| <name>bintray</name> |
| <url>https://kotlin.bintray.com/kotlinx</url> |
| </repository> |
| </repositories> |
| |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <kotlin.version>1.3.20</kotlin.version> |
| <serialization.version>0.10.0</serialization.version> |
| <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.jetbrains.kotlin</groupId> |
| <artifactId>kotlin-stdlib</artifactId> |
| <version>${kotlin.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jetbrains.kotlin</groupId> |
| <artifactId>kotlin-reflect</artifactId> |
| <version>${kotlin.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jetbrains.kotlinx</groupId> |
| <artifactId>kotlinx-serialization-runtime</artifactId> |
| <version>${serialization.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <sourceDirectory>src</sourceDirectory> |
| |
| <plugins> |
| <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> |
| </executions> |
| |
| <configuration> |
| <compilerPlugins> |
| <plugin>kotlinx-serialization</plugin> |
| </compilerPlugins> |
| </configuration> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.jetbrains.kotlin</groupId> |
| <artifactId>kotlin-maven-serialization</artifactId> |
| <version>${kotlin.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.5.1</version> |
| <configuration> |
| <source>1.8</source> |
| <target>1.8</target> |
| </configuration> |
| <executions> |
| <execution> |
| <id>default-compile</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>java-compile</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.6.0</version> |
| <configuration> |
| <mainClass>App</mainClass> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |