Hi! I have a question about kotlin-maven-plugin. ...
# build-tools
m
Hi! I have a question about kotlin-maven-plugin. Do I have to provide configuration parameters explicitly like in example below:
Copy code
<plugin>
	<groupId>org.jetbrains.kotlin</groupId>
	<artifactId>kotlin-maven-plugin</artifactId>
	<version>${kotlin.version}</version>
	<executions>
		<execution>
			<id>compile</id>
			<phase>compile</phase>
			<goals>
				<goal>compile</goal>
			</goals>
		</execution>
		<execution>
			<id>test-compile</id>
			<phase>test-compile</phase>
			<goals>
				<goal>test-compile</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<jvmTarget>${java.version}</jvmTarget>
		<javaParameters>true</javaParameters>
	</configuration>
</plugin>
or I could simply set a property like this:
Copy code
<properties>
	<kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
</properties>
i
Configuration parameters have default values bound to particular properties, so you can use those properties if you find it more convenient.
👍 1