Skip to content

Commit

Permalink
fix(sbt-plugin): switch defaultRegistryUrl to `repo.scala-sbt.org/sca…
Browse files Browse the repository at this point in the history
…lasbt/sbt-plugin-releases` (#19400)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
Shegox and viceice committed Dec 14, 2022
1 parent 996d3b1 commit 963a1d9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions lib/modules/datasource/sbt-plugin/index.spec.ts
Expand Up @@ -52,12 +52,12 @@ describe('modules/datasource/sbt-plugin/index', () => {
.reply(200, "<a href='1.2.3/'>4.5.6/</a>");

httpMock
.scope('https://dl.bintray.com')
.get('/sbt/sbt-plugin-releases/com.github.gseitz/')
.scope('https://repo.scala-sbt.org')
.get('/scalasbt/sbt-plugin-releases/com.github.gseitz/')
.reply(200, '');
httpMock
.scope('https://dl.bintray.com')
.get('/sbt/sbt-plugin-releases/org.foundweekends/sbt-bintray/')
.scope('https://repo.scala-sbt.org')
.get('/scalasbt/sbt-plugin-releases/org.foundweekends/sbt-bintray/')
.reply(
200,
'<html>\n' +
Expand All @@ -69,9 +69,9 @@ describe('modules/datasource/sbt-plugin/index', () => {
'</html>'
);
httpMock
.scope('https://dl.bintray.com')
.scope('https://repo.scala-sbt.org')
.get(
'/sbt/sbt-plugin-releases/org.foundweekends/sbt-bintray/scala_2.12/'
'/scalasbt/sbt-plugin-releases/org.foundweekends/sbt-bintray/scala_2.12/'
)
.reply(
200,
Expand All @@ -85,9 +85,9 @@ describe('modules/datasource/sbt-plugin/index', () => {
'</html>\n'
);
httpMock
.scope('https://dl.bintray.com')
.scope('https://repo.scala-sbt.org')
.get(
'/sbt/sbt-plugin-releases/org.foundweekends/sbt-bintray/scala_2.12/sbt_1.0/'
'/scalasbt/sbt-plugin-releases/org.foundweekends/sbt-bintray/scala_2.12/sbt_1.0/'
)
.reply(
200,
Expand Down Expand Up @@ -169,8 +169,8 @@ describe('modules/datasource/sbt-plugin/index', () => {
})
).toEqual({
dependencyUrl:
'https://dl.bintray.com/sbt/sbt-plugin-releases/org.foundweekends/sbt-bintray',
registryUrl: 'https://dl.bintray.com/sbt/sbt-plugin-releases',
'https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.foundweekends/sbt-bintray',
registryUrl: 'https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases',
releases: [{ version: '0.5.5' }],
});
});
Expand All @@ -185,8 +185,8 @@ describe('modules/datasource/sbt-plugin/index', () => {
})
).toEqual({
dependencyUrl:
'https://dl.bintray.com/sbt/sbt-plugin-releases/org.foundweekends/sbt-bintray',
registryUrl: 'https://dl.bintray.com/sbt/sbt-plugin-releases',
'https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.foundweekends/sbt-bintray',
registryUrl: 'https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases',
releases: [{ version: '0.5.5' }],
});
});
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/sbt-plugin/index.ts
Expand Up @@ -10,7 +10,7 @@ import { getLatestVersion, parseIndexDir } from '../sbt-package/util';
import type { GetReleasesConfig, ReleaseResult } from '../types';

export const SBT_PLUGINS_REPO =
'https://dl.bintray.com/sbt/sbt-plugin-releases';
'https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases';

export const defaultRegistryUrls = [SBT_PLUGINS_REPO];

Expand Down
4 changes: 2 additions & 2 deletions lib/modules/manager/sbt/__snapshots__/extract.spec.ts.snap
Expand Up @@ -266,7 +266,7 @@ exports[`modules/manager/sbt/extract extractPackageFile() extracts deps for gene
"https://example.com/repos/3/",
"https://example.com/repos/4/",
"https://example.com/repos/5/",
"https://dl.bintray.com/sbt/sbt-plugin-releases",
"https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases",
],
},
{
Expand Down Expand Up @@ -435,7 +435,7 @@ exports[`modules/manager/sbt/extract extractPackageFile() extracts deps when sca
"https://example.com/repos/3/",
"https://example.com/repos/4/",
"https://example.com/repos/5/",
"https://dl.bintray.com/sbt/sbt-plugin-releases",
"https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases",
],
},
],
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/sbt/extract.spec.ts
Expand Up @@ -118,7 +118,7 @@ describe('modules/manager/sbt/extract', () => {
packageName: 'com.github.gseitz:sbt-release',
registryUrls: [
'https://repo.maven.apache.org/maven2',
'https://dl.bintray.com/sbt/sbt-plugin-releases',
'https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases',
],
},
],
Expand Down

0 comments on commit 963a1d9

Please sign in to comment.