Skip to content

Commit

Permalink
refactor(manager/gradle): cleanup old parser (#18931)
Browse files Browse the repository at this point in the history
  • Loading branch information
Churro committed Nov 16, 2022
1 parent f59ee65 commit dee3452
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 571 deletions.
52 changes: 0 additions & 52 deletions lib/modules/manager/gradle/common.ts

This file was deleted.

17 changes: 6 additions & 11 deletions lib/modules/manager/gradle/parser.spec.ts
@@ -1,12 +1,7 @@
import { Fixtures } from '../../../../test/fixtures';
import { fs, logger } from '../../../../test/util';
import {
GOOGLE_REPO,
GRADLE_PLUGIN_PORTAL_REPO,
JCENTER_REPO,
MAVEN_REPO,
} from './common';
import { parseGradle, parseProps } from './parser';
import { REGISTRY_URLS } from './parser/common';

jest.mock('../../../util/fs');

Expand Down Expand Up @@ -140,11 +135,11 @@ describe('modules/manager/gradle/parser', () => {
describe('predefined registries', () => {
test.each`
input | output
${'mavenCentral()'} | ${MAVEN_REPO}
${'google()'} | ${GOOGLE_REPO}
${'google { content { includeGroup "foo" } }'} | ${GOOGLE_REPO}
${'gradlePluginPortal()'} | ${GRADLE_PLUGIN_PORTAL_REPO}
${'jcenter()'} | ${JCENTER_REPO}
${'mavenCentral()'} | ${REGISTRY_URLS.mavenCentral}
${'google()'} | ${REGISTRY_URLS.google}
${'google { content { includeGroup "foo" } }'} | ${REGISTRY_URLS.google}
${'gradlePluginPortal()'} | ${REGISTRY_URLS.gradlePluginPortal}
${'jcenter()'} | ${REGISTRY_URLS.jcenter}
`('$input', ({ input, output }) => {
const { urls } = parseGradle(input);
expect(urls).toStrictEqual([output].filter(Boolean));
Expand Down
183 changes: 0 additions & 183 deletions lib/modules/manager/gradle/tokenizer.spec.ts

This file was deleted.

0 comments on commit dee3452

Please sign in to comment.