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

Enable support for internal jdk #379

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Hamlin-Li
Copy link

Hi,

( I'm new to sbt-extras, please kindly let me know if I need to follow some process for this pr. )
Can you have a look at this minor patch? This is to bring mior improvement to the sbt script: Enable support for internal jdk.
Please check details in #378

Thanks!

sbt Outdated
@@ -217,7 +217,8 @@ getJavaVersion() {
if [[ "$str" =~ ^1\.([0-9]+)(\..*)?$ ]]; then
echo "${BASH_REMATCH[1]}"
# Fixes https://github.com/dwijnand/sbt-extras/issues/326
elif [[ "$str" =~ ^([0-9]+)(\..*)?(-ea)?$ ]]; then
# Fixes https://github.com/dwijnand/sbt-extras/issues/378
elif [[ "$str" =~ ^([0-9]+)(\..*)?-(ea|internal)?$ ]]; then
Copy link

Choose a reason for hiding this comment

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

shouldn't this be ^([0-9]+)(\..*)?(-ea|-internal)?$?

Copy link
Author

Choose a reason for hiding this comment

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

Good catch!

@luben
Copy link

luben commented Oct 23, 2023

LGTM

@Hamlin-Li
Copy link
Author

Hi, How can I get this merged?

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