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

[Improvement]: Prevent Ballerina from installing 3rd Party JDK dependencies #326

Open
conradwt opened this issue Oct 7, 2023 · 2 comments
Assignees

Comments

@conradwt
Copy link

conradwt commented Oct 7, 2023

Description

When one installs or updates Ballerina, they may be inadvertently installing 3rd party JDK dependencies out of their control.

Describe your problem(s)

➜ ls -al
total 0
drwxr-xr-x  4 root  wheel  128 Sep 24 15:48 .
drwxr-xr-x  7 root  wheel  224 Oct  7 10:56 ..
drwxr-xr-x  8 root  wheel  256 Aug 19 06:37 jdk-11.0.18+10-jre
drwxr-xr-x  9 root  wheel  288 Sep 24 15:48 jdk-17.0.7+7-jre

Now, it's not clear to me as to which JDK is being used by Ballerina. I'm guessing it's the more recent version of JDK. In short, this will accumulate over time and I'm looking for a better way to manage JDKs for my entire system instead of a single application.

Describe your solution(s)

I have a couple of solutions:

1). Add Ballerina to both MacPorts and Homebrew package repositories.

2). Simply allow users to install their own 3rd party JDKs

3). Allow all of the above.

Related area

-> Update Tool

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot transferred this issue from ballerina-platform/ballerina-lang Oct 7, 2023
@udda1996 udda1996 self-assigned this Dec 13, 2023
@udda1996
Copy link
Contributor

udda1996 commented Dec 13, 2023

@conradwt Thank you for your suggestions.

  1. Yes it is true that the JDKs can get accumulated over time when you use Ballerina distributions that depend on different JDKs. We will add a feature to delete the respective JDK once all the distributions depending on that particular JDK got deleted (Since multiple distributions could depend on a single JDK). Add dependency delete feature once all the distributions under a given dependency got deleted #333
  2. We have already included Ballerina in Homebrew https://ballerina.io/downloads/installation-options/#install-via-homebrew
  3. We will work on adding Ballerina at MacPorts

@conradwt
Copy link
Author

@udda1996 I look forward to Ballerina on MacPorts. Then one can simply use one of the existing JDK ports like openjdk21-zul on MacPorts with Ballerina.

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

No branches or pull requests

2 participants