搜索Gradle插件

使用插件DSL

plugins {
  id("io.github.vlsergey.spring-data-rest-utils") version "0.45.1"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("io.github.vlsergey.springdatarestutils:spring-data-rest-utils:0.45.1")
  }
}

apply(plugin = "io.github.vlsergey.spring-data-rest-utils")

使用插件DSL

plugins {
  id "io.github.vlsergey.spring-data-rest-utils" version "0.45.1"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "io.github.vlsergey.springdatarestutils:spring-data-rest-utils:0.45.1"
  }
}

apply plugin: "io.github.vlsergey.spring-data-rest-utils"

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