Wire though maven-url to java config (#2291)

Signed-off-by: Colm O hEigeartaigh <coheigea@apache.org>
This commit is contained in:
Colm O hEigeartaigh 2023-11-06 14:08:03 +00:00 committed by GitHub
parent 1470abaded
commit 9fa11f2339
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -141,7 +141,7 @@ func (cfg Catalog) ToCatalogerConfig() cataloger.Config {
},
Java: javaCataloger.DefaultCatalogerOpts().
WithUseNetwork(cfg.Java.UseNetwork).
WithMavenCentralURL(cfg.Java.MavenURL).
WithMavenURL(cfg.Java.MavenURL).
WithMaxParentRecursiveDepth(cfg.Java.MaxParentRecursiveDepth),
Python: pythonCataloger.CatalogerConfig{
GuessUnpinnedRequirements: cfg.Python.GuessUnpinnedRequirements,

View file

@ -38,6 +38,7 @@ func (c Config) JavaConfig() java.Config {
SearchUnindexedArchives: c.Search.IncludeUnindexedArchives,
SearchIndexedArchives: c.Search.IncludeIndexedArchives,
UseNetwork: c.Java.UseNetwork,
MavenBaseURL: c.Java.MavenURL,
MaxParentRecursiveDepth: c.Java.MaxParentRecursiveDepth,
}
}

View file

@ -13,7 +13,7 @@ func (j CatalogerOpts) WithUseNetwork(input bool) CatalogerOpts {
return j
}
func (j CatalogerOpts) WithMavenCentralURL(input string) CatalogerOpts {
func (j CatalogerOpts) WithMavenURL(input string) CatalogerOpts {
if input != "" {
j.MavenURL = input
}