Skip to content

kotlin module uses different kotlin version than what boot provides, prevents boot 3.1 compatibility builds #1015

@spencergibb

Description

@spencergibb

This causes build failures when testing compatibility with boot 3.1.x. It also sets the target jvm version to 1.8, it should be 17

<plugin>
<artifactId>kotlin-maven-plugin</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>1.6.0</version>
<configuration>
<args>
<arg>-Xjsr305=strict</arg>
</args>
<compilerPlugins>
<plugin>spring</plugin>
</compilerPlugins>
<jvmTarget>1.8</jvmTarget>
</configuration>
<executions>
<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>
<jvmTarget>1.8</jvmTarget>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-allopen</artifactId>
<version>1.6.0</version>
</dependency>
</dependencies>
</plugin>

One potential issue is the use of kotlin-maven-allopen which I don't think is managed anywhere. Maybe we can ask the boot team to manage it?

Here is a similar change that gateway made spring-cloud/spring-cloud-gateway@4c4c6f3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions