@@ -13204,14 +13204,15 @@ const path = __importStar(__webpack_require__(622));
1320413204const core = __importStar(__webpack_require__(470));
1320513205const io = __importStar(__webpack_require__(1));
1320613206const xmlbuilder2_1 = __webpack_require__(255);
13207+ const constants = __importStar(__webpack_require__(694));
1320713208exports.M2_DIR = '.m2';
1320813209exports.SETTINGS_FILE = 'settings.xml';
1320913210function configAuthentication(id, username, password, gpgPassphrase = undefined) {
1321013211 return __awaiter(this, void 0, void 0, function* () {
1321113212 console.log(`creating ${exports.SETTINGS_FILE} with server-id: ${id};`, 'environment variables:', `username=\$${username},`, `password=\$${password},`, `and gpg-passphrase=${gpgPassphrase ? '$' + gpgPassphrase : null}`);
1321213213 // when an alternate m2 location is specified use only that location (no .m2 directory)
1321313214 // otherwise use the home/.m2/ path
13214- const settingsDirectory = path.join(core.getInput('settings-path' ) || os.homedir(), core.getInput('settings-path' ) ? '' : exports.M2_DIR);
13215+ const settingsDirectory = path.join(core.getInput(constants.INPUT_SETTINGS_PATH ) || os.homedir(), core.getInput(constants.INPUT_SETTINGS_PATH ) ? '' : exports.M2_DIR);
1321513216 yield io.mkdirP(settingsDirectory);
1321613217 core.debug(`created directory ${settingsDirectory}`);
1321713218 yield write(settingsDirectory, generate(id, username, password, gpgPassphrase));
@@ -25661,6 +25662,7 @@ exports.INPUT_JDK_FILE = 'jdkFile';
2566125662exports.INPUT_SERVER_ID = 'server-id';
2566225663exports.INPUT_SERVER_USERNAME = 'server-username';
2566325664exports.INPUT_SERVER_PASSWORD = 'server-password';
25665+ exports.INPUT_SETTINGS_PATH = 'settings-path';
2566425666exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
2566525667exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
2566625668exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
0 commit comments