-
Notifications
You must be signed in to change notification settings - Fork 140
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
Fix: Support JVM version string from old (< v8.9) and new (>= v8.9) gradle version #683
Fix: Support JVM version string from old (< v8.9) and new (>= v8.9) gradle version #683
Conversation
@@ -83,5 +83,5 @@ def _get_jvm_string(self, gradle_path): | |||
|
|||
for line in stdout.splitlines(): | |||
l_dec = decode(line) | |||
if l_dec.startswith("JVM"): | |||
if l_dec.startswith("JVM") or l_dec.startswith("Launcher JVM"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This could be simplified to l_dec.contains("JVM")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, I will change it with .contains(...)
alike method, probably use x in y
style. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with in
operator to check the JVM substring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hnnasit , is there something that I need to do so this PR can be merged? Thank you 🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jeffryang24, our CI checks are failing consistently (and randomly out of the blue). The failures are unrelated to your changes, but we're working on fixing them. At the moment, there is no action needed from your side. Thanks for waiting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, noted 👍
Issue #, if available: This PR should resolve #682
Description of changes:
JVM
andLauncher JVM
prefix for thegradle[w] -version
command output. Gradle < v8.9 was usingJVM: x.x.x
, while Gradle >= v8.9 has changed it toLauncher JVM: x.x.x
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.