From 963a1d9eba440819e0972ab87177c9ab2d18334a Mon Sep 17 00:00:00 2001
From: Tobias <tobias.gabriel@sap.com>
Date: Wed, 14 Dec 2022 20:00:40 +0100
Subject: [PATCH] fix(sbt-plugin): switch defaultRegistryUrl to
 `repo.scala-sbt.org/scalasbt/sbt-plugin-releases` (#19400)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
---
 .../datasource/sbt-plugin/index.spec.ts       | 24 +++++++++----------
 lib/modules/datasource/sbt-plugin/index.ts    |  2 +-
 .../sbt/__snapshots__/extract.spec.ts.snap    |  4 ++--
 lib/modules/manager/sbt/extract.spec.ts       |  2 +-
 4 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/lib/modules/datasource/sbt-plugin/index.spec.ts b/lib/modules/datasource/sbt-plugin/index.spec.ts
index 89af547ba3..99a0eda1c5 100644
--- a/lib/modules/datasource/sbt-plugin/index.spec.ts
+++ b/lib/modules/datasource/sbt-plugin/index.spec.ts
@@ -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' +
@@ -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,
@@ -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,
@@ -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' }],
       });
     });
@@ -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' }],
       });
     });
diff --git a/lib/modules/datasource/sbt-plugin/index.ts b/lib/modules/datasource/sbt-plugin/index.ts
index ba81987f03..ee815340da 100644
--- a/lib/modules/datasource/sbt-plugin/index.ts
+++ b/lib/modules/datasource/sbt-plugin/index.ts
@@ -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];
 
diff --git a/lib/modules/manager/sbt/__snapshots__/extract.spec.ts.snap b/lib/modules/manager/sbt/__snapshots__/extract.spec.ts.snap
index 825c6734c6..fc4242ac84 100644
--- a/lib/modules/manager/sbt/__snapshots__/extract.spec.ts.snap
+++ b/lib/modules/manager/sbt/__snapshots__/extract.spec.ts.snap
@@ -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",
       ],
     },
     {
@@ -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",
       ],
     },
   ],
diff --git a/lib/modules/manager/sbt/extract.spec.ts b/lib/modules/manager/sbt/extract.spec.ts
index ac113d5d3a..744e5f2dc9 100644
--- a/lib/modules/manager/sbt/extract.spec.ts
+++ b/lib/modules/manager/sbt/extract.spec.ts
@@ -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',
             ],
           },
         ],
-- 
GitLab