新 gradle apply plugin 与 plugins

司马钱明
2023-12-01

plugins

plugins {
  id 'org.springframework.boot' version '2.1.0.RELEASE'
}

apply plugin

buildscript {
	ext {
		springBootVersion = '2.1.0.RELEASE'
	}
	repositories {
		mavenCentral()
	}
	dependencies {
		classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
	}
}
apply plugin: 'org.springframework.boot'
 类似资料: