Skip to content

Commit

Permalink
chore: update spring plugin description for Maven (#1203)
Browse files Browse the repository at this point in the history
The `spring` compiler plugin in Maven depends on the `kotlin-maven-allopen` plugin dependency, so the documentation should mention it explicitly. Otherwise it may have been confusing since the Gradle dependency is called `kotlin-spring`, but there is no such artifact for Maven.
  • Loading branch information
mamuf authored Jul 13, 2020
1 parent cb553d1 commit eecc1f5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pages/docs/reference/compiler-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,24 @@ plugins {

</div>

In Maven, enable the `spring` plugin:
In Maven, the `spring` plugin is provided by the `kotlin-maven-allopen` plugin dependency, so to enable it:

<div class="sample" markdown="1" theme="idea" mode="xml" auto-indent="false">

```xml
<compilerPlugins>
<plugin>spring</plugin>
</compilerPlugins>
<configuration>
<compilerPlugins>
<plugin>spring</plugin>
</compilerPlugins>
</configuration>

<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-allopen</artifactId>
<version>${kotlin.version}</version>
</dependency>
</dependencies>
```

</div>
Expand Down

0 comments on commit eecc1f5

Please sign in to comment.