From be43ee309f781264519df4661ce508084f824d00 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Thu, 23 Apr 2020 21:33:47 -0700 Subject: [PATCH] Upgrade graphql-java dependency --- build.gradle | 6 ++---- src/main/java/com/graphql/example/http/HttpMain.java | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 5896027..28c156f 100644 --- a/build.gradle +++ b/build.gradle @@ -11,14 +11,12 @@ sourceCompatibility = 1.8 mainClassName = "com.graphql.example.http.HttpMain" repositories { - mavenLocal() - jcenter() mavenCentral() } dependencies { - compile 'com.graphql-java:graphql-java:5.0' - compile 'com.fasterxml.jackson.core:jackson-databind:2.8.8.1' + compile 'com.graphql-java:graphql-java:14.0' + compile 'com.fasterxml.jackson.core:jackson-databind:2.9.10.4' compile 'com.google.code.gson:gson:2.8.0' compile 'org.eclipse.jetty:jetty-server:9.4.5.v20170502' compile 'com.squareup.okhttp3:okhttp:3.8.0' diff --git a/src/main/java/com/graphql/example/http/HttpMain.java b/src/main/java/com/graphql/example/http/HttpMain.java index 57f7d02..9da3e4c 100644 --- a/src/main/java/com/graphql/example/http/HttpMain.java +++ b/src/main/java/com/graphql/example/http/HttpMain.java @@ -116,11 +116,9 @@ private void handleStarWars(HttpServletRequest httpRequest, HttpServletResponse // loading of data (in this case StarWars characters) happens. We pass that to data // fetchers via the graphql context object. // - DataLoaderRegistry dataLoaderRegistry = context.getDataLoaderRegistry(); - DataLoaderDispatcherInstrumentation dlInstrumentation = - new DataLoaderDispatcherInstrumentation(dataLoaderRegistry, newOptions().includeStatistics(true)); + new DataLoaderDispatcherInstrumentation(newOptions().includeStatistics(true)); Instrumentation instrumentation = new ChainedInstrumentation( asList(new TracingInstrumentation(), dlInstrumentation)