Created
July 24, 2020 19:17
-
-
Save rkamradt/1763680b868b29110d9f12f8768265ec to your computer and use it in GitHub Desktop.
Plugins for Kotlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<executions> | |
<execution> | |
<goals> | |
<goal>build-info</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>com.google.cloud.tools</groupId> | |
<artifactId>jib-maven-plugin</artifactId> | |
<version>2.2.0</version> | |
<configuration> | |
<to> | |
<image>docker.io/rlkamradt/readnewskotlin</image> | |
</to> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>pl.project13.maven</groupId> | |
<artifactId>git-commit-id-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.jetbrains.kotlin</groupId> | |
<artifactId>kotlin-maven-plugin</artifactId> | |
<version>${kotlin.version}</version> | |
<executions> | |
<execution> | |
<id>compile</id> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
<configuration> | |
<sourceDirs> | |
<sourceDir>${project.basedir}/src/main/kotlin</sourceDir> | |
<sourceDir>${project.basedir}/src/main/java</sourceDir> | |
</sourceDirs> | |
<jvmTarget>${java.version}</jvmTarget> | |
<args> | |
<arg>-Xjvm-default=enable</arg> | |
</args> | |
</configuration> | |
</execution> | |
<execution> | |
<id>test-compile</id> | |
<goals> | |
<goal>test-compile</goal> | |
</goals> | |
<configuration> | |
<sourceDirs> | |
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir> | |
<sourceDir>${project.basedir}/src/test/java</sourceDir> | |
</sourceDirs> | |
<jvmTarget>11</jvmTarget> | |
</configuration> | |
</execution> | |
</executions> | |
<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> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.8.1</version> | |
<configuration> | |
<source>11</source> | |
<target>11</target> | |
</configuration> | |
<executions> | |
<!-- Replacing default-compile as it is treated specially by maven --> | |
<execution> | |
<id>default-compile</id> | |
<phase>none</phase> | |
</execution> | |
<!-- Replacing default-testCompile as it is treated specially by maven --> | |
<execution> | |
<id>default-testCompile</id> | |
<phase>none</phase> | |
</execution> | |
<execution> | |
<id>java-compile</id> | |
<phase>compile</phase> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>java-test-compile</id> | |
<phase>test-compile</phase> | |
<goals> | |
<goal>testCompile</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment