File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
main/kotlin/com/coxautodev/graphql/tools
test/kotlin/com/coxautodev/graphql/tools Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1414 <parent >
1515 <groupId >org.springframework.boot</groupId >
1616 <artifactId >spring-boot-starter-parent</artifactId >
17- <version >2.0.5 .RELEASE</version >
17+ <version >2.1.0 .RELEASE</version >
1818 <relativePath /> <!-- lookup parent from repository -->
1919 </parent >
2020
2323 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
2424 <java .version>1.8</java .version>
2525 <graphql-spring-boot-starter .version>5.2</graphql-spring-boot-starter .version>
26- <graphql-java-tools .version>5.4.1-SNAPSHOT</graphql-java-tools .version>
26+ <graphql-java-tools .version>5.4.0</graphql-java-tools .version>
27+ <kotlin .version>1.3.10</kotlin .version>
2728 </properties >
2829
2930 <dependencies >
6667 <artifactId >graphql-java-tools</artifactId >
6768 <version >${graphql-java-tools.version} </version >
6869 </dependency >
69- <!-- <dependency>
70- <groupId>org.jetbrains.kotlin</groupId>
71- <artifactId>kotlin-stdlib</artifactId>
72- <version>1.3.10</version>
73- </dependency>-->
7470 </dependencies >
7571
7672 <build >
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import graphql.schema.GraphQLScalarType
1818import graphql.schema.idl.RuntimeWiring
1919import graphql.schema.idl.SchemaDirectiveWiring
2020import kotlinx.coroutines.Dispatchers
21+ import kotlinx.coroutines.ExperimentalCoroutinesApi
2122import kotlinx.coroutines.GlobalScope
2223import kotlinx.coroutines.channels.ReceiveChannel
2324import kotlinx.coroutines.reactive.publish
@@ -359,6 +360,7 @@ data class SchemaParserOptions internal constructor(
359360 this .typeDefinitionFactories.add(factory)
360361 }
361362
363+ @ExperimentalCoroutinesApi
362364 fun build (): SchemaParserOptions {
363365 val coroutineContext = coroutineContext ? : Dispatchers .Default
364366 val wrappers = if (useDefaultGenericWrappers) {
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import graphql.schema.DataFetcher
1010import graphql.schema.DataFetchingEnvironment
1111import graphql.schema.DataFetchingEnvironmentBuilder
1212import kotlinx.coroutines.Dispatchers
13+ import kotlinx.coroutines.ExperimentalCoroutinesApi
1314import kotlinx.coroutines.Job
1415import kotlinx.coroutines.channels.Channel
1516import kotlinx.coroutines.channels.ReceiveChannel
@@ -43,6 +44,7 @@ class MethodFieldResolverDataFetcherTest {
4344 Assert .assertTrue(future.get())
4445 }
4546
47+ @ExperimentalCoroutinesApi
4648 @Test
4749 fun `canceling subscription Publisher also cancels underlying Kotlin coroutine channel` () {
4850 // setup
@@ -131,4 +133,4 @@ class MethodFieldResolverDataFetcherTest {
131133 }
132134
133135 data class DataClass (val name : String = " TestName" )
134- }
136+ }
You can’t perform that action at this time.
0 commit comments