Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Add java-package parameter to action, support jre, jdk, and jdk+fx#27

Merged
konradpabjan merged 3 commits intoactions:masteractions/setup-java:masterfrom
foo-actions:masterCopy head branch name to clipboard
Nov 22, 2019
Merged

Add java-package parameter to action, support jre, jdk, and jdk+fx#27
konradpabjan merged 3 commits intoactions:masteractions/setup-java:masterfrom
foo-actions:masterCopy head branch name to clipboard

Conversation

@giltene
Copy link
Contributor

@giltene giltene commented Nov 3, 2019

This change adds support for multiple Java package types: jre, jdk, and jdk+fx. In addition to the [updated] built-in tests, this change has been tested against a wide range of Java versions and package type combinations that exist on the Zulu community cdn, verifying that existing jdk (default) behavior remains the same, and new package types (jre, jdk+fx) work as well on versions for which they are available in the cdn.

  • Add java-package option to action, support jre, jdk, and jdk+fx (Features/installer #1)

  • Update tests to use 'jdk', 'jre', and 'jdk+fx' java package option, as well as test with invalid package

  • Match extension only at end of line (e.g. ignore .tar.gz.sig files in cdn).

  • Update README.md

  • Update workflow to use 'node-version' instead of deprecated 'version'

* Add java-package parameter to action, support jre, jdk, and jdk+fx (#1)

* Update tests to use 'jdk', 'jre', and 'jdk+fx' javaPackage parameters

* Match extension only at end of line

* Update README.md

* Update workflow to use 'node-version' instead of deprecated 'version'
lib/installer.js Show resolved Hide resolved
@giltene
Copy link
Contributor Author

giltene commented Nov 13, 2019

Note that in addition to adding the option to specify jre and jdk-fx packages addressing #18, the change to match extension names only at the end of line fur file name (makes sure to ignore e.g. .tar.gz.sig) addresses the things that have caused #23 , so that .sig files can be safely added to the cdn without breaking actions/setup-java

@konradpabjan konradpabjan self-assigned this Nov 19, 2019
Copy link
Contributor

@konradpabjan konradpabjan left a comment

Choose a reason for hiding this comment

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

Tested it out with all three differed package types. Looks good, just a few small things 👍

action.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@konradpabjan
Copy link
Contributor

Thanks for getting these changes in! 😃

@konradpabjan konradpabjan merged commit ef3ee0a into actions:master Nov 22, 2019
@konradpabjan konradpabjan mentioned this pull request Nov 22, 2019
aparnajyothi-y added a commit to aparnajyothi-y/setup-java that referenced this pull request Jul 25, 2025
aparnajyothi-y added a commit to aparnajyothi-y/setup-java that referenced this pull request Jul 29, 2025
Bump form-data to bring in fix for critical vulnerability actions#27
aparnajyothi-y added a commit to aparnajyothi-y/setup-java that referenced this pull request Aug 21, 2025
tdfacer pushed a commit to ifit/setup-java that referenced this pull request Oct 7, 2025
Add java-package parameter to action, support jre, jdk, and jdk+fx
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.