Skip to content

Commit

Permalink
fix(sbt): Append additional registry URL for Sbt plugins (#8105)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Dec 21, 2020
1 parent 61da4d6 commit ed9fe83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/manager/sbt/__snapshots__/extract.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ Object {
"https://example.com/repos/3/",
"https://example.com/repos/4/",
"https://example.com/repos/5/",
"https://dl.bintray.com/sbt/sbt-plugin-releases",
],
},
],
Expand Down Expand Up @@ -372,6 +373,7 @@ Object {
"https://example.com/repos/3/",
"https://example.com/repos/4/",
"https://example.com/repos/5/",
"https://dl.bintray.com/sbt/sbt-plugin-releases",
],
},
],
Expand Down Expand Up @@ -441,6 +443,7 @@ Object {
"lookupName": "com.github.gseitz:sbt-release",
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://dl.bintray.com/sbt/sbt-plugin-releases",
],
},
],
Expand Down
4 changes: 4 additions & 0 deletions lib/manager/sbt/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ function parseSbtLine(
if (!dep.datasource) {
if (dep.depType === 'plugin') {
dep.datasource = datasourceSbtPlugin.id;
dep.registryUrls = [
...registryUrls,
...datasourceSbtPlugin.defaultRegistryUrls,
];
} else {
dep.datasource = datasourceSbtPackage.id;
}
Expand Down

0 comments on commit ed9fe83

Please sign in to comment.