Kotlin-maven-plugin filtering properties?


#1

I have a Spring Boot application with Kotlin and Maven, and an application.properties in src/main/resources. If I build that application with kotlin version 1.2.10, the application.properties will be present in the JAR. If I build it with kotlin version 1.2.20 and change nothing else, application.properties is missing from the jar.

What changed in Kotlin? I’m assuming kotlin-maven-plugin rather than one of the other Kotlin dependencies?


#2

Ok, I guess I’m just rolling back to an earlier Kotlin version until I hear some signs that this has been fixed.


#3

Ah, looks like it’s this:
https://youtrack.jetbrains.com/issue/KT-21581


#4

YouTrack suggests that it’s fixed in 1.2.30, and I can confirm that I’m not losing Spring Boot properties anymore with kotlin version set to 1.2.30.