|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 |
|
6 | 6 | <groupId>com.baeldung</groupId> |
|
15 | 15 | <groupId>org.springframework.boot</groupId> |
16 | 16 | <artifactId>spring-boot-starter-parent</artifactId> |
17 | 17 | <version>2.0.0.M1</version> |
18 | | - <relativePath /> <!-- lookup parent from repository --> |
| 18 | + <relativePath/> |
| 19 | + <!-- lookup parent from repository --> |
19 | 20 | </parent> |
20 | 21 |
|
21 | 22 | <dependencies> |
|
35 | 36 | <groupId>org.springframework.boot</groupId> |
36 | 37 | <artifactId>spring-boot-starter-web</artifactId> |
37 | 38 | </dependency> |
38 | | - |
| 39 | + |
39 | 40 |
|
40 | 41 | <!-- utils --> |
41 | 42 | <dependency> |
42 | 43 | <groupId>org.apache.commons</groupId> |
43 | | - <artifactId>commons-lang3</artifactId> |
| 44 | + <artifactId>commons-lang3</artifactId> |
44 | 45 | </dependency> |
45 | 46 | <dependency> |
46 | 47 | <groupId>org.slf4j</groupId> |
47 | 48 | <artifactId>slf4j-api</artifactId> |
48 | 49 | </dependency> |
49 | 50 | <dependency> |
50 | 51 | <groupId>org.slf4j</groupId> |
51 | | - <artifactId>jcl-over-slf4j</artifactId> |
| 52 | + <artifactId>jcl-over-slf4j</artifactId> |
| 53 | + </dependency> |
| 54 | + |
| 55 | + <!--kotlin deps--> |
| 56 | + <dependency> |
| 57 | + <groupId>org.jetbrains.kotlin</groupId> |
| 58 | + <artifactId>kotlin-stdlib-jre8</artifactId> |
| 59 | + <version>${kotlin.version}</version> |
| 60 | + </dependency> |
| 61 | + <dependency> |
| 62 | + <groupId>org.jetbrains.kotlin</groupId> |
| 63 | + <artifactId>kotlin-reflect</artifactId> |
| 64 | + <version>${kotlin.version}</version> |
| 65 | + </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>com.fasterxml.jackson.module</groupId> |
| 68 | + <artifactId>jackson-module-kotlin</artifactId> |
| 69 | + <version>2.8.7</version> |
52 | 70 | </dependency> |
53 | 71 |
|
54 | 72 | <!-- runtime and test scoped --> |
|
74 | 92 | <scope>test</scope> |
75 | 93 | </dependency> |
76 | 94 |
|
77 | | - <dependency> |
| 95 | + <dependency> |
78 | 96 | <groupId>junit</groupId> |
79 | 97 | <artifactId>junit</artifactId> |
80 | 98 | <scope>test</scope> |
81 | 99 | </dependency> |
82 | | - |
| 100 | + |
83 | 101 | <dependency> |
84 | 102 | <groupId>com.jayway.restassured</groupId> |
85 | 103 | <artifactId>rest-assured</artifactId> |
|
90 | 108 | </dependencies> |
91 | 109 |
|
92 | 110 | <build> |
93 | | - <plugins> |
| 111 | + <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> |
| 112 | + <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory> |
| 113 | + <plugins> |
| 114 | + <plugin> |
| 115 | + <groupId>org.springframework.boot</groupId> |
| 116 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 117 | + </plugin> |
| 118 | + <plugin> |
| 119 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 120 | + <groupId>org.jetbrains.kotlin</groupId> |
| 121 | + <version>${kotlin.version}</version> |
| 122 | + <configuration> |
| 123 | + <compilerPlugins> |
| 124 | + <plugin>spring</plugin> |
| 125 | + </compilerPlugins> |
| 126 | + <jvmTarget>1.8</jvmTarget> |
| 127 | + </configuration> |
| 128 | + <executions> |
| 129 | + <execution> |
| 130 | + <id>compile</id> |
| 131 | + <phase>compile</phase> |
| 132 | + <goals> |
| 133 | + <goal>compile</goal> |
| 134 | + </goals> |
| 135 | + </execution> |
| 136 | + <execution> |
| 137 | + <id>test-compile</id> |
| 138 | + <phase>test-compile</phase> |
| 139 | + <goals> |
| 140 | + <goal>test-compile</goal> |
| 141 | + </goals> |
| 142 | + </execution> |
| 143 | + </executions> |
| 144 | + <dependencies> |
| 145 | + <dependency> |
| 146 | + <groupId>org.jetbrains.kotlin</groupId> |
| 147 | + <artifactId>kotlin-maven-allopen</artifactId> |
| 148 | + <version>${kotlin.version}</version> |
| 149 | + </dependency> |
| 150 | + </dependencies> |
| 151 | + </plugin> |
94 | 152 | <plugin> |
95 | 153 | <groupId>org.apache.maven.plugins</groupId> |
96 | | - <artifactId>maven-surefire-plugin</artifactId> |
| 154 | + <artifactId>maven-surefire-plugin</artifactId> |
97 | 155 | <configuration> |
98 | | - <testFailureIgnore>true</testFailureIgnore> |
99 | | - <failIfNoTests>false</failIfNoTests> |
100 | | - <excludes> |
101 | | - <exclude>**/*IntegrationTest.java</exclude> |
102 | | - <exclude>**/*LiveTest.java</exclude> |
103 | | - </excludes> |
104 | | - </configuration> |
| 156 | + <testFailureIgnore>true</testFailureIgnore> |
| 157 | + <failIfNoTests>false</failIfNoTests> |
| 158 | + <excludes> |
| 159 | + <exclude>**/*IntegrationTest.java</exclude> |
| 160 | + <exclude>**/*LiveTest.java</exclude> |
| 161 | + </excludes> |
| 162 | + </configuration> |
105 | 163 | </plugin> |
106 | 164 |
|
107 | 165 | </plugins> |
|
145 | 203 | </pluginRepositories> |
146 | 204 |
|
147 | 205 | <properties> |
148 | | - <rest-assured.version>2.9.0</rest-assured.version> |
| 206 | + <rest-assured.version>2.9.0</rest-assured.version> |
149 | 207 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
150 | 208 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
151 | | - <java.version>1.8</java.version> |
| 209 | + <java.version>1.8</java.version> |
| 210 | + <kotlin.version>1.1.2</kotlin.version> |
152 | 211 | </properties> |
153 | 212 |
|
154 | 213 | </project> |
0 commit comments