搜索Gradle插件

使用plugins DSL

plugins {
  id("com.rickclephas.kmp.nativecoroutines") version "1.0.0-ALPHA-34"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin:1.0.0-ALPHA-34")
  }
}

apply(plugin = "com.rickclephas.kmp.nativecoroutines")

使用plugins DSL

plugins {
  id "com.rickclephas.kmp.nativecoroutines" version "1.0.0-ALPHA-34"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin:1.0.0-ALPHA-34"
  }
}

apply plugin: "com.rickclephas.kmp.nativecoroutines"

学习如何将插件应用到子项目中