Apache snapshots repository

This commit is contained in:
Slawomir Jaranowski
2020-10-16 16:05:58 +02:00
parent 468da7c285
commit 71886e4f1b
7 changed files with 125 additions and 0 deletions

View File

@ -149,6 +149,12 @@ function addProfile(template, profileName) {
profilesXml.appendChild(sonatypeXml);
}
function addApacheSnapshots(template) {
if (isInputTrue('apacheSnapshots')) {
addProfile(template, 'apache-snapshot.xml')
}
}
function addSonatypeSnapshots(template) {
if (isInputTrue('sonatypeSnapshots')) {
addProfile(template, 'sonatype-snapshot.xml')
@ -182,6 +188,7 @@ function generate() {
fillServers(settingsXml, 'oracleServers');
fillServerForGithub(settingsXml);
fillProperties(settingsXml);
addApacheSnapshots(settingsXml);
addSonatypeSnapshots(settingsXml);
addOracleRepo(settingsXml);
writeSettings(settingsPath, settingsXml);
@ -211,6 +218,7 @@ module.exports = {
fillServers,
fillServerForGithub,
fillProperties,
addApacheSnapshots,
addSonatypeSnapshots,
addOracleRepo,
generate,