Skip to content

Commit cc843b3

Browse files
authored
Merge pull request #328 from graphql-java-kickstart/gradle-7
chore(deps): update dependency gradle to v7.0
2 parents 0b965a9 + f7b9e30 commit cc843b3

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,5 @@ nexusStaging {
184184
}
185185

186186
wrapper {
187-
gradleVersion = "${GRADLE_WRAPPER_VER}"
187+
distributionType = Wrapper.DistributionType.ALL
188188
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ LIB_JACKSON_VER=2.12.0
1212
LIB_SLF4J_VER=1.7.30
1313
SOURCE_COMPATIBILITY=1.8
1414
TARGET_COMPATIBILITY=1.8
15-
GRADLE_WRAPPER_VER=6.7.1
15+
GRADLE_WRAPPER_VER=7.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

graphql-java-kickstart/build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ jar {
44
bndfile = 'bnd.bnd'
55
}
66

7+
apply plugin: 'java-library-distribution'
8+
79
dependencies {
810
// GraphQL
9-
compile "com.graphql-java:graphql-java:$LIB_GRAPHQL_JAVA_VER"
11+
api "com.graphql-java:graphql-java:$LIB_GRAPHQL_JAVA_VER"
1012
implementation "org.slf4j:slf4j-api:$LIB_SLF4J_VER"
1113

1214
// JSON
13-
compile "com.fasterxml.jackson.core:jackson-core:$LIB_JACKSON_VER"
14-
compile "com.fasterxml.jackson.core:jackson-annotations:$LIB_JACKSON_VER"
15-
compile "com.fasterxml.jackson.core:jackson-databind:$LIB_JACKSON_VER"
16-
compile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$LIB_JACKSON_VER"
15+
api "com.fasterxml.jackson.core:jackson-core:$LIB_JACKSON_VER"
16+
api "com.fasterxml.jackson.core:jackson-annotations:$LIB_JACKSON_VER"
17+
api "com.fasterxml.jackson.core:jackson-databind:$LIB_JACKSON_VER"
18+
api "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$LIB_JACKSON_VER"
1719
}

graphql-java-servlet/build.gradle

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ dependencies {
1717
api(project(':graphql-java-kickstart'))
1818

1919
// Servlet
20-
compile 'javax.servlet:javax.servlet-api:3.1.0'
21-
compile 'javax.websocket:javax.websocket-api:1.1'
20+
api 'javax.servlet:javax.servlet-api:3.1.0'
21+
api 'javax.websocket:javax.websocket-api:1.1'
2222
implementation "org.slf4j:slf4j-api:$LIB_SLF4J_VER"
2323

2424
// OSGi
@@ -29,15 +29,15 @@ dependencies {
2929
compileOnly 'org.osgi:org.osgi.service.metatype.annotations:1.3.0'
3030
compileOnly 'org.osgi:org.osgi.annotation:6.0.0'
3131

32-
testCompile 'io.github.graphql-java:graphql-java-annotations:8.3'
32+
testImplementation 'io.github.graphql-java:graphql-java-annotations:8.3'
3333

3434
// Unit testing
35-
testCompile "org.codehaus.groovy:groovy-all:2.4.1"
36-
testCompile "org.spockframework:spock-core:1.1-groovy-2.4-rc-3"
37-
testRuntime "cglib:cglib-nodep:3.2.4"
38-
testRuntime "org.objenesis:objenesis:2.5.1"
39-
testCompile "org.slf4j:slf4j-simple:$LIB_SLF4J_VER"
40-
testCompile 'org.springframework:spring-test:4.3.7.RELEASE'
41-
testRuntime 'org.springframework:spring-web:4.3.7.RELEASE'
42-
testCompile 'com.google.guava:guava:24.1.1-jre'
35+
testImplementation "org.codehaus.groovy:groovy-all:2.4.1"
36+
testImplementation "org.spockframework:spock-core:1.1-groovy-2.4-rc-3"
37+
testRuntimeOnly "cglib:cglib-nodep:3.2.4"
38+
testRuntimeOnly "org.objenesis:objenesis:2.5.1"
39+
testImplementation "org.slf4j:slf4j-simple:$LIB_SLF4J_VER"
40+
testImplementation 'org.springframework:spring-test:4.3.7.RELEASE'
41+
testRuntimeOnly 'org.springframework:spring-web:4.3.7.RELEASE'
42+
testImplementation 'com.google.guava:guava:24.1.1-jre'
4343
}

0 commit comments

Comments
 (0)