Class SimpleKotlinProjectSettings
java.lang.Object
io.spring.initializr.generator.spring.code.kotlin.SimpleKotlinProjectSettings
- All Implemented Interfaces:
KotlinProjectSettings
Commons settings for Kotlin projects.
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleKotlinProjectSettings
(String version) Create an instance with the kotlin version to use.SimpleKotlinProjectSettings
(String version, String jvmTarget) Create an instance with the kotlin version and the target version of the generated JVM bytecode. -
Method Summary
Modifier and TypeMethodDescriptionReturn thejvmTarget
to use.Return the version of Kotlin to use.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.spring.initializr.generator.spring.code.kotlin.KotlinProjectSettings
getCompilerArgs
-
Constructor Details
-
SimpleKotlinProjectSettings
Create an instance with the kotlin version to use.- Parameters:
version
- the kotlin version to use
-
SimpleKotlinProjectSettings
Create an instance with the kotlin version and the target version of the generated JVM bytecode.- Parameters:
version
- the kotlin version to usejvmTarget
- the target version of the generated JVM bytecode
-
-
Method Details
-
getVersion
Description copied from interface:KotlinProjectSettings
Return the version of Kotlin to use.- Specified by:
getVersion
in interfaceKotlinProjectSettings
- Returns:
- the kotlin version
-
getJvmTarget
Description copied from interface:KotlinProjectSettings
Return thejvmTarget
to use.- Specified by:
getJvmTarget
in interfaceKotlinProjectSettings
- Returns:
- the jvm target
-