2026-07-29 17:53:33 -04:00
export const id = 463 ;
export const ids = [ 463 ] ;
export const modules = {
/***/ 463 :
/***/ ( ( _ _unused _webpack _module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) => {
// EXPORTS
_ _webpack _require _ _ . d ( _ _webpack _exports _ _ , {
TemurinDistribution : ( ) => ( /* binding */ TemurinDistribution ) ,
TemurinImplementation : ( ) => ( /* binding */ TemurinImplementation )
} ) ;
// UNUSED EXPORTS: ADOPTIUM_PUBLIC_KEY
// EXTERNAL MODULE: ./node_modules/@actions/core/lib/core.js + 7 modules
var core = _ _webpack _require _ _ ( 3838 ) ;
// EXTERNAL MODULE: external "fs"
var external _fs _ = _ _webpack _require _ _ ( 9896 ) ;
var external _fs _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( external _fs _ ) ;
// EXTERNAL MODULE: external "path"
var external _path _ = _ _webpack _require _ _ ( 6928 ) ;
var external _path _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( external _path _ ) ;
// EXTERNAL MODULE: ./node_modules/semver/index.js
var semver = _ _webpack _require _ _ ( 2088 ) ;
var semver _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( semver ) ;
// EXTERNAL MODULE: ./src/gpg.ts
var gpg = _ _webpack _require _ _ ( 8343 ) ;
; // CONCATENATED MODULE: ./src/distributions/temurin/adoptium-key.ts
// Adoptium GPG signing key (fingerprint: 3B04D753C9050D9A5D343F39843C48A565F8F04B)
// Retrieved from: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3B04D753C9050D9A5D343F39843C48A565F8F04B
const ADOPTIUM _PUBLIC _KEY = ` -----BEGIN PGP PUBLIC KEY BLOCK-----
xsBNBGGTvTQBCAC6ey144n7CG8foafF6mwgIBN1fIm1ILZDuGS4tMr0 / XI8pgJnT
QvsPxZWEvtSm7bEMObzEoZJcXwjBcJl1B0ui8k5kHMTI75gCmZPsoKLFWIEpuRBQ
PBocusw80apDmLnNDQLVQvDFtEua5gaNa / fRw9YsmBoXBqvgrjFUIdGyWoQvH5 + a
9 OYlWD9n5VV0gnVMb + aclwVzB / zJw3kHGSgzuMtlAHeQiah7Y8yomQn / UIX8yqDf
+ 11 sP3 + c87YcjkRqImRTtmKEDcEtGPAIXC6SYA + uEEkbYE0Fy0chkvtnVWJ597fa
Epai4rnICU8zoJ6X5z3v1aM2WerhX9oq9X8PABEBAAHNQEFkb3B0aXVtIEdQRyBL
ZXkgKERFQi9SUE0gU2lnbmluZyBLZXkpIDx0ZW11cmluLWRldkBlY2xpcHNlLm9y
Zz7CwJIEEwEIADwWIQQ7BNdTyQUNml00PzmEPEilZfjwSwUCYZO9NAIbAwULCQgH
AgMiAgEGFQoJCAsCBBYCAwECHgcCF4AACgkQhDxIpWX48Et4AggAjjJzYWuKV3nG
7 ngInngl8G / m9JoHr7BmwgcQXYhdy5hVkMcUx5JLeXz2LMBUH / F2nD595hgjMabk
kVib20X8lq9RsNbdfc2hBcWU6qyHKxsIqT4boI2 / XDyEzzMyyZWWNGo / 27 Ci7Xmj
pWu31nh0pDdPqdyWDIKojbVVnxlCRY8as8Sm + 1 ufi709KCi4MuwHNsUlCSwb / fju
NKeHkrHbLcHKUUIEcmTSKRWrpMYBzm1HYOGBz4xPuELwUfUp71ehfoyBZlp6RDRf
l5TYI1FmCyHuvjNhrJgWv7bOTcf8yObGY + TEUhzc4xQqCrF4ur9d3opvsuPBQsv +
Klqi5KSZgs7ATQRhk700AQgAq14okly8cFrpYVenEQPiB75AUZfKRpMduiR6IxAj
SKcH7aSoFZ9AubUEBVpZsyT5svxoEPe1i4TdbF + m9FGy42EcOlLa3ArLTj5H8FRl
UdGZB9I5mk4GptOzPM + aHMMu92vW / ZwjuS8DvOiQSp + cUmG1EqOMJSM7e / 4 BM71z
E + OKaVJCj79pEzhG3SK / IC / OlxxyETT66NSfYJd7Sw5R6Vr19am / uNU690W0CJ + q
VQeFpmDMr7LnfdFRIh + lJe05 + PvWXeidkGjox5cbG52wf8aRIR / FgkfcFvqRMN1f
B + dVOWueloUeVAnzcUznOKmUEs7LP9ObJhYHHgup4IAU2wARAQABwsB2BBgBCAAg
FiEEOwTXU8kFDZpdND85hDxIpWX48EsFAmGTvTQCGwwACgkQhDxIpWX48EvXHQf /
Q0nZsGDXnZHiBoojeSdpkO7WBjMIP3w1GdLvRpPQrS8TfOPbZuoevzCNh38Y3gwF
yelJspvzDQrBXhgkzAGlucYg8Y7KHa5Ebm7iDgMzc37L1hYSZTYCqwd7aowfgy34
hOk3B67LffkJpIh738Oa9CtlwxQ9xcytmBmQ1fBBOwm / 9 IhAwHPQuydYIs4DxWbj
0 MGSP4fDntU7e4UjsHNmhudDcYol0FaqdHHIIB9C / G4CzetRwHFOn3b4JwXMU7YU
6 aJA3mXhi3hggMC3wkT2HHZ / TquuOdNc02fypWOCDOHz0alBBJNqoVUNFNqU3tfJ
wI4qF / KKq9BfyfucAs0ykA ==
= XLag
-- -- - END PGP PUBLIC KEY BLOCK -- -- - ` ;
// EXTERNAL MODULE: ./src/distributions/base-installer.ts + 2 modules
var base _installer = _ _webpack _require _ _ ( 6242 ) ;
// EXTERNAL MODULE: ./src/constants.ts
var constants = _ _webpack _require _ _ ( 7242 ) ;
// EXTERNAL MODULE: ./src/util.ts
var util = _ _webpack _require _ _ ( 4527 ) ;
2026-08-05 18:45:11 +02:00
// EXTERNAL MODULE: ./src/distributions/platform-types.ts
var platform _types = _ _webpack _require _ _ ( 7444 ) ;
2026-07-29 17:53:33 -04:00
; // CONCATENATED MODULE: ./src/distributions/temurin/installer.ts
2026-08-05 18:45:11 +02:00
2026-07-29 17:53:33 -04:00
var TemurinImplementation ;
( function ( TemurinImplementation ) {
TemurinImplementation [ "Hotspot" ] = "Hotspot" ;
} ) ( TemurinImplementation || ( TemurinImplementation = { } ) ) ;
class TemurinDistribution extends base _installer /* JavaBase */ . O {
jvmImpl ;
includeJmods ;
constructor ( installerOptions , jvmImpl ) {
super ( ` Temurin- ${ jvmImpl } ` , installerOptions ) ;
this . jvmImpl = jvmImpl ;
this . includeJmods = this . packageType === 'jdk+jmods' ;
}
/ * *
* @ internal For cross - distribution reuse only . Not intended as a public API .
* /
async findPackageForDownload ( version ) {
return this . resolvePackage ( version , this . includeJmods ? 'jdk' : this . packageType ) ;
}
async resolvePackage ( version , imageType ) {
const availableVersionsRaw = await this . getAvailableVersions ( imageType ) ;
const availableVersionsWithBinaries = availableVersionsRaw
. filter ( item => item . binaries . length > 0 )
. map ( item => {
// normalize 17.0.0-beta+33.0.202107301459 to 17.0.0+33.0.202107301459 for earlier access versions
const formattedVersion = this . stable
? item . version _data . semver
: item . version _data . semver . replace ( '-beta+' , '+' ) ;
2026-10-02 00:09:56 -04:00
const release = {
2026-07-29 17:53:33 -04:00
version : formattedVersion ,
url : item . binaries [ 0 ] . package . link ,
signatureUrl : item . binaries [ 0 ] . package . signature _link ,
checksum : {
algorithm : 'sha256' ,
value : item . binaries [ 0 ] . package . checksum ,
source : item . binaries [ 0 ] . package . checksum _link
}
} ;
2026-10-02 00:09:56 -04:00
return {
release ,
openjdkVersion : getOpenJdkSemverVersion ( item . version _data )
} ;
2026-07-29 17:53:33 -04:00
} ) ;
2026-10-02 00:09:56 -04:00
// The Adoptium API `semver` folds the JEP 322 patch field into the build
// number ('26.0.2.1+1' -> '26.0.2+101') and appends extra metadata for LTS
// releases ('25.0.4+7' -> '25.0.4+7.0.LTS'). Exact versions requested by
// users follow the OpenJDK notation instead, so also match them against a
// key derived from the OpenJDK version fields ('26.0.2+1.1', '25.0.4+7').
const isExactBuildRequest = ( semver _default ( ) . parse ( version ) ? . build . length ? ? 0 ) > 0 ;
2026-07-29 17:53:33 -04:00
const satisfiedVersions = availableVersionsWithBinaries
2026-10-02 00:09:56 -04:00
. filter ( ( { release , openjdkVersion } ) => ( 0 , util /* isVersionSatisfies */ . y ) ( version , release . version ) ||
( isExactBuildRequest &&
openjdkVersion !== null &&
semver _default ( ) . compareBuild ( version , openjdkVersion ) === 0 ) )
. map ( ( { release } ) => release )
2026-07-29 17:53:33 -04:00
. sort ( ( a , b ) => {
return - semver _default ( ) . compareBuild ( a . version , b . version ) ;
} ) ;
const resolvedFullVersion = satisfiedVersions . length > 0 ? satisfiedVersions [ 0 ] : null ;
if ( ! resolvedFullVersion ) {
2026-10-02 00:09:56 -04:00
const availableVersionStrings = availableVersionsWithBinaries . map ( ( { release } ) => release . version ) ;
2026-07-29 17:53:33 -04:00
throw this . createVersionNotFoundError ( version , availableVersionStrings ) ;
}
return resolvedFullVersion ;
}
async downloadTool ( javaRelease ) {
core /* info */ . pq ( ` Downloading Java ${ javaRelease . version } ( ${ this . distribution } ) from ${ javaRelease . url } ... ` ) ;
let javaArchivePath = await this . downloadPackage ( javaRelease ) ;
core /* info */ . pq ( ` Extracting Java archive... ` ) ;
const extension = ( 0 , util /* getDownloadArchiveExtension */ . ag ) ( ) ;
if ( process . platform === 'win32' ) {
javaArchivePath = ( 0 , util /* renameWinArchive */ . n2 ) ( javaArchivePath ) ;
}
const extractedJavaPath = await ( 0 , util /* extractJdkFile */ . PE ) ( javaArchivePath , extension ) ;
const archiveName = external _fs _default ( ) . readdirSync ( extractedJavaPath ) [ 0 ] ;
const archivePath = external _path _default ( ) . join ( extractedJavaPath , archiveName ) ;
const javaHome = process . platform === 'darwin'
? external _path _default ( ) . join ( archivePath , constants /* MACOS_JAVA_CONTENT_POSTFIX */ . PG )
: archivePath ;
if ( this . includeJmods && ! external _fs _default ( ) . existsSync ( external _path _default ( ) . join ( javaHome , 'jmods' ) ) ) {
await this . installJmods ( javaRelease . version , javaHome ) ;
}
const version = this . getToolcacheVersionName ( javaRelease . version ) ;
2026-08-04 23:05:06 -04:00
const javaPath = await ( 0 , util /* cacheJdkDir */ . Vj ) ( archivePath , this . toolcacheFolderName , version , this . architecture ) ;
2026-07-29 17:53:33 -04:00
return { version : javaRelease . version , path : javaPath } ;
}
supportsSignatureVerification ( ) {
return true ;
}
async downloadPackage ( release ) {
const archivePath = await this . downloadAndVerify ( release ) ;
if ( this . verifySignature ) {
try {
2026-09-03 13:27:24 -04:00
if ( ! ( await gpg /* isGpgAvailable */ . o6 ( ) ) ) {
throw new Error ( "Input 'verify-signature' is enabled, but gpg is not available." ) ;
}
if ( ! release . signatureUrl ) {
throw new Error ( ` Input 'verify-signature' is enabled, but no signature URL was found for Temurin version ${ release . version } . ` ) ;
}
core /* info */ . pq ( ` Verifying Java package signature... ` ) ;
try {
await gpg /* verifyPackageSignature */ . Yi ( archivePath , release . signatureUrl , this . verifySignaturePublicKey ? ? ADOPTIUM _PUBLIC _KEY ) ;
}
catch ( error ) {
const verificationError = new Error ( ` Failed to verify signature for Temurin version ${ release . version } from ${ release . signatureUrl } : ${ error . message } ${ constants /* SIGNATURE_VERIFICATION_FAILURE_HELP */ . kQ } ` , { cause : error } ) ;
if ( this . verifySignatureExplicitlyRequested ) {
throw verificationError ;
}
else {
core /* warning */ . $e ( verificationError . message ) ;
}
}
2026-07-29 17:53:33 -04:00
}
catch ( error ) {
2026-09-03 13:27:24 -04:00
if ( this . verifySignatureExplicitlyRequested ) {
throw error ;
}
core /* warning */ . $e ( error instanceof Error ? error . message : ` Unknown error: ${ error } ` ) ;
2026-07-29 17:53:33 -04:00
}
}
return archivePath ;
}
async installJmods ( version , javaHome ) {
const jmodsRelease = await this . resolvePackage ( version , 'jmods' ) ;
core /* info */ . pq ( ` Downloading JMODs ${ jmodsRelease . version } ( ${ this . distribution } ) from ${ jmodsRelease . url } ... ` ) ;
let jmodsArchivePath = await this . downloadPackage ( jmodsRelease ) ;
if ( process . platform === 'win32' ) {
jmodsArchivePath = ( 0 , util /* renameWinArchive */ . n2 ) ( jmodsArchivePath ) ;
}
const extractedJmodsPath = await ( 0 , util /* extractJdkFile */ . PE ) ( jmodsArchivePath , ( 0 , util /* getDownloadArchiveExtension */ . ag ) ( ) ) ;
const jmodsDirectory = external _path _default ( ) . join ( extractedJmodsPath , external _fs _default ( ) . readdirSync ( extractedJmodsPath ) [ 0 ] ) ;
external _fs _default ( ) . cpSync ( jmodsDirectory , external _path _default ( ) . join ( javaHome , 'jmods' ) , { recursive : true } ) ;
}
async getAvailableVersions ( imageType = this . includeJmods ? 'jdk' : this . packageType ) {
const platform = this . getPlatformOption ( ) ;
const arch = this . distributionArchitecture ( ) ;
const versionRange = encodeURI ( '[1.0,100.0]' ) ; // retrieve all available versions
const releaseType = this . stable ? 'ga' : 'ea' ;
if ( core /* isDebug */ . _o ( ) ) {
console . time ( 'Retrieving available versions for Temurin took' ) ; // eslint-disable-line no-console
}
const baseRequestArguments = [
` project=jdk ` ,
'vendor=adoptium' ,
` heap_size=normal ` ,
'sort_method=DEFAULT' ,
'sort_order=DESC' ,
` os= ${ platform } ` ,
` architecture= ${ arch } ` ,
` image_type= ${ imageType } ` ,
` release_type= ${ releaseType } ` ,
` jvm_impl= ${ this . jvmImpl . toLowerCase ( ) } `
] . join ( '&' ) ;
const requestArguments = ` ${ baseRequestArguments } &page_size=20&page=0 ` ;
let availableVersionsUrl = ` https://api.adoptium.net/v3/assets/version/ ${ versionRange } ? ${ requestArguments } ` ;
const availableVersions = [ ] ;
let pageCount = 0 ;
if ( core /* isDebug */ . _o ( ) ) {
core /* debug */ . Yz ( ` Gathering available versions from ' ${ availableVersionsUrl } ' ` ) ;
}
while ( availableVersionsUrl ) {
pageCount ++ ;
const response = await this . http . getJson ( availableVersionsUrl ) ;
const paginationPage = response . result ;
const nextUrl = ( 0 , util /* getNextPageUrlFromLinkHeader */ . rC ) ( response . headers ) ;
if ( nextUrl &&
! ( 0 , util /* validatePaginationUrl */ . SA ) ( nextUrl , 'https://api.adoptium.net' ) ) {
core /* warning */ . $e ( ` Ignoring pagination link with unexpected origin: ${ nextUrl } ` ) ;
availableVersionsUrl = null ;
}
else {
availableVersionsUrl = nextUrl ;
}
if ( paginationPage === null || paginationPage . length === 0 ) {
break ;
}
availableVersions . push ( ... paginationPage ) ;
if ( pageCount >= util /* MAX_PAGINATION_PAGES */ . Tp ) {
core /* warning */ . $e ( ` Reached pagination safeguard limit ( ${ util /* MAX_PAGINATION_PAGES */ . Tp } pages) while listing Temurin releases. ` ) ;
break ;
}
}
if ( core /* isDebug */ . _o ( ) ) {
core /* startGroup */ . Oh ( 'Print information about available versions' ) ;
console . timeEnd ( 'Retrieving available versions for Temurin took' ) ; // eslint-disable-line no-console
core /* debug */ . Yz ( ` Available versions: [ ${ availableVersions . length } ] ` ) ;
core /* debug */ . Yz ( availableVersions . map ( item => item . version _data . semver ) . join ( ', ' ) ) ;
core /* endGroup */ . N4 ( ) ;
}
return availableVersions ;
}
getPlatformOption ( ) {
// Adoptium has own platform names so need to map them
switch ( process . platform ) {
case 'darwin' :
return 'mac' ;
case 'win32' :
return 'windows' ;
case 'linux' :
2026-08-05 18:45:11 +02:00
if ( ( 0 , platform _types /* isAlpineLinux */ . G6 ) ( ) ) {
2026-07-29 17:53:33 -04:00
return 'alpine-linux' ;
}
return 'linux' ;
default :
return process . platform ;
}
}
distributionArchitecture ( ) {
const architecture = super . distributionArchitecture ( ) ;
return architecture === 'armv7' ? 'arm' : architecture ;
}
}
2026-10-02 00:09:56 -04:00
/ * *
* Builds a SemVer version from the OpenJDK version fields reported by the
* Adoptium API , e . g . '26.0.2.1+1' - > '26.0.2+1.1' and '25.0.4+7-LTS' - >
* '25.0.4+7' . Returns null if the fields cannot form a valid SemVer version .
* /
function getOpenJdkSemverVersion ( versionData ) {
const { major , minor , security , patch , build } = versionData ;
if ( build === undefined || build === null ) {
return null ;
}
const buildMetadata = patch ? ` ${ patch } . ${ build } ` : ` ${ build } ` ;
const version = ` ${ major } . ${ minor } . ${ security } + ${ buildMetadata } ` ;
return semver _default ( ) . valid ( version ) ? version : null ;
}
2026-07-29 17:53:33 -04:00
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
/***/ } ) ,
/***/ 8343 :
/***/ ( ( _ _unused _webpack _module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) => {
/* harmony export */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , {
/* harmony export */ Fh : ( ) => ( /* binding */ importKey ) ,
2026-08-05 18:05:36 +02:00
/* harmony export */ Yi : ( ) => ( /* binding */ verifyPackageSignature ) ,
/* harmony export */ mS : ( ) => ( /* binding */ removeGpgHome ) ,
2026-09-03 13:27:24 -04:00
/* harmony export */ nY : ( ) => ( /* binding */ toGpgPath ) ,
/* harmony export */ o6 : ( ) => ( /* binding */ isGpgAvailable )
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
/* harmony export */ } ) ;
2026-08-05 18:05:36 +02:00
/* unused harmony export GPG_HOME_PREFIX */
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
/* harmony import */ var fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( 9896 ) ;
/* harmony import */ var fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var path _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( 6928 ) ;
/* harmony import */ var path _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( path _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
2026-08-05 18:05:36 +02:00
/* harmony import */ var crypto _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( 6982 ) ;
/* harmony import */ var crypto _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( crypto _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
/* harmony import */ var _actions _io _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( 8701 ) ;
/* harmony import */ var _actions _exec _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( 5260 ) ;
/* harmony import */ var _actions _tool _cache _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( 9805 ) ;
/* harmony import */ var _util _js _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( 4527 ) ;
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
2026-08-05 18:05:36 +02:00
const GPG _HOME _PREFIX = 'setup-java-gpg-' ;
const VERIFY _GPG _HOME _PREFIX = 'verify-signature-gpg-home-' ;
2026-09-03 13:27:24 -04:00
async function isGpgAvailable ( ) {
return Boolean ( await _actions _io _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* .which */ . K7 ( 'gpg' , false ) ) ;
}
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
// Convert a Windows path (D:\a\_temp\...) to a POSIX path (/d/a/_temp/...).
// The Git-bundled GPG on Windows (MSYS2-based) uses POSIX path conventions
// internally. Passing Windows paths with backslashes can cause fatal GPG errors
// (exit code 2), so all paths passed to GPG must be in POSIX format on Windows.
function toGpgPath ( p ) {
if ( process . platform !== 'win32' )
return p ;
return p
. replace ( /\\/g , '/' )
. replace ( /^([A-Za-z]):\// , ( _ , drive ) => ` / ${ drive . toLowerCase ( ) } / ` ) ;
}
2026-09-09 08:08:57 -04:00
function createGpgHome ( prefix , tempDir = _util _js _ _WEBPACK _IMPORTED _MODULE _6 _ _ /* .getTempDir */ . G4 ( ) ) {
const gpgHome = fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ . mkdtempSync ( path _ _WEBPACK _IMPORTED _MODULE _1 _ _ . join ( tempDir , prefix ) ) ;
2026-08-05 18:05:36 +02:00
if ( process . platform !== 'win32' ) {
fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ . chmodSync ( gpgHome , 0o700 ) ;
}
return gpgHome ;
}
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
async function importKey ( privateKey ) {
2026-08-05 18:05:36 +02:00
const gpgHome = createGpgHome ( GPG _HOME _PREFIX ) ;
const privateKeyFile = path _ _WEBPACK _IMPORTED _MODULE _1 _ _ . join ( gpgHome , ` private-key- ${ ( 0 , crypto _ _WEBPACK _IMPORTED _MODULE _2 _ _ . randomUUID ) ( ) } .asc ` ) ;
try {
fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ . writeFileSync ( privateKeyFile , privateKey , {
encoding : 'utf-8' ,
flag : 'wx' ,
mode : 0o600
} ) ;
try {
await _actions _exec _ _WEBPACK _IMPORTED _MODULE _4 _ _ /* .exec */ . m ( 'gpg' , [
'--homedir' ,
toGpgPath ( gpgHome ) ,
'--batch' ,
'--import' ,
toGpgPath ( privateKeyFile )
] , { silent : true } ) ;
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
}
2026-08-05 18:05:36 +02:00
finally {
fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ . rmSync ( privateKeyFile , { force : true } ) ;
}
return gpgHome ;
}
catch ( error ) {
await removeGpgHome ( gpgHome ) ;
throw error ;
}
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
}
2026-08-05 18:05:36 +02:00
async function removeGpgHome ( gpgHome ) {
if ( ! gpgHome ) {
return ;
}
const resolvedGpgHome = path _ _WEBPACK _IMPORTED _MODULE _1 _ _ . resolve ( gpgHome ) ;
const resolvedTempDir = path _ _WEBPACK _IMPORTED _MODULE _1 _ _ . resolve ( _util _js _ _WEBPACK _IMPORTED _MODULE _6 _ _ /* .getTempDir */ . G4 ( ) ) ;
if ( path _ _WEBPACK _IMPORTED _MODULE _1 _ _ . dirname ( resolvedGpgHome ) !== resolvedTempDir ||
! path _ _WEBPACK _IMPORTED _MODULE _1 _ _ . basename ( resolvedGpgHome ) . startsWith ( GPG _HOME _PREFIX ) ) {
throw new Error ( ` Refusing to remove unexpected GPG home: ${ gpgHome } ` ) ;
}
if ( ! fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ . existsSync ( resolvedGpgHome ) ) {
return ;
}
2026-09-28 21:26:40 -04:00
await stopGpgAgent ( resolvedGpgHome ) ;
await _actions _io _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* .rmRF */ . Yz ( resolvedGpgHome ) ;
}
async function stopGpgAgent ( gpgHome ) {
2026-08-05 18:05:36 +02:00
try {
2026-09-28 21:26:40 -04:00
await _actions _exec _ _WEBPACK _IMPORTED _MODULE _4 _ _ /* .exec */ . m ( 'gpgconf' , [ '--homedir' , toGpgPath ( gpgHome ) , '--kill' , 'gpg-agent' ] , { silent : true , ignoreReturnCode : true } ) ;
2026-08-05 18:05:36 +02:00
}
catch {
// gpgconf may be unavailable, but directory removal must still be attempted.
}
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
}
async function verifyPackageSignature ( archivePath , signatureUrl , publicKeyContent ) {
2026-08-05 18:05:36 +02:00
const signaturePath = await _actions _tool _cache _ _WEBPACK _IMPORTED _MODULE _5 _ _ /* .downloadTool */ . bq ( signatureUrl ) ;
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
let gpgHome ;
try {
2026-09-09 08:08:57 -04:00
// Both RUNNER_TEMP and TMPDIR can exceed macOS's 104-byte agent socket limit.
const tempDir = process . platform === 'darwin' ? '/tmp' : _util _js _ _WEBPACK _IMPORTED _MODULE _6 _ _ /* .getTempDir */ . G4 ( ) ;
gpgHome = createGpgHome ( VERIFY _GPG _HOME _PREFIX , tempDir ) ;
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
}
catch ( error ) {
try {
2026-08-05 18:05:36 +02:00
await _actions _io _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* .rmRF */ . Yz ( signaturePath ) ;
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
}
catch {
// ignore cleanup failures
}
throw new Error ( ` Failed to create temporary GPG home directory for signature verification: ${ error . message } ` , { cause : error } ) ;
}
try {
2026-09-03 13:27:24 -04:00
const publicKeys = Array . isArray ( publicKeyContent )
? publicKeyContent
: [ publicKeyContent ] ;
const publicKeyFiles = publicKeys . map ( ( publicKey , index ) => {
const publicKeyFile = path _ _WEBPACK _IMPORTED _MODULE _1 _ _ . join ( gpgHome , ` public-key- ${ index } .asc ` ) ;
fs _ _WEBPACK _IMPORTED _MODULE _0 _ _ . writeFileSync ( publicKeyFile , publicKey , { encoding : 'utf-8' } ) ;
return toGpgPath ( publicKeyFile ) ;
} ) ;
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
const options = { silent : true } ;
2026-08-05 18:05:36 +02:00
await _actions _exec _ _WEBPACK _IMPORTED _MODULE _4 _ _ /* .exec */ . m ( 'gpg' , [
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
'--homedir' ,
toGpgPath ( gpgHome ) ,
'--batch' ,
'--import' ,
2026-09-03 13:27:24 -04:00
... publicKeyFiles
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
] , options ) ;
2026-08-05 18:05:36 +02:00
await _actions _exec _ _WEBPACK _IMPORTED _MODULE _4 _ _ /* .exec */ . m ( 'gpg' , [
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
'--homedir' ,
toGpgPath ( gpgHome ) ,
'--batch' ,
'--verify' ,
toGpgPath ( signaturePath ) ,
toGpgPath ( archivePath )
] , options ) ;
}
finally {
2026-09-28 21:26:40 -04:00
await stopGpgAgent ( gpgHome ) ;
2026-08-05 18:05:36 +02:00
await _actions _io _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* .rmRF */ . Yz ( signaturePath ) ;
await _actions _io _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* .rmRF */ . Yz ( gpgHome ) ;
Optimize Maven configuration warm path (#1182)
* 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
2026-07-30 15:09:35 -04:00
}
}
2026-07-29 17:53:33 -04:00
/***/ } )
} ;