Search Gradle plugins

org.jetbrains.kotlin.platform.native

Kotlin/Native plugin for multiplatform development

https://kotlinlang.org/

Version 1.3.31 (latest)

Created 24 April 2019.

An experimental Kotlin/Native plugin integrated with Gradle support for native languages and
providing a new DSL which is much closer to the DSL of Kotlin/JVM and Kotlin/JS plugins.

The plugin is intended for native parts of multiplatform projects.

Using the plugins DSL:

plugins {
  id "org.jetbrains.kotlin.platform.native" version "1.3.31"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:1.3.31"
  }
}

apply plugin: "org.jetbrains.kotlin.platform.native"

Using the plugins DSL:

plugins {
  id("org.jetbrains.kotlin.platform.native") version "1.3.31"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.jetbrains.kotlin:kotlin-native-gradle-plugin:1.3.31")
  }
}

apply(plugin = "org.jetbrains.kotlin.platform.native")

Learn how to apply plugins to subprojects