Skip to content

Commit f70c320

Browse files
authored
Merge pull request #415 from okue/spring-boot-version
Upgrade spring boot version to 2.2.1
2 parents 570ad46 + d2f4fa0 commit f70c320

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@
1414
* under the License.
1515
*/
1616

17+
import org.springframework.boot.gradle.plugin.SpringBootPlugin
18+
1719
// ./gradlew clean && ./gradlew uploadArchives -Prelease
1820

1921
buildscript {
20-
ext.kotlin_version = '1.3.50'
22+
ext {
23+
kotlin_version = '1.3.50'
24+
spring_boot_version = '2.2.1.RELEASE'
25+
}
2126

2227
repositories {
2328
mavenCentral()
@@ -32,7 +37,7 @@ buildscript {
3237
classpath 'io.franzbecker:gradle-lombok:3.1.0'
3338
classpath 'io.spring.gradle:dependency-management-plugin:1.0.8.RELEASE'
3439
classpath 'io.spring.gradle:propdeps-plugin:0.0.10.RELEASE'
35-
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.2.1.RELEASE'
40+
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
3641
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
3742
}
3843
}
@@ -94,7 +99,7 @@ subprojects {
9499

95100
dependencyManagement {
96101
imports {
97-
mavenBom 'org.springframework.boot:spring-boot-dependencies:2.2.0.RELEASE'
102+
mavenBom SpringBootPlugin.BOM_COORDINATES
98103
}
99104

100105
dependencies {
@@ -209,7 +214,7 @@ subprojects {
209214
options.compilerArgs << '-Xlint:all' << '-Xlint:deprecation' << '-Werror' << '-Xlint:-processing' << '-parameters'
210215
}
211216

212-
project.plugins.withType(org.springframework.boot.gradle.plugin.SpringBootPlugin) {
217+
project.plugins.withType(SpringBootPlugin) {
213218
bootRun {
214219
systemProperties System.properties
215220
}

0 commit comments

Comments
 (0)