From 1d8783b5b3822f47561fe3be8316c11196d8f497 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 15 Dec 2016 14:10:45 +0100 Subject: [PATCH 1/3] Add dependency management for javax.validation Closes gh-7641 --- spring-boot-dependencies/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index f78fb7aad2..18a9b3c7ac 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -100,6 +100,7 @@ 1.0.0 1.5.6 1.2 + 1.1.0.Final 1.1.6 2.2.11 3.3.0.Final @@ -997,6 +998,11 @@ javax.transaction-api ${javax-transaction.version} + + javax.validation + validation-api + ${javax-validation.version} + jaxen jaxen From 4ce91a5366086ab2b837ca6dcb77708b0487fb1c Mon Sep 17 00:00:00 2001 From: Raja Dilip Kolli Date: Wed, 7 Dec 2016 20:30:33 +0530 Subject: [PATCH 2/3] Upgrade to Lombok 1.16.12 Closes gh-7590 --- spring-boot-dependencies/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 18a9b3c7ac..b6c505a84f 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -127,7 +127,7 @@ 3.5.3 2.7 1.1.8 - 1.16.10 + 1.16.12 1.4.6 6.1.0.jre7 1.10.19 From dd7d81a580c3b00cfa5ba2621b22d3208ec2511a Mon Sep 17 00:00:00 2001 From: Alessandro Falappa Date: Fri, 2 Dec 2016 11:04:18 +0100 Subject: [PATCH 3/3] INIT INFO Required Start/Stop as embedded launch script properties Expose the Required-Start and Require-Stop lines in the launch script INIT INFO section as customizable embedded launch script properties. This way one can express dependencies fron other init services by simply changing the configuration in the build script. Closes gh-7555 --- spring-boot-docs/src/main/asciidoc/deployment.adoc | 6 ++++++ .../springframework/boot/loader/tools/launch.script | 4 ++-- .../boot/loader/tools/DefaultLaunchScriptTests.java | 10 ++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/deployment.adoc b/spring-boot-docs/src/main/asciidoc/deployment.adoc index 4a532a3b71..714efaf4ce 100644 --- a/spring-boot-docs/src/main/asciidoc/deployment.adoc +++ b/spring-boot-docs/src/main/asciidoc/deployment.adoc @@ -598,6 +598,12 @@ The following property substitutions are supported with the default script: |The `Provides` section of "`INIT INFO`". Defaults to `spring-boot-application` for Gradle and to `${project.artifactId}` for Maven. +|`initInfoRequiredStart` +|The `Required-Start` section of "`INIT INFO`". Defaults to `$remote_fs $syslog $network`. + +|`initInfoRequiredStop` +|The `Required-Stop` section of "`INIT INFO`". Defaults to `$remote_fs $syslog $network`. + |`initInfoShortDescription` |The `Short-Description` section of "`INIT INFO`". Defaults to `Spring Boot Application` for Gradle and to `${project.name}` for Maven. diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script index 502fc0b36e..84cadd780a 100755 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script @@ -11,8 +11,8 @@ ### BEGIN INIT INFO # Provides: {{initInfoProvides:spring-boot-application}} -# Required-Start: $remote_fs $syslog $network -# Required-Stop: $remote_fs $syslog $network +# Required-Start: {{initInfoRequiredStart:$remote_fs $syslog $network}} +# Required-Stop: {{initInfoRequiredStop:$remote_fs $syslog $network}} # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: {{initInfoShortDescription:Spring Boot Application}} diff --git a/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/DefaultLaunchScriptTests.java b/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/DefaultLaunchScriptTests.java index d7491ff52b..278acaa6f8 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/DefaultLaunchScriptTests.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/DefaultLaunchScriptTests.java @@ -61,6 +61,16 @@ public class DefaultLaunchScriptTests { assertThatPlaceholderCanBeReplaced("initInfoProvides"); } + @Test + public void initInfoRequiredStartCanBeReplaced() throws Exception { + assertThatPlaceholderCanBeReplaced("initInfoRequiredStart"); + } + + @Test + public void initInfoRequiredStopCanBeReplaced() throws Exception { + assertThatPlaceholderCanBeReplaced("initInfoRequiredStop"); + } + @Test public void initInfoShortDescriptionCanBeReplaced() throws Exception { assertThatPlaceholderCanBeReplaced("initInfoShortDescription");