搜索Gradle模块

使用模块DSL

plugins {
  id("ch.tutteli.settings") version "1.0.0"
}

使用旧版模块应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("ch.tutteli:tutteli-gradle-settings:1.0.0")
  }
}

apply(plugin = "ch.tutteli.settings")

使用模块DSL

plugins {
  id "ch.tutteli.settings" version "1.0.0"
}

使用旧版模块应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "ch.tutteli:tutteli-gradle-settings:1.0.0"
  }
}

apply plugin: "ch.tutteli.settings"

学习如何将模块应用到子项目中