All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.autonomousapps.kit.gradle.android.KotlinOptions.kt Maven / Gradle / Ivy

The newest version!
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
package com.autonomousapps.kit.gradle.android

import com.autonomousapps.kit.render.Element
import com.autonomousapps.kit.render.Scribe

public class KotlinOptions @JvmOverloads constructor(
  private val jvmTarget: String = "1.8",
) : Element.Block {

  override val name: String = "kotlinOptions"

  override fun render(scribe: Scribe): String = scribe.block(this) { s ->
    s.line {
      it.append("jvmTarget = \"")
      it.append(jvmTarget)
      it.append("\"")
    }
  }

  public companion object {
    @JvmField
    public val DEFAULT: KotlinOptions = KotlinOptions()
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy