搜索Gradle插件

使用插件DSL

plugins {
  id("dev.combination.dotnet") version "1.0.14"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("dev.combination.dotnet:gradle-dotnet-plugin:1.0.14")
  }
}

apply(plugin = "dev.combination.dotnet")

使用插件DSL

plugins {
  id "dev.combination.dotnet" version "1.0.14"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "dev.combination.dotnet:gradle-dotnet-plugin:1.0.14"
  }
}

apply plugin: "dev.combination.dotnet"

了解如何向子项目应用插件