Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build against Java 10 #460

Merged
merged 6 commits into from
Jul 27, 2018
Merged

Build against Java 10 #460

merged 6 commits into from
Jul 27, 2018

Conversation

raniejade
Copy link
Member

No description provided.

@raniejade raniejade added this to the 2.0.0-alpha.2 milestone Jul 27, 2018
@raniejade raniejade merged commit 428de9a into 2.x Jul 27, 2018
@raniejade raniejade deleted the ranie-jdk10 branch July 27, 2018 10:45
ijSdkKotlinPluginCoords=org.jetbrains.kotlin:1.2.51-release-IJ2018.1-1
ijSdkVersion=2018.2
ijSdkKotlinPluginCoords=org.jetbrains.kotlin:1.2.51-release-IJ2018.2-1
org.gradle.jvmargs=--add-modules=java.xml.bind,java.activation
Copy link
Collaborator

Choose a reason for hiding this comment

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

Damn, this breaks build on JDK8

Copy link
Collaborator

Choose a reason for hiding this comment

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

workaround #477

artem-zinnatullin added a commit that referenced this pull request Aug 22, 2018
…lds (#477)

PR #460 added jvm option for Gradle daemon that is not supported by JDK8, this PR suppresses default JVM behavior that causes build to fail with following message:

```console
./gradlew tasks
Starting a Gradle Daemon

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.10-rc-1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Unrecognized option: --add-modules=java.xml.bind,java.activation
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
```

It's not a great solution, as it hides the fact that we can accidentally pass unsupported jvm option, but it unblocks JDK8 builds for now.

Ideally, we should be able to set different jvm options for different JDK versions

cc @vanniktech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants