Skip to content

Commit

Permalink
Merge pull request #760 from graphql-java-kickstart/upgrade-java-11
Browse files Browse the repository at this point in the history
Upgrade to Java 11
  • Loading branch information
oryan-block authored Aug 18, 2023
2 parents b2060cd + e3665bd commit 05794cc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
19 changes: 13 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<kotlin.version>1.8.21</kotlin.version>
<kotlin-coroutines.version>1.6.4</kotlin-coroutines.version>
<kotlin-coroutines.version>1.7.3</kotlin-coroutines.version>
<jackson.version>2.15.2</jackson.version>
<graphql-java.version>21.0</graphql-java.version>
<reactive-streams.version>1.0.4</reactive-streams.version>
Expand Down Expand Up @@ -134,18 +134,25 @@
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<!--TODO remove this after upgrading kotlin-->
<exclusions>
<exclusion>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
</dependency>
<dependency>
<!--
Depending on kotlinx-coroutines-core causes an ambiguous module reference warning.
See https://github.com/Kotlin/kotlinx.coroutines/issues/3842
-->
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-jdk8</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<artifactId>kotlinx-coroutines-core-jvm</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
Expand Down
24 changes: 24 additions & 0 deletions src/main/kotlin/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module graphql.java.tools {
requires kotlin.stdlib;
requires kotlin.reflect;
requires kotlinx.coroutines.core;
requires kotlinx.coroutines.reactive;

requires com.graphqljava;

requires com.fasterxml.jackson.core;
requires com.fasterxml.jackson.kotlin;
requires com.fasterxml.jackson.databind;
requires com.fasterxml.jackson.datatype.jdk8;
requires com.fasterxml.classmate;

requires org.antlr.antlr4.runtime;
requires org.apache.commons.lang3;
requires org.reactivestreams;
requires org.slf4j;
requires spring.aop;

exports graphql.kickstart.tools;

opens graphql.kickstart.tools to com.fasterxml.jackson.databind;
}

0 comments on commit 05794cc

Please sign in to comment.