Skip to content

Commit

Permalink
Include Maven configuration for javaParameters option (#5619)
Browse files Browse the repository at this point in the history
  • Loading branch information
lelerabino committed Jul 13, 2021
1 parent a778526 commit 7bb0f5b
Showing 1 changed file with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Like with Java, the parameter name data for method parameters is not retained at

To enable retention of parameter name data with Kotlin, set the `javaParameters` option to `true` in your `build.gradle`:

.build.gradle
.configuration in Gradle
[source,groovy]
----
compileTestKotlin {
Expand All @@ -12,3 +12,29 @@ compileTestKotlin {
}
}
----

Or if using Maven configure the Micronaut Maven Plugin accordingly:

.configuration in Maven
[source,xml]
----
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- ... -->
<build>
<plugins>
<!-- ... -->
<plugin>
<artifactId>kotlin-maven-plugin</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<configuration>
<javaParameters>true</javaParameters>
<!-- ... -->
</configuration>
<!-- ... -->
</plugin>
<!-- ... -->
</plugins>
</build>
</project>
----

0 comments on commit 7bb0f5b

Please sign in to comment.