mirror of
https://github.com/actions/setup-java.git
synced 2026-07-31 16:12:59 +00:00
5827477733
* Optimize Maven configuration warm path Avoid eager Maven XML initialization on warm JDK runs by using deterministic serializers for new Maven settings/toolchains files, lazy-loading xmlbuilder2 for existing toolchains merges, and deferring Maven configuration modules until after Java setup. Add targeted tests for XML escaping, lazy xmlbuilder2 loading, concurrent Maven configuration, and a manual benchmark workflow for warm-path validation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4dc58426-5e20-44cb-af16-8da0965fac3b * Address Maven optimization PR feedback Make the toolchain XML generator consistently async, remove redundant Maven configuration await handling, and reuse the existing XML test helper. Configure CodeQL to skip generated dist output so newly split vendored chunks do not report duplicate generated-code alerts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4dc58426-5e20-44cb-af16-8da0965fac3b * Apply rubber duck review suggestions Document XML attribute escaping, simplify Maven configuration awaiting, and add a regression test that feeds fast-path toolchains output into the merge path. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4dc58426-5e20-44cb-af16-8da0965fac3b * Delete .github/codeql/codeql-config.yml * Update codeql-analysis.yml * Replace xmlbuilder2 in Maven toolchain merge Use fast-xml-parser for existing toolchains.xml parsing and serialize merged Maven toolchains deterministically. This removes the bundled xmlbuilder2 DOM/XML builder chunk from dist while preserving merge behavior for custom attributes, custom toolchains, partial entries, duplicate filtering, and escaping. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4dc58426-5e20-44cb-af16-8da0965fac3b * Move Maven benchmark out of setup-java Remove the Maven warm-path benchmark workflow and helper script from setup-java. Benchmark coverage is being moved to actions/setup-java-benchmarks so this action repository only carries the runtime optimization, tests, and generated distribution artifacts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4dc58426-5e20-44cb-af16-8da0965fac3b --------- Copilot-Session: 4dc58426-5e20-44cb-af16-8da0965fac3b
87 lines
2.6 KiB
JSON
87 lines
2.6 KiB
JSON
{
|
|
"name": "setup-java",
|
|
"version": "6.0.0",
|
|
"type": "module",
|
|
"private": true,
|
|
"description": "setup java action",
|
|
"main": "dist/setup/index.js",
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "node scripts/patch-is-unsafe.mjs && ncc build -o dist/setup src/setup-java.ts && ncc build -o dist/cleanup src/cleanup-java.ts",
|
|
"format": "prettier --no-error-on-unmatched-pattern --write \"**/*.{ts,yml,yaml}\"",
|
|
"format-check": "prettier --no-error-on-unmatched-pattern --check \"**/*.{ts,yml,yaml}\"",
|
|
"lint": "eslint \"**/*.ts\"",
|
|
"lint:fix": "eslint \"**/*.ts\" --fix",
|
|
"check": "npm run format-check && npm run lint && npm run build && npm test",
|
|
"fix": "npm run format && npm run lint:fix && npm run build",
|
|
"prepare": "husky install",
|
|
"prerelease": "npm run-script build",
|
|
"release": "git add -f dist/setup/*.js dist/setup/package.json dist/cleanup/index.js",
|
|
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --runInBand --coverage"
|
|
},
|
|
"lint-staged": {
|
|
"*.ts": [
|
|
"prettier --no-error-on-unmatched-pattern --write",
|
|
"eslint --fix"
|
|
],
|
|
"*.{yml,yaml}": [
|
|
"prettier --no-error-on-unmatched-pattern --write"
|
|
]
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/actions/setup-java.git"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"java",
|
|
"setup"
|
|
],
|
|
"author": "GitHub",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/cache": "^6.2.0",
|
|
"@actions/core": "^3.0.1",
|
|
"@actions/exec": "^3.0.0",
|
|
"@actions/glob": "^0.7.0",
|
|
"@actions/http-client": "^4.0.1",
|
|
"@actions/io": "^3.0.2",
|
|
"@actions/tool-cache": "^4.0.0",
|
|
"fast-xml-parser": "^5.10.1",
|
|
"semver": "^7.8.5"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@jest/globals": "^30.4.1",
|
|
"@types/node": "^26.1.1",
|
|
"@types/semver": "^7.7.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.64.0",
|
|
"@typescript-eslint/parser": "^8.65.0",
|
|
"@vercel/ncc": "^0.44.0",
|
|
"eslint": "^10.7.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-jest": "^29.15.4",
|
|
"eslint-plugin-n": "^18.2.2",
|
|
"globals": "^17.7.0",
|
|
"husky": "^9.1.7",
|
|
"jest": "^30.4.2",
|
|
"lint-staged": "^17.2.0",
|
|
"prettier": "^3.9.5",
|
|
"ts-jest": "^29.4.11",
|
|
"typescript": "^6.0.3"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/actions/setup-java/issues"
|
|
},
|
|
"homepage": "https://github.com/actions/setup-java#readme",
|
|
"overrides": {
|
|
"@actions/cache": {
|
|
"@actions/glob": "0.7.0"
|
|
},
|
|
"glob": "^11.1.0",
|
|
"test-exclude": "^7.0.2"
|
|
}
|
|
}
|