Skip to content

Use in process java compilation unless jdk is explicitly set by the d… #116

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

Conversation

yigit
Copy link
Contributor

@yigit yigit commented Feb 19, 2021

This PR updates KCT to use in process compilation unless the developer
explicitly provides a jdkHome that does not match the java home of the
current process.

In most cases, it won't be provided and because we have a default,
current implementation makes KCT spin off another process to compile java
sources, causing a significant compilation time penalty.
#113 (comment)

With this change, KCT won't create another process unless jdkHome is
set to a value that does not match the jdk home inherited from the
current process.

Issue: #113
Test: As this is a bit difficult to test, I've added test that will
check the logs ¯_(ツ)_/¯

…eveloper

This PR updates KCT to use in process compilation unless the developer
explicitly provides a jdkHome that does not match the java home of the
current process.

In most cases, it won't be provided and because we have a default,
current implementation makes KCT spin off another process to compile java
sources, causing a significant compilation time penalty.
tschuchortdev#113 (comment)

With this change, KCT won't create another process unless jdkHome is
set to a value that does not match the jdk home inherited from the
current process.

Issue: tschuchortdev#113
Test: As this is a bit difficult to test, I've added test that will
check the logs ¯\_(ツ)_/¯
@yigit yigit force-pushed the use-in-process-compilation-when-jdk-is-the-same branch from 6cf8d26 to 54e6cec Compare February 19, 2021 07:47
@yigit
Copy link
Contributor Author

yigit commented Feb 19, 2021

@tschuchortdev would it be possible to get a release after this is merged ?

@tschuchortdev tschuchortdev enabled auto-merge (rebase) February 22, 2021 19:43
@tschuchortdev
Copy link
Owner

I will make a new release after this is merged.

@tschuchortdev tschuchortdev merged commit 60db5e8 into tschuchortdev:master Feb 24, 2021
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