Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
f317458b
Unverified
Commit
f317458b
authored
2 years ago
by
Sergei Zharinov
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/modules/manager/gradle/extract.ts
+1
-2
1 addition, 2 deletions
lib/modules/manager/gradle/extract.ts
lib/modules/manager/gradle/utils.ts
+0
-6
0 additions, 6 deletions
lib/modules/manager/gradle/utils.ts
with
1 addition
and
8 deletions
lib/modules/manager/gradle/extract.ts
+
1
−
2
View file @
f317458b
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
lib/modules/manager/gradle/utils.ts
+
0
−
6
View file @
f317458b
...
...
@@ -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
'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment