Skip to content

Commit 749c5f4

Browse files
committed
feat: limit scope of servlet-api libs
fixes #490 (cherry picked from commit ebbd814)
1 parent 8ed33bf commit 749c5f4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

graphql-java-servlet/build.gradle

+8-6
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,29 @@ dependencies {
1616
api(project(':graphql-java-kickstart'))
1717

1818
// Servlet
19-
api 'javax.servlet:javax.servlet-api:4.0.1'
20-
api 'javax.websocket:javax.websocket-api:1.1'
19+
compileOnly 'javax.servlet:javax.servlet-api:4.0.1'
20+
compileOnly 'javax.websocket:javax.websocket-api:1.1'
2121
implementation "org.slf4j:slf4j-api:$LIB_SLF4J_VER"
2222

2323
// OSGi
2424
compileOnly 'org.osgi:org.osgi.core:6.0.0'
2525
compileOnly 'org.osgi:org.osgi.service.cm:1.6.1'
26-
compileOnly 'org.osgi:org.osgi.service.component:1.5.0'
27-
compileOnly 'org.osgi:org.osgi.service.component.annotations:1.5.0'
26+
compileOnly 'org.osgi:org.osgi.service.component:1.5.1'
27+
compileOnly 'org.osgi:org.osgi.service.component.annotations:1.5.1'
2828
compileOnly 'org.osgi:org.osgi.service.metatype.annotations:1.4.1'
2929
compileOnly 'org.osgi:org.osgi.annotation:6.0.0'
3030

3131
testImplementation 'io.github.graphql-java:graphql-java-annotations:9.1'
3232

3333
// Unit testing
34-
testImplementation "org.codehaus.groovy:groovy-all:3.0.12"
35-
testImplementation "org.spockframework:spock-core:2.1-groovy-3.0"
34+
testImplementation "org.apache.groovy:groovy-all:4.0.12"
35+
testImplementation "org.spockframework:spock-core:2.3-groovy-4.0"
3636
testRuntimeOnly "cglib:cglib-nodep:3.3.0"
3737
testRuntimeOnly "org.objenesis:objenesis:3.3"
3838
testImplementation "org.slf4j:slf4j-simple:$LIB_SLF4J_VER"
3939
testImplementation 'org.springframework:spring-test:5.3.22'
4040
testRuntimeOnly 'org.springframework:spring-web:5.3.22'
4141
testImplementation 'com.google.guava:guava:31.1-jre'
42+
testImplementation 'javax.servlet:javax.servlet-api:4.0.1'
43+
testImplementation 'javax.websocket:javax.websocket-api:1.1'
4244
}

0 commit comments

Comments
 (0)