chore: Remove dependency on backend-common

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2024-08-19 15:35:46 +02:00
parent 41b02f5c3c
commit b446954bb2
4 changed files with 13 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-gitlab': patch
---
Remove dependency on backend-common
@@ -51,7 +51,7 @@
"test": "backstage-cli package test"
},
"dependencies": {
"@backstage/backend-common": "workspace:^",
"@backstage/backend-defaults": "workspace:^",
"@backstage/backend-plugin-api": "workspace:^",
"@backstage/backend-tasks": "workspace:^",
"@backstage/catalog-model": "workspace:^",
@@ -14,11 +14,6 @@
* limitations under the License.
*/
import {
CacheClient,
CacheManager,
PluginCacheManager,
} from '@backstage/backend-common';
import { Config } from '@backstage/config';
import {
ScmIntegrationRegistry,
@@ -31,7 +26,11 @@ import {
processingResult,
} from '@backstage/plugin-catalog-node';
import { GitLabClient, GitLabProject, paginated } from './lib';
import { LoggerService } from '@backstage/backend-plugin-api';
import { CacheService, LoggerService } from '@backstage/backend-plugin-api';
import {
CacheManager,
PluginCacheManager,
} from '@backstage/backend-defaults/cache';
/**
* Extracts repositories out of an GitLab instance.
@@ -40,7 +39,7 @@ import { LoggerService } from '@backstage/backend-plugin-api';
export class GitLabDiscoveryProcessor implements CatalogProcessor {
private readonly integrations: ScmIntegrationRegistry;
private readonly logger: LoggerService;
private readonly cache: CacheClient;
private readonly cache: CacheService;
private readonly skipReposWithoutExactFileMatch: boolean;
private readonly skipForkedRepos: boolean;
+1 -1
View File
@@ -5501,7 +5501,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@backstage/plugin-catalog-backend-module-gitlab@workspace:plugins/catalog-backend-module-gitlab"
dependencies:
"@backstage/backend-common": "workspace:^"
"@backstage/backend-defaults": "workspace:^"
"@backstage/backend-plugin-api": "workspace:^"
"@backstage/backend-tasks": "workspace:^"
"@backstage/backend-test-utils": "workspace:^"