Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.jetbrains.kotlin.konan") version "1.3.41"
}

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.41")
  }
}

apply(plugin = "org.jetbrains.kotlin.konan")

Using the plugins DSL:

plugins {
  id "org.jetbrains.kotlin.konan" version "1.3.41"
}

Using legacy plugin application:

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

apply plugin: "org.jetbrains.kotlin.konan"

Learn how to apply plugins to subprojects