wilkinsona / project-generator

3 stars 4 forks source link

Add support for adding a <configuration> to a Maven <plugin> declaration #12

Closed wilkinsona closed 5 years ago

wilkinsona commented 5 years ago

The API currently allows a <configuration> to be configured on a specific <execution> but not on the <plugin> as a whole. We need to support this for Kotlin:

<plugin>
    <artifactId>kotlin-maven-plugin</artifactId>
    <groupId>org.jetbrains.kotlin</groupId>
    <configuration>
        <args>
            <arg>-Xjsr305=strict</arg>
        </args>
        <compilerPlugins>
            <plugin>spring</plugin>
        </compilerPlugins>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-maven-allopen</artifactId>
            <version>${kotlin.version}</version>
        </dependency>
    </dependencies>
</plugin>