parent
f35d6b6bd6
commit
18a2b2e9fb
|
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
id "java-gradle-plugin"
|
||||
id "maven-publish"
|
||||
id "org.asciidoctor.jvm.convert"
|
||||
id "org.antora"
|
||||
id "org.springframework.boot.conventions"
|
||||
id "org.springframework.boot.maven-repository"
|
||||
id "org.springframework.boot.optional-dependencies"
|
||||
|
|
@ -10,7 +10,7 @@ plugins {
|
|||
description = "Spring Boot Gradle Plugins"
|
||||
|
||||
configurations {
|
||||
documentation
|
||||
antoraContent
|
||||
"testCompileClasspath" {
|
||||
// Downgrade SLF4J is required for tests to run in Eclipse
|
||||
resolutionStrategy.force("org.slf4j:slf4j-api:1.7.36")
|
||||
|
|
@ -34,8 +34,6 @@ configurations {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
asciidoctorExtensions("io.spring.asciidoctor:spring-asciidoctor-extensions-section-ids")
|
||||
|
||||
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform"))
|
||||
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
|
||||
implementation("io.spring.gradle:dependency-management-plugin")
|
||||
|
|
@ -86,36 +84,8 @@ validatePlugins {
|
|||
enableStricterValidation = true
|
||||
}
|
||||
|
||||
task dependencyVersions(type: org.springframework.boot.build.constraints.ExtractVersionConstraints) {
|
||||
enforcedPlatform(":spring-boot-project:spring-boot-dependencies")
|
||||
}
|
||||
|
||||
tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
|
||||
dependsOn dependencyVersions
|
||||
inputs.dir('src/docs/gradle').withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName('buildScripts')
|
||||
doFirst {
|
||||
attributes "dependency-management-plugin-version": dependencyVersions.versionConstraints["io.spring.gradle:dependency-management-plugin"]
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('test') {
|
||||
inputs.dir('src/docs/gradle').withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName('buildScripts')
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
sources {
|
||||
include "index.adoc"
|
||||
}
|
||||
}
|
||||
|
||||
task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
|
||||
sources {
|
||||
include "index.adoc"
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
|
||||
attributes "native-build-tools-version": nativeBuildToolsVersion
|
||||
inputs.dir('src/docs/antora/modules/gradle-plugin/examples').withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName('buildScripts')
|
||||
}
|
||||
|
||||
javadoc {
|
||||
|
|
@ -133,25 +103,33 @@ javadoc {
|
|||
}
|
||||
}
|
||||
|
||||
task zip(type: Zip) {
|
||||
dependsOn asciidoctor, asciidoctorPdf
|
||||
duplicatesStrategy "fail"
|
||||
from(asciidoctorPdf.outputDir) {
|
||||
into "reference/pdf"
|
||||
rename "index.pdf", "${project.name}-reference.pdf"
|
||||
}
|
||||
from(asciidoctor.outputDir) {
|
||||
into "reference/htmlsingle"
|
||||
def antoraGradlePluginLocalAggregateContent = tasks.register("antoraGradlePluginLocalAggregateContent", Zip) {
|
||||
destinationDirectory = layout.buildDirectory.dir('generated/docs/antora-content')
|
||||
archiveClassifier = "gradle-plugin-local-aggregate-content"
|
||||
from(tasks.getByName("generateAntoraYml")) {
|
||||
into "modules"
|
||||
}
|
||||
}
|
||||
|
||||
def antoraGradlePluginCatalogContent = tasks.register("antoraGradlePluginCatalogContent", Zip) {
|
||||
destinationDirectory = layout.buildDirectory.dir('generated/docs/antora-content')
|
||||
archiveClassifier = "gradle-plugin-catalog-content"
|
||||
from(javadoc) {
|
||||
into "api"
|
||||
into "api/java"
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("generateAntoraPlaybook") {
|
||||
xrefStubs = ["appendix:.*", "api:.*", "reference:.*"]
|
||||
alwaysInclude = [name: "gradle-plugin", classifier: "local-aggregate-content"]
|
||||
dependsOn antoraGradlePluginLocalAggregateContent
|
||||
}
|
||||
|
||||
tasks.named("antora") {
|
||||
inputs.files(antoraGradlePluginLocalAggregateContent, antoraGradlePluginCatalogContent)
|
||||
}
|
||||
|
||||
artifacts {
|
||||
"documentation" zip
|
||||
antoraContent antoraGradlePluginCatalogContent
|
||||
}
|
||||
|
||||
toolchain {
|
||||
maximumCompatibleJavaVersion = JavaLanguageVersion.of(20)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
name: spring-boot
|
||||
ext:
|
||||
zip_contents_collector:
|
||||
include:
|
||||
- name: gradle-plugin
|
||||
classifier: catalog-content
|
||||
module: gradle-plugin
|
||||
destination: content-catalog
|
||||
|
|
@ -0,0 +1 @@
|
|||
include::gradle-plugin:partial$nav-gradle-plugin.adoc[]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
plugins {
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
id 'org.graalvm.buildtools.native' version '{version-native-build-tools}'
|
||||
id 'java'
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
plugins {
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
id("org.graalvm.buildtools.native") version "{version-native-build-tools}"
|
||||
java
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
plugins {
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
plugins {
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@ buildscript {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{gradle-project-version}'
|
||||
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version-spring-boot}'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
// tag::apply[]
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
// tag::apply[]
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
apply(plugin = "io.spring.dependency-management")
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::additional[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::additional[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::build-info[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::build-info[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::custom-values[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::custom-values[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::exclude-time[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::exclude-time[]
|
||||
|
|
@ -3,8 +3,8 @@ import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
|
|||
// tag::configure-bom[]
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}" apply false
|
||||
id("io.spring.dependency-management") version "{dependency-management-plugin-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}" apply false
|
||||
id("io.spring.dependency-management") version "{version-dependency-management-plugin}"
|
||||
}
|
||||
|
||||
dependencyManagement {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::configure-bom[]
|
||||
|
|
@ -2,7 +2,7 @@ import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::configure-bom[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::configure-platform[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::configure-platform[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
plugins {
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
|
||||
|
||||
plugins {
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
apply(plugin = "io.spring.dependency-management")
|
||||
|
|
@ -4,6 +4,6 @@ buildscript {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{gradle-project-version}'
|
||||
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version-spring-boot}'
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
plugins {
|
||||
id 'org.springframework.boot' version '{version-spring-boot}' apply false
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
plugins {
|
||||
id("org.springframework.boot") version "{version-spring-boot}" apply false
|
||||
}
|
||||
|
|
@ -4,6 +4,6 @@ buildscript {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{gradle-project-version}'
|
||||
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version-spring-boot}'
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
apply(plugin = "io.spring.dependency-management")
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::main-class[]
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
java
|
||||
application
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::main-class[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::caches[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -3,7 +3,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::buildpacks[]
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::buildpacks[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::caches[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -3,7 +3,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -3,7 +3,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -3,7 +3,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -3,7 +3,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -3,7 +3,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::env[]
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::env[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::env-runtime[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::env[]
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::env[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::image-name[]
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::image-name[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -3,7 +3,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::classifiers[]
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::classifiers[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootJar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootJar>("bootJar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::main-class[]
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::main-class[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::main-class[]
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::main-class[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'war'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootWar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootWar
|
|||
|
||||
plugins {
|
||||
war
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootWar>("bootWar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'war'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
tasks.named("bootWar") {
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootWar
|
|||
|
||||
plugins {
|
||||
war
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
tasks.named<BootWar>("bootWar") {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::disable-jar[]
|
||||
|
|
@ -2,7 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||
|
||||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::disable-jar[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::main-class[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
java
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::main-class[]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'war'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
war
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
apply(plugin = "io.spring.dependency-management")
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'maven-publish'
|
||||
id 'org.springframework.boot' version '{gradle-project-version}'
|
||||
id 'org.springframework.boot' version '{version-spring-boot}'
|
||||
}
|
||||
|
||||
// tag::publishing[]
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
java
|
||||
`maven-publish`
|
||||
id("org.springframework.boot") version "{gradle-project-version}"
|
||||
id("org.springframework.boot") version "{version-spring-boot}"
|
||||
}
|
||||
|
||||
// tag::publishing[]
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue