-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Currently I am using configuration like this
<plugin>
<groupId>com.github.gantsign.maven</groupId>
<artifactId>ktlint-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<experimental>true</experimental>
<sourceRoots>
<sourceRoot>${project.basedir}/src/main/kotlin</sourceRoot>
</sourceRoots>
<testSourceRoots>
<sourceRoot>${project.basedir}/src/test/kotlin</sourceRoot>
</testSourceRoots>
</configuration>
<executions>
<execution>
<id>check</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
Since the project contains combined Java and Kotlin sources, but all Kotlin sources are in the folder structure above.
This works, but I am getting these warnings:
[WARNING] Parameter 'sourceRoots' is read-only, must not be used in configuration
[WARNING] Parameter 'testSourceRoots' is read-only, must not be used in configuration
If it is read-only, I do not know why it works (maybe it is not enforced), but I did not find any simpler solution.
Should I configure the plugin in some other way or maybe from the plugin side these parameters should have read-only=false?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels