Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
Fix "SETTINGS" typo (#40)
Browse files Browse the repository at this point in the history
* Fix "SETTINGS" typo

* Add legacy constant in order to keep backwards compatibility
  • Loading branch information
bellackn authored and tobias-richter committed Dec 16, 2019
1 parent a5808c9 commit 855e76c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jenkinsfiles/integration-tests.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ node() {
ManagedFileConstants managedFileConstants = new ManagedFileConstants()
log.info(ManagedFileConstants.GLOBAL_MAVEN_SETTINGS_PATH, ManagedFileConstants.GLOBAL_MAVEN_SETTINGS_PATH)
log.info(ManagedFileConstants.GLOBAL_MAVEN__SETTINGS_ENV, ManagedFileConstants.GLOBAL_MAVEN__SETTINGS_ENV)
log.info(ManagedFileConstants.MAVEN_SETTINS_PATH, ManagedFileConstants.MAVEN_SETTINS_PATH)
log.info(ManagedFileConstants.MAVEN_SETTINGS_PATH, ManagedFileConstants.MAVEN_SETTINGS_PATH)
log.info(ManagedFileConstants.MAVEN_SETTING_ENV, ManagedFileConstants.MAVEN_SETTING_ENV)
log.info(ManagedFileConstants.NPM_CONFIG_USERCONFIG_PATH, ManagedFileConstants.NPM_CONFIG_USERCONFIG_PATH)
log.info(ManagedFileConstants.NPM_CONFIG_USERCONFIG_ENV, ManagedFileConstants.NPM_CONFIG_USERCONFIG_ENV)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class ManagedFileConstants implements Serializable {
static final String GLOBAL_MAVEN_SETTINGS_PATH = "managedfiles/maven/global-settings.json"
static final String GLOBAL_MAVEN__SETTINGS_ENV = "MVN_GLOBAL_SETTINGS"

// DEPRECATED, MAVEN_SETTINS_PATH will be removed in next major version
static final String MAVEN_SETTINS_PATH = "managedfiles/maven/settings.json"
static final String MAVEN_SETTINGS_PATH = "managedfiles/maven/settings.json"
static final String MAVEN_SETTING_ENV = "MVN_SETTINGS"

static final String NPM_CONFIG_USERCONFIG_PATH = "managedfiles/npm/npm-config-userconfig.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PatternMatcherMavenSettingsTest extends DSLTestBase {
void setUp() throws Exception {
super.setUp()
underTest = new PatternMatcher()
JsonLibraryResource res = new JsonLibraryResource(this.dslMock.getMock(), ManagedFileConstants.MAVEN_SETTINS_PATH)
JsonLibraryResource res = new JsonLibraryResource(this.dslMock.getMock(), ManagedFileConstants.MAVEN_SETTINGS_PATH)
ManagedFileParser parser = new ManagedFileParser()
managedFiles = parser.parse(res.load())
}
Expand Down
2 changes: 1 addition & 1 deletion vars/execMaven.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void call(Map config = null) {
// retrieve settingsId
if (commandBuilder.getSettingsId() == null) {
// use autolookup for maven global settingsId
ManagedFile mavenSettingsManagedFile = autoLookupMavenSettings(ManagedFileConstants.MAVEN_SETTINS_PATH, scmUrl, log)
ManagedFile mavenSettingsManagedFile = autoLookupMavenSettings(ManagedFileConstants.MAVEN_SETTINGS_PATH, scmUrl, log)
if (mavenSettingsManagedFile) {
commandBuilder.setSettingsId(mavenSettingsManagedFile.getId())
}
Expand Down

0 comments on commit 855e76c

Please sign in to comment.