diff --git a/appengine-java11/springboot-helloworld/pom.xml b/appengine-java11/springboot-helloworld/pom.xml index 6ea17ccd315..0aaf5dff9e0 100644 --- a/appengine-java11/springboot-helloworld/pom.xml +++ b/appengine-java11/springboot-helloworld/pom.xml @@ -39,7 +39,7 @@ org.springframework.boot spring-boot-dependencies - 2.2.6.RELEASE + 2.3.0.RELEASE pom import @@ -70,7 +70,7 @@ org.springframework.boot spring-boot-starter-jetty - 2.2.6.RELEASE + 2.3.0.RELEASE @@ -79,7 +79,7 @@ org.springframework.boot spring-boot-maven-plugin - 2.2.6.RELEASE + 2.3.0.RELEASE diff --git a/appengine-java11/tasks-handler/pom.xml b/appengine-java11/tasks-handler/pom.xml index e447a44b613..eb881f38a74 100644 --- a/appengine-java11/tasks-handler/pom.xml +++ b/appengine-java11/tasks-handler/pom.xml @@ -42,7 +42,7 @@ limitations under the License. org.springframework.boot spring-boot-dependencies - 2.2.6.RELEASE + 2.3.0.RELEASE pom import @@ -62,7 +62,7 @@ limitations under the License. org.springframework.boot spring-boot-starter-web - 2.2.6.RELEASE + 2.3.0.RELEASE @@ -74,7 +74,7 @@ limitations under the License. org.springframework.boot spring-boot-starter-jetty - 2.2.6.RELEASE + 2.3.0.RELEASE @@ -84,7 +84,7 @@ limitations under the License. org.springframework.boot spring-boot-maven-plugin - 2.2.6.RELEASE + 2.3.0.RELEASE diff --git a/flexible/helloworld-springboot/pom.xml b/flexible/helloworld-springboot/pom.xml index feee7ed91e0..48cea7cb329 100644 --- a/flexible/helloworld-springboot/pom.xml +++ b/flexible/helloworld-springboot/pom.xml @@ -40,17 +40,17 @@ org.springframework.boot spring-boot-starter-web - 2.2.6.RELEASE + 2.3.0.RELEASE org.springframework.boot spring-boot-starter-actuator - 2.2.6.RELEASE + 2.3.0.RELEASE org.springframework.boot spring-boot-starter-test - 2.2.6.RELEASE + 2.3.0.RELEASE test @@ -66,7 +66,7 @@ org.springframework.boot spring-boot-maven-plugin - 2.2.6.RELEASE + 2.3.0.RELEASE diff --git a/run/helloworld/pom.xml b/run/helloworld/pom.xml index acc39eb1639..143903440c7 100644 --- a/run/helloworld/pom.xml +++ b/run/helloworld/pom.xml @@ -32,7 +32,7 @@ limitations under the License. org.springframework.boot spring-boot-dependencies - 2.2.6.RELEASE + 2.3.0.RELEASE pom import diff --git a/run/helloworld/src/main/java/com/example/helloworld/HelloworldApplication.java b/run/helloworld/src/main/java/com/example/helloworld/HelloworldApplication.java index 95902709e1c..ac6e150230b 100644 --- a/run/helloworld/src/main/java/com/example/helloworld/HelloworldApplication.java +++ b/run/helloworld/src/main/java/com/example/helloworld/HelloworldApplication.java @@ -37,6 +37,8 @@ String hello() { } public static void main(String[] args) { + String port = System.getenv().getOrDefault("PORT", "8080"); + System.setProperty("server.port", port); SpringApplication.run(HelloworldApplication.class, args); } } diff --git a/run/helloworld/src/main/resources/application.properties b/run/helloworld/src/main/resources/application.properties index 2ad7e0e6298..79dbdb51e2b 100644 --- a/run/helloworld/src/main/resources/application.properties +++ b/run/helloworld/src/main/resources/application.properties @@ -11,5 +11,3 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - -server.port = ${PORT} diff --git a/run/image-processing/pom.xml b/run/image-processing/pom.xml index 82080698037..ec3ca3a1b9d 100644 --- a/run/image-processing/pom.xml +++ b/run/image-processing/pom.xml @@ -35,7 +35,7 @@ limitations under the License. org.springframework.boot spring-boot-dependencies - 2.2.6.RELEASE + 2.3.0.RELEASE pom import diff --git a/run/markdown-preview/editor/pom.xml b/run/markdown-preview/editor/pom.xml index 064744909e8..8b46a06b827 100644 --- a/run/markdown-preview/editor/pom.xml +++ b/run/markdown-preview/editor/pom.xml @@ -36,7 +36,7 @@ org.springframework.boot spring-boot-dependencies - 2.2.6.RELEASE + 2.3.0.RELEASE pom import diff --git a/run/markdown-preview/renderer/pom.xml b/run/markdown-preview/renderer/pom.xml index f9a8e1b712d..020abf28bba 100644 --- a/run/markdown-preview/renderer/pom.xml +++ b/run/markdown-preview/renderer/pom.xml @@ -36,7 +36,7 @@ org.springframework.boot spring-boot-dependencies - 2.2.6.RELEASE + 2.3.0.RELEASE pom import diff --git a/run/pubsub/pom.xml b/run/pubsub/pom.xml index d3568485686..3e813dcca32 100644 --- a/run/pubsub/pom.xml +++ b/run/pubsub/pom.xml @@ -35,7 +35,7 @@ limitations under the License. org.springframework.boot spring-boot-dependencies - 2.2.6.RELEASE + 2.3.0.RELEASE pom import diff --git a/spanner/spring-data/pom.xml b/spanner/spring-data/pom.xml index e79adb81dca..e4f5f5d4663 100644 --- a/spanner/spring-data/pom.xml +++ b/spanner/spring-data/pom.xml @@ -61,7 +61,7 @@ limitations under the License. org.springframework.boot spring-boot-maven-plugin - 2.2.6.RELEASE + 2.3.0.RELEASE com.example.spanner.QuickStartSample diff --git a/vision/spring-framework/pom.xml b/vision/spring-framework/pom.xml index b6dc86f8a71..607eaebac0a 100644 --- a/vision/spring-framework/pom.xml +++ b/vision/spring-framework/pom.xml @@ -19,7 +19,7 @@ limitations under the License. 1.8 1.8 - 2.2.6.RELEASE + 2.3.0.RELEASE