mirror of
https://github.com/actions/setup-java.git
synced 2026-06-23 08:10:30 +03:00
cf3151c7a1
Set MAVEN_ARGS to include -ntp (--no-transfer-progress) so Maven invocations in the job produce cleaner CI logs without download/transfer progress noise. Add a new optional 'show-download-progress' input (default false); set it to true to keep the progress output. The change preserves any existing MAVEN_ARGS value (the flag is appended, not overwritten) and is idempotent (it won't add the flag twice if -ntp or --no-transfer-progress is already present). Applies on all platforms; honored by Maven 3.9.0+ and the Maven Wrapper, and is a no-op for non-Maven builds. - action.yml: add show-download-progress input - src/constants.ts: add input + MAVEN_ARGS constants - src/maven-args.ts: new configureMavenArgs() - src/setup-java.ts: invoke configureMavenArgs() during setup - __tests__/maven-args.test.ts: unit tests - docs/advanced-usage.md: document the behavior and input - dist: rebuild bundled action Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
38 lines
1.7 KiB
TypeScript
38 lines
1.7 KiB
TypeScript
export const MACOS_JAVA_CONTENT_POSTFIX = 'Contents/Home';
|
|
export const INPUT_JAVA_VERSION = 'java-version';
|
|
export const INPUT_JAVA_VERSION_FILE = 'java-version-file';
|
|
export const INPUT_ARCHITECTURE = 'architecture';
|
|
export const INPUT_JAVA_PACKAGE = 'java-package';
|
|
export const INPUT_DISTRIBUTION = 'distribution';
|
|
export const INPUT_JDK_FILE = 'jdkFile';
|
|
export const INPUT_CHECK_LATEST = 'check-latest';
|
|
export const INPUT_SERVER_ID = 'server-id';
|
|
export const INPUT_SERVER_USERNAME = 'server-username';
|
|
export const INPUT_SERVER_PASSWORD = 'server-password';
|
|
export const INPUT_SETTINGS_PATH = 'settings-path';
|
|
export const INPUT_OVERWRITE_SETTINGS = 'overwrite-settings';
|
|
export const INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
|
|
export const INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
|
|
|
|
export const INPUT_DEFAULT_GPG_PRIVATE_KEY = undefined;
|
|
export const INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
|
|
|
|
export const INPUT_CACHE = 'cache';
|
|
export const INPUT_CACHE_DEPENDENCY_PATH = 'cache-dependency-path';
|
|
export const INPUT_JOB_STATUS = 'job-status';
|
|
|
|
export const STATE_GPG_PRIVATE_KEY_FINGERPRINT = 'gpg-private-key-fingerprint';
|
|
|
|
export const M2_DIR = '.m2';
|
|
export const MVN_SETTINGS_FILE = 'settings.xml';
|
|
export const MVN_TOOLCHAINS_FILE = 'toolchains.xml';
|
|
export const INPUT_MVN_TOOLCHAIN_ID = 'mvn-toolchain-id';
|
|
export const INPUT_MVN_TOOLCHAIN_VENDOR = 'mvn-toolchain-vendor';
|
|
export const INPUT_SHOW_DOWNLOAD_PROGRESS = 'show-download-progress';
|
|
|
|
export const MAVEN_ARGS_ENV = 'MAVEN_ARGS';
|
|
export const MAVEN_NO_TRANSFER_PROGRESS_FLAG = '-ntp';
|
|
export const MAVEN_NO_TRANSFER_PROGRESS_LONG_FLAG = '--no-transfer-progress';
|
|
|
|
export const DISTRIBUTIONS_ONLY_MAJOR_VERSION = ['corretto'];
|