搜索Gradle插件

使用插件DSL

plugins {
  id("dev.icerock.mobile.multiplatform-resources") version "0.24.1"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("dev.icerock.moko:resources-generator:0.24.1")
  }
}

apply(plugin = "dev.icerock.mobile.multiplatform-resources")

使用插件DSL

plugins {
  id "dev.icerock.mobile.multiplatform-resources" version "0.24.1"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "dev.icerock.moko:resources-generator:0.24.1"
  }
}

apply plugin: "dev.icerock.mobile.multiplatform-resources"

了解如何将插件应用到子项目中