mirror of
https://github.com/actions/setup-java.git
synced 2026-06-29 08:38:55 +00:00
Compare commits
base: actions:447369740891230d2559c6aa64e2264c8786a778
actions:main
actions:dependabot/npm_and_yarn/prettier-3.9.1
actions:dependabot/npm_and_yarn/eslint-10.6.0
actions:dependabot/npm_and_yarn/actions/io-3.0.2
actions:dependabot/npm_and_yarn/actions/tool-cache-4.0.0
actions:copilot/support-caching-maven-plugin-dependencies
actions:chore/upgrade-eslint-10-flat-config
actions:copilot/disable-interactivemode-settings-xml
actions:feature/maven-args-no-transfer-progress
actions:copilot/fix-github-actions-job
actions:docs/self-signed-ca-enterprise
actions:copilot/upgrade-dependencies-and-fix-vulnerabilities
actions:releases/v4
actions:v4Fix
actions:test-macos-x64-runner
actions:error-handling
actions:releases/v3
actions:UpdatePublishImmutable
actions:add-publish-immutable-action
actions:actions-cache-4.0.3-upgrade-v3
actions:upgrade-actions-cache-4.0.3
actions:benwells/readme-update-permissions
actions:DependabotSetup
actions:upgrade-cache-4.0.0
actions:update-graalvm-doc
actions:Jcambass-patch-1
actions:basicvalidation
actions:test-dragonwellfix
actions:macoslatestfix
actions:upgrade-actions-cache-4.0.3-v3
actions:releases/v1
actions:releases/v2
actions:revert-421-revert-401-oracle-jdk
actions:v2-preview
actions:v5.4.0
actions:v5.3.0
actions:v5.2.0
actions:v5.1.0
actions:v4.8.0
actions:v5
actions:v5.0.0
actions:v3.14.1
actions:v3.14.0
actions:v4.7.1
actions:v4.7.0
actions:v4.6.0
actions:v4.5.0
actions:v4.4.0
actions:v4.3.0
actions:v4.2.2
actions:v4
actions:v4.2.1
actions:v4.2.0
actions:v4.1.0
actions:v4.0.0
actions:v3.13.0
actions:v3
actions:v3.12.0
actions:v1.4.4
actions:v1
actions:v2.5.1
actions:v2
actions:v3.11.0
actions:v3.10.0
actions:v3.9.0
actions:v3.8.0
actions:v3.6.0
actions:v3.5.1
actions:v3.5.0
actions:v3.4.1
actions:v3.4.0
actions:v3.3.0
actions:v3.2.0
actions:v3.1.1
actions:v3.1.0
actions:v3.0.0
actions:v2.5.0
actions:v2.4.0
actions:v2.3.1
actions:v2.3.0
actions:v2.2.0
actions:v2.1.0
actions:v2.0.0
actions:v1.4.3
actions:v1.4.2
actions:v1.4.1
actions:v1.4.0
actions:v1.3.0
actions:v1.2.0
actions:v1.0
actions:v1.1.0
actions:v1.0.1
actions:v1.0.0
..
compare: actions:7b7c4428ca6e83744006797f270c5a39980056d1
actions:dependabot/npm_and_yarn/prettier-3.9.1
actions:dependabot/npm_and_yarn/eslint-10.6.0
actions:dependabot/npm_and_yarn/actions/io-3.0.2
actions:dependabot/npm_and_yarn/actions/tool-cache-4.0.0
actions:main
actions:copilot/support-caching-maven-plugin-dependencies
actions:chore/upgrade-eslint-10-flat-config
actions:copilot/disable-interactivemode-settings-xml
actions:feature/maven-args-no-transfer-progress
actions:copilot/fix-github-actions-job
actions:docs/self-signed-ca-enterprise
actions:copilot/upgrade-dependencies-and-fix-vulnerabilities
actions:releases/v4
actions:v4Fix
actions:test-macos-x64-runner
actions:error-handling
actions:releases/v3
actions:UpdatePublishImmutable
actions:add-publish-immutable-action
actions:actions-cache-4.0.3-upgrade-v3
actions:upgrade-actions-cache-4.0.3
actions:benwells/readme-update-permissions
actions:DependabotSetup
actions:upgrade-cache-4.0.0
actions:update-graalvm-doc
actions:Jcambass-patch-1
actions:basicvalidation
actions:test-dragonwellfix
actions:macoslatestfix
actions:upgrade-actions-cache-4.0.3-v3
actions:releases/v1
actions:releases/v2
actions:revert-421-revert-401-oracle-jdk
actions:v2-preview
actions:v5.4.0
actions:v5.3.0
actions:v5.2.0
actions:v5.1.0
actions:v4.8.0
actions:v5
actions:v5.0.0
actions:v3.14.1
actions:v3.14.0
actions:v4.7.1
actions:v4.7.0
actions:v4.6.0
actions:v4.5.0
actions:v4.4.0
actions:v4.3.0
actions:v4.2.2
actions:v4
actions:v4.2.1
actions:v4.2.0
actions:v4.1.0
actions:v4.0.0
actions:v3.13.0
actions:v3
actions:v3.12.0
actions:v1.4.4
actions:v1
actions:v2.5.1
actions:v2
actions:v3.11.0
actions:v3.10.0
actions:v3.9.0
actions:v3.8.0
actions:v3.6.0
actions:v3.5.1
actions:v3.5.0
actions:v3.4.1
actions:v3.4.0
actions:v3.3.0
actions:v3.2.0
actions:v3.1.1
actions:v3.1.0
actions:v3.0.0
actions:v2.5.0
actions:v2.4.0
actions:v2.3.1
actions:v2.3.0
actions:v2.2.0
actions:v2.1.0
actions:v2.0.0
actions:v1.4.3
actions:v1.4.2
actions:v1.4.1
actions:v1.4.0
actions:v1.3.0
actions:v1.2.0
actions:v1.0
actions:v1.1.0
actions:v1.0.1
actions:v1.0.0
4 Commits
4473697408
...
7b7c4428ca
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
7b7c4428ca | Update compiled dist scripts after re-base to main | ||
|
|
b35872acac |
Update from npm run format to fix prettier check
- missed in initial commit - took re-built dist from GH actions |
||
|
|
3ef691b637 | Update README.md | ||
|
|
06ec4d8832 |
Add inputs 'update-toolchains-only', 'update-env-javahome', 'add-to-env-path'
Changes in detail:
------------------
- action.yml:
- add inputs:
- update-toolchains-only
- update-env-javahome
- add-to-env-path
- update description for input "overwrite-settings"
- remove default value of input "overwrite-settings",
since the default is now propagated from input 'update-toolchains-only'
- base-models.ts:
- extend interface JavaInstallerOptions:
- add fields:
- updateEnvJavaHome: boolean;
- addToEnvPath: boolean;
- constants.ts:
- add constant INPUT_UPDATE_TOOLCHAINS_ONLY
= 'update-toolchains-only'
- auth.ts:
- function configureAuthentication():
- add parameter:
- overwriteSettings: boolean
- remove the now obsolete const overwriteSettings
- toolchains.ts:
- function configureToolchains(...):
- add parameter updateToolchains: boolean
- remove the now obsolete const overwriteSettings
- improve variable naming:
- rename any occurrence of 'overwriteSettings'
by 'updateToolchains'
- add field updateToolchains: boolean to the parameter object
- function writeToolchainsFileToDisk(...):
- improve variable naming:
- rename variable 'settingsExists'
by 'toolchainsExists'
- update wording of info logs to be more applicable
- setup-java.ts:
- interface installerInputsOptions:
- rename to IInstallerInputsOption to meet common coding convention
- add fields:
- updateToolchainsOnly: boolean;
- overwriteSettings: boolean;
- updateEnvJavaHome: boolean;
- addToEnvPath: boolean;
- function run():
- add const:
- const updateToolchainsOnly:
- get as boolean from input 'update-toolchains-only', default: false
- const overwriteSettings:
- get as boolean from input 'overwrite-settings', default: !updateToolchainsOnly
- const updateEnvJavaHome:
- get as boolean input 'update-env-javahome', default: !updateToolchainsOnly
- const addToEnvPath:
- get as boolean input 'add-to-env-path', default: !updateToolchainsOnly
- extend const installerInputsOptions to match with IInstallerInputsOption:
- add field updateToolchainsOnly
- add field overwriteSettings
- add field updateEnvJavaHome
- add field addToEnvPath
- update call of auth.configureAuthentication()
to auth.configureAuthentication(overwriteSettings)
- function installVersion(...):
- add const and init from parameter options:
- updateToolchainsOnly, overwriteSettings,
updateEnvJavaHome, addToEnvPath
- init the additional fields of installerInputsOptions accordingly
- call toolchains.configureToolchains(...):
- with parameter updateToolchains= overwriteSettings || updateToolchainsOnly
- base-installer.ts:
- add constants to import from constants:
- INPUT_UPDATE_JAVA_HOME
- INPUT_ADD_TO_PATH
- add fields:
- protected updateEnvJavaHome: boolean;
- protected addToEnvPath: boolean;
- ctor:
- init these fields from JavaInstallerOptions accoprdingly
- function setJavaDefault(...):
- if updateEnvJavaHome is false:
- SKIP updating env.JAVA_HOME
- log info:
`Skip updating env.JAVA_HOME according to ${INPUT_UPDATE_JAVA_HOME}`
- if addToEnvPath is false:
- SKIP adding toolchain path to env.PATH
- log info:
`Skip adding to env.PATH according to ${INPUT_ADD_TO_PATH}`
|