Skip to content
Snippets Groups Projects
Unverified Commit f317458b authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

fix(gradle): Don't skip files matched via custom pattern (#15027)

parent 1df6f6f1
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ import type {
} from './types';
import {
getVars,
isGradleFile,
isPropsFile,
isTOMLFile,
reorderFiles,
......@@ -68,7 +67,7 @@ export async function extractAllPackageFiles(
} else if (isTOMLFile(packageFile)) {
const updatesFromCatalog = parseCatalog(packageFile, content);
extractedDeps.push(...updatesFromCatalog);
} else if (isGradleFile(packageFile)) {
} else {
const vars = getVars(registry, dir);
const {
deps,
......
......@@ -101,7 +101,6 @@ export function interpolateString(
const gradleVersionsFileRegex = regEx('^versions\\.gradle(?:\\.kts)?$', 'i');
const gradleBuildFileRegex = regEx('^build\\.gradle(?:\\.kts)?$', 'i');
const gradleFileRegex = regEx('\\.gradle(?:\\.kts)?$', 'i');
export function isGradleVersionsFile(path: string): boolean {
const filename = upath.basename(path);
......@@ -113,11 +112,6 @@ export function isGradleBuildFile(path: string): boolean {
return gradleBuildFileRegex.test(filename);
}
export function isGradleFile(path: string): boolean {
const filename = upath.basename(path);
return gradleFileRegex.test(filename);
}
export function isPropsFile(path: string): boolean {
const filename = upath.basename(path).toLowerCase();
return filename === 'gradle.properties';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment