Skip to content

Commit 1e86dae

Browse files
authored
[MRESOLVER-701] Support legacy property (#723)
For easier transitioning. --- https://issues.apache.org/jira/browse/MRESOLVER-701
1 parent 9c79e75 commit 1e86dae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/Maven2RepositoryLayoutFactory.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ public RepositoryLayout newInstance(RepositorySystemSession session, RemoteRepos
111111
session,
112112
DEFAULT_CHECKSUMS_ALGORITHMS,
113113
CONFIG_PROP_CHECKSUMS_ALGORITHMS + "." + repository.getId(),
114-
CONFIG_PROP_CHECKSUMS_ALGORITHMS)));
114+
CONFIG_PROP_CHECKSUMS_ALGORITHMS,
115+
// MRESOLVER-701: support legacy properties for simpler transitioning
116+
"aether.checksums.algorithms",
117+
"aether.checksums.algorithms." + repository.getId())));
115118

116119
return new Maven2RepositoryLayout(checksumsAlgorithms, artifactPredicateFactory.newInstance(session));
117120
}

0 commit comments

Comments
 (0)