Skip to content

Commit 99a5b9e

Browse files
committed
Enable Kotlin usage for Spring
1 parent d5ba8e6 commit 99a5b9e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,12 +635,23 @@
635635
<groupId>org.jetbrains.kotlin</groupId>
636636
<artifactId>kotlin-maven-plugin</artifactId>
637637
<version>${kotlin.version}</version>
638+
<dependencies>
639+
<dependency>
640+
<groupId>org.jetbrains.kotlin</groupId>
641+
<artifactId>kotlin-maven-allopen</artifactId>
642+
<version>${kotlin.version}</version>
643+
</dependency>
644+
</dependencies>
638645
<extensions>true</extensions>
639646
<configuration>
640647
<javaParameters>true</javaParameters>
641648
<args>
642649
<arg>-Xjsr305=strict</arg> <!-- Enable strict mode for JSR-305 annotations -->
643650
</args>
651+
<compilerPlugins>
652+
<plugin>spring</plugin>
653+
</compilerPlugins>
654+
<jvmTarget>${java.version}</jvmTarget>
644655
</configuration>
645656
<executions>
646657
<execution>

0 commit comments

Comments
 (0)