Skip to content

Commit

Permalink
🔧 : add spring annotation support in kotlin for non open classes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubuisson committed Feb 1, 2020
1 parent 9a22672 commit fff1259
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,19 @@
<plugins>
<!-- kotlin compilation -->
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>compile</id>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>

<configuration>
<compilerPlugins>
<plugin>spring</plugin>
</compilerPlugins>
</configuration>

<executions>
<execution>
<id>compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
Expand All @@ -270,12 +277,20 @@
<phase>process-test-sources</phase>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
</goals>
</execution>
</executions>

<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-allopen</artifactId>
<version>${kotlin.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
Expand Down

0 comments on commit fff1259

Please sign in to comment.