搜索Gradle插件

使用plugins DSL

plugins {
  id("com.devsoap.vaadin-flow") version "1.5.1"
}

使用遗留插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.devsoap:gradle-vaadin-flow-plugin:1.5.1")
  }
}

apply(plugin = "com.devsoap.vaadin-flow")

使用plugins DSL

plugins {
  id "com.devsoap.vaadin-flow" version "1.5.1"
}

使用遗留插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.devsoap:gradle-vaadin-flow-plugin:1.5.1"
  }
}

apply plugin: "com.devsoap.vaadin-flow"

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