Title: Input property that would configure if the JDK should be configured as default or not · Issue #560 · actions/setup-java · GitHub
Open Graph Title: Input property that would configure if the JDK should be configured as default or not · Issue #560 · actions/setup-java
X Title: Input property that would configure if the JDK should be configured as default or not · Issue #560 · actions/setup-java
Description: Description: Currently, setup-java configures the installed Java as default, however, there are cases when no change in JAVA_HOME is needed. I suggest adding configure-as-default boolean input field (default true) so users could opt-out ...
Open Graph Description: Description: Currently, setup-java configures the installed Java as default, however, there are cases when no change in JAVA_HOME is needed. I suggest adding configure-as-default boolean input fiel...
X Description: Description: Currently, setup-java configures the installed Java as default, however, there are cases when no change in JAVA_HOME is needed. I suggest adding configure-as-default boolean input fiel...
Opengraph URL: https://github.com/actions/setup-java/issues/560
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Input property that would configure if the JDK should be configured as default or not","articleBody":"**Description:**\r\n\r\nCurrently, `setup-java` configures the installed Java as default, however, there are cases when no change in `JAVA_HOME` is needed.\r\n\r\nI suggest adding `configure-as-default` boolean input field (default `true`) so users could opt-out of configuring the installed Java for the default one.\r\n\r\n**Justification:**\r\n\r\nhttps://github.com/oracle-actions/setup-java downloads java binary, and it then calls `actions/setup-java` to set it up.\r\n\r\nI use `oracle-actions/setup-java` to fetch Java EA (e.g. Java 22). I do not want Java 22 to be set as default since it would fail the build (e.g. Gradle does not yet support running with Java 22).\r\nI need Java 22 for tests only, so I want Java 22 to be present, however, I would like to keep `JAVA_HOME` untouched.\r\n\r\n**Are you willing to submit a PR?**\r\n\r\nMaybe\r\n","author":{"url":"https://github.com/vlsi","@type":"Person","name":"vlsi"},"datePublished":"2023-11-27T11:39:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/560/setup-java/issues/560"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cd6ebf98-9543-c1a6-845e-8a5f215ff1a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFB6:13EE66:2BDC52:3B7A39:6A5073CC |
| html-safe-nonce | cc5804fd719a0aeb884739d508a2205675060221719b0f3435fdc3a79c74d760 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkI2OjEzRUU2NjoyQkRDNTI6M0I3QTM5OjZBNTA3M0NDIiwidmlzaXRvcl9pZCI6IjY3MjM1MTc3OTMyMjcwMTEwMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9ece2ce007a64f82b0bd3b08b48e40b5ff5eab2c9829c12c647db5e12ed184d7 |
| hovercard-subject-tag | issue:2012085300 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/560/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d084c53a7d1d207fd7801f6a14133f2d60ea1fb21086581b13f9fca9ee4465bd/actions/setup-java/issues/560 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d084c53a7d1d207fd7801f6a14133f2d60ea1fb21086581b13f9fca9ee4465bd/actions/setup-java/issues/560 |
| og:image:alt | Description: Currently, setup-java configures the installed Java as default, however, there are cases when no change in JAVA_HOME is needed. I suggest adding configure-as-default boolean input fiel... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vlsi |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-java git https://github.com/actions/setup-java.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 196057608 |
| octolytics-dimension-repository_nwo | actions/setup-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 196057608 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width