Use properties for Boot and GraphQL Java versions

This commit is contained in:
Rossen Stoyanchev
2021-09-16 11:15:47 +01:00
parent 1b72e8107d
commit 892d2bd344
6 changed files with 9 additions and 7 deletions

View File

@@ -4,6 +4,8 @@ plugins {
ext {
moduleProjects = [project(":spring-graphql"), project(":spring-graphql-test")]
bootVersion = "2.5.4"
graphQlJavaVersion = "17.2"
}
description = "Spring GraphQL"
@@ -42,7 +44,7 @@ configure(moduleProjects) {
mavenBom "org.junit:junit-bom:5.7.2"
}
dependencies {
dependency 'com.graphql-java:graphql-java:17.2'
dependency "com.graphql-java:graphql-java:${graphQlJavaVersion}"
dependency 'org.assertj:assertj-core:3.20.2'
dependencySet(group: 'org.apache.logging.log4j', version: '2.14.1') {
entry 'log4j-api'

View File

@@ -1,7 +1,7 @@
import org.springframework.boot.gradle.plugin.SpringBootPlugin
plugins {
id 'org.springframework.boot' version '2.5.4' apply false
id 'org.springframework.boot' version "${bootVersion}" apply false
id 'java-library'
}
@@ -24,7 +24,7 @@ dependencyManagement {
dependencies {
api project(':spring-graphql')
api 'com.graphql-java:graphql-java:17.2'
api "com.graphql-java:graphql-java:${graphQlJavaVersion}"
api 'io.projectreactor:reactor-core'
api 'org.springframework:spring-context'
api 'org.springframework.boot:spring-boot-starter'

View File

@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.5.4'
id 'org.springframework.boot' version "${bootVersion}"
id 'java'
}
group = 'com.example'

View File

@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.5.4'
id 'org.springframework.boot' version "${bootVersion}"
id 'java'
}
group = 'com.example'

View File

@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.5.4'
id 'org.springframework.boot' version "${bootVersion}"
id 'java'
}
group = 'com.example'

View File

@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.5.4'
id 'org.springframework.boot' version "${bootVersion}"
id 'java'
}
group = 'com.example'