Skip to content

Commit 15d3142

Browse files
committed
Pin Kotlin version
1 parent ea57534 commit 15d3142

1 file changed

Lines changed: 27 additions & 3 deletions

File tree

  • specs/spring-cloud-contract-spec-kotlin

specs/spring-cloud-contract-spec-kotlin/pom.xml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xmlns="http://maven.apache.org/POM/4.0.0"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns="http://maven.apache.org/POM/4.0.0"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<parent>
77
<groupId>org.springframework.cloud</groupId>
@@ -13,6 +13,20 @@
1313
<packaging>jar</packaging>
1414
<name>Spring Cloud Contract Spec Kotlin</name>
1515
<description>Spring Cloud Contract Spec Kotlin</description>
16+
<properties>
17+
<kotlin.version>2.2.21</kotlin.version>
18+
</properties>
19+
<dependencyManagement>
20+
<dependencies>
21+
<dependency>
22+
<groupId>org.jetbrains.kotlin</groupId>
23+
<artifactId>kotlin-bom</artifactId>
24+
<version>${kotlin.version}</version>
25+
<type>pom</type>
26+
<scope>import</scope>
27+
</dependency>
28+
</dependencies>
29+
</dependencyManagement>
1630
<dependencies>
1731
<dependency>
1832
<groupId>org.springframework.cloud</groupId>
@@ -75,7 +89,17 @@
7589
<arg>-Xjvm-default=all</arg>
7690
<arg>-Xbackend-threads=0</arg>
7791
</args>
92+
<compilerPlugins>
93+
<plugin>spring</plugin>
94+
</compilerPlugins>
7895
</configuration>
96+
<dependencies>
97+
<dependency>
98+
<groupId>org.jetbrains.kotlin</groupId>
99+
<artifactId>kotlin-maven-allopen</artifactId>
100+
<version>${kotlin.version}</version>
101+
</dependency>
102+
</dependencies>
79103
</plugin>
80104
<plugin>
81105
<groupId>org.jetbrains.dokka</groupId>
@@ -102,4 +126,4 @@
102126
</plugin>
103127
</plugins>
104128
</build>
105-
</project>
129+
</project>

0 commit comments

Comments
 (0)