Skip to content
Snippets Groups Projects
Forked from Valentin Degauchy / TP_Kotlin_1920
Up to date with the upstream repository.
pom.xml 4.06 KiB
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.0.RELEASE</version>
	</parent>
	<groupId>com.tpKotlin.glhf</groupId>
	<artifactId>tpkotlin</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>tpkotlin</name>
	<description>Demo project for Spring Boot</description>

	<properties>
		<java.version>1.8</java.version>
		<kotlin.version>1.3.50</kotlin.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		
		<dependency>
	        <groupId>org.jetbrains.kotlin</groupId>
	        <artifactId>kotlin-stdlib-jdk8</artifactId>
	    </dependency>
	    
		<dependency>
		    <groupId>org.jetbrains.kotlinx</groupId>
		    <artifactId>kotlinx-coroutines-core</artifactId>
		</dependency>
		
		<dependency>
			<groupId>com.fasterxml.jackson.module</groupId>
			<artifactId>jackson-module-kotlin</artifactId>
		</dependency>
		
		<dependency>
			<groupId>org.jetbrains.kotlin</groupId>
			<artifactId>kotlin-reflect</artifactId>
		</dependency>
		
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
		</dependency>
		
		<dependency>
			<groupId>org.apache.tomcat.embed</groupId>
			<artifactId>tomcat-embed-jasper</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<scope>runtime</scope>
			<optional>true</optional>
		</dependency>
		
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
			    <artifactId>kotlin-maven-plugin</artifactId>
			    <groupId>org.jetbrains.kotlin</groupId>
			    <executions>
			        <execution>
			            <id>compile</id>
			            <goals>
			                <goal>compile</goal>
			            </goals>
			            <configuration>
			                <sourceDirs>
			                    <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
			                    <sourceDir>${project.basedir}/src/main/java</sourceDir>
			                </sourceDirs>
			            </configuration>
			        </execution>
			        <execution>
			            <id>test-compile</id>
			            <goals>
			                <goal>test-compile</goal>
			            </goals>
			            <configuration>
			                <sourceDirs>
			                    <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
			                    <sourceDir>${project.basedir}/src/test/java</sourceDir>
			                </sourceDirs>
			            </configuration>
			        </execution>
			    </executions>
			</plugin>
			<plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-compiler-plugin</artifactId>
			    <configuration>
			        <source>${java.version}</source>
			        <target>${java.version}</target>
			    </configuration>
			    <executions>
			        <execution>
			            <id>default-compile</id>
			            <phase>none</phase>
			        </execution>
			        <execution>
			            <id>default-testCompile</id>
			            <phase>none</phase>
			        </execution>
			        <execution>
			            <id>java-compile</id>
			            <phase>compile</phase>
			            <goals>
			                <goal>compile</goal>
			            </goals>
			        </execution>
			        <execution>
			            <id>java-test-compile</id>
			            <phase>test-compile</phase>
			            <goals>
			                <goal>testCompile</goal>
			            </goals>
			        </execution>
			    </executions>
			</plugin>
		</plugins>
	</build>
</project>