Skip to content

Commit f7b9e30

Browse files
committed
chore(deps): fix gradle 7 configuration
1 parent a1c9958 commit f7b9e30

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

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)