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