@@ -13204,14 +13204,15 @@ const path = __importStar(__webpack_require__(622));
13204
13204
const core = __importStar(__webpack_require__(470));
13205
13205
const io = __importStar(__webpack_require__(1));
13206
13206
const xmlbuilder2_1 = __webpack_require__(255);
13207
+ const constants = __importStar(__webpack_require__(694));
13207
13208
exports.M2_DIR = '.m2';
13208
13209
exports.SETTINGS_FILE = 'settings.xml';
13209
13210
function configAuthentication(id, username, password, gpgPassphrase = undefined) {
13210
13211
return __awaiter(this, void 0, void 0, function* () {
13211
13212
console.log(`creating ${exports.SETTINGS_FILE} with server-id: ${id};`, 'environment variables:', `username=\$${username},`, `password=\$${password},`, `and gpg-passphrase=${gpgPassphrase ? '$' + gpgPassphrase : null}`);
13212
13213
// when an alternate m2 location is specified use only that location (no .m2 directory)
13213
13214
// 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);
13215
13216
yield io.mkdirP(settingsDirectory);
13216
13217
core.debug(`created directory ${settingsDirectory}`);
13217
13218
yield write(settingsDirectory, generate(id, username, password, gpgPassphrase));
@@ -25661,6 +25662,7 @@ exports.INPUT_JDK_FILE = 'jdkFile';
25661
25662
exports.INPUT_SERVER_ID = 'server-id';
25662
25663
exports.INPUT_SERVER_USERNAME = 'server-username';
25663
25664
exports.INPUT_SERVER_PASSWORD = 'server-password';
25665
+ exports.INPUT_SETTINGS_PATH = 'settings-path';
25664
25666
exports.INPUT_GPG_PRIVATE_KEY = 'gpg-private-key';
25665
25667
exports.INPUT_GPG_PASSPHRASE = 'gpg-passphrase';
25666
25668
exports.INPUT_DEFAULT_GPG_PASSPHRASE = 'GPG_PASSPHRASE';
0 commit comments