setup-java/__tests__
Bruno Borges 2ef9b3852e fix: guard toolchain dedup and preserve existing root attributes
Address reviewer feedback on the Maven toolchains dedup logic:

- Treat jdk toolchains without a string `provides.id` as non-deduplicatable
  and use optional access when comparing ids, so partially-formed or
  nonstandard toolchains.xml files no longer crash setup.
- Preserve the existing `<toolchains>` root attributes (xmlns,
  schemaLocation, …) when present, falling back to the 1.1.0 defaults only
  for attributes the existing file is missing. This avoids silently
  rewriting user-managed metadata or changing the effective namespace.

Adds tests covering custom root attributes and id-less jdk toolchains, and
rebuilds dist/.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-06 15:16:16 -04:00
..
cache feat: implement cache-dependency-path option to control caching dependency (#499) 2023-11-22 16:43:14 +01:00
data feat: add microsoft openjdk 17.0.18 (#1002) 2026-06-22 11:56:08 -04:00
distributors dist: Address Copilot review suggestions from PR #1042 (GraalVM Community) (#1059) 2026-06-23 13:37:44 -04:00
auth.test.ts Add and configure ESLint and update configuration for Prettier (#458) 2023-03-09 14:49:35 +02:00
cache.test.ts Add Maven Wrapper cache feature (#1027) 2026-06-22 09:45:18 -05:00
cleanup-java.test.ts Spelling (#713) 2026-06-22 10:57:54 -04:00
gpg.test.ts Add and configure ESLint and update configuration for Prettier (#458) 2023-03-09 14:49:35 +02:00
toolchains.test.ts fix: guard toolchain dedup and preserve existing root attributes 2026-07-06 15:16:16 -04:00
util.test.ts fix: reject non-semver candidate versions in isVersionSatisfies (#1009) 2026-06-17 22:47:02 -05:00
verify-java.sh Revert "Revert "Add support for Oracle JDK (#401)" (#421)" (#450) 2023-02-07 16:29:21 +01:00