Skip to content

Makes the lib build and tests pass on JDK 11#1295

Merged
bbakerman merged 2 commits into
graphql-java:masterfrom
bbakerman:make_graphql_build_on_java11
Nov 4, 2018
Merged

Makes the lib build and tests pass on JDK 11#1295
bbakerman merged 2 commits into
graphql-java:masterfrom
bbakerman:make_graphql_build_on_java11

Conversation

@bbakerman

Copy link
Copy Markdown
Member

This does not fix any specific issues mentioned elsewhere. It just means that the code will run and pass the build on jdk11

@andimarek andimarek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the gradle update is not needed anymore

zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-all.zip

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gradle is updated now on master

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

…d_on_java11

# Conflicts:
#	gradle/wrapper/gradle-wrapper.properties
DataFetcher productsDF = new DataFetcher() {
@Override
Object get(DataFetchingEnvironment environment) {
return IntStream.range(0, 5)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some groovy bugs where streams dont work on Java 11 - I am not 100% sure of the reasoning but re-writiing makes it work

@Deprecated
class ExecutorServiceExecutionStrategyTest extends Specification {

def 'Example usage of ExecutorServiceExecutionStrategy.'() {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

complains as a bad method name

@bbakerman bbakerman merged commit 129abec into graphql-java:master Nov 4, 2018
@andimarek andimarek added the not release related changes which are not released (for example unit tests or docs) label Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not release related changes which are not released (for example unit tests or docs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants