chore: Remove dependency on backend-common
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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:^"
|
||||
|
||||
Reference in New Issue
Block a user