Skip to content

Commit 4ac1266

Browse files
committed
Explicitly enable config properties scan in java release scripts
This commit also upgrades the Spring Boot version used by the scripts to 2.2.4 which is why the explicit annotation is required. Closes gh-20174
1 parent e065ee7 commit 4ac1266

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ci/images/releasescripts/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.2.0.RELEASE</version>
8+
<version>2.2.4.RELEASE</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>io.spring.concourse.releasescripts</groupId>

ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/Application.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,8 +18,10 @@
1818

1919
import org.springframework.boot.SpringApplication;
2020
import org.springframework.boot.autoconfigure.SpringBootApplication;
21+
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
2122

2223
@SpringBootApplication
24+
@ConfigurationPropertiesScan
2325
public class Application {
2426

2527
public static void main(String[] args) {

0 commit comments

Comments
 (0)