name.remal.kotlin-settings

Plugin class: name.remal.gradle_plugins.plugins.kotlin.KotlinJvmSettingsPlugin

plugins {
    id 'name.remal.kotlin-settings' version '1.5.0'
}
plugins {
    id("name.remal.kotlin-settings") version "1.5.0"
}

 

This plugin works only if kotlin plugin is applied.

The plugin applies name.remal.java-settings plugin.

The plugin applies these plugins if they are available:

  • kotlin-allopen
  • kotlin-jpa
  • kotlin-noarg
  • kotlin-spring

 

This plugin helps to configure kotlin plugin.

  • If targetCompatibility is Java 8 compatible:
    • Sets jvmTarget.
    • Sets javaParameters to true.
    • Adds -Xjvm-default=compatibility compiler flag.
  • Sets kapt.correctErrorTypes to true if kapt Kotlin plugin enabled.
  • If all-open Kotlin plugin is applied, adds these annotations as open-annotations:
    • javax.inject.Inject