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
5eff5b8b
Unverified
Commit
5eff5b8b
authored
5 years ago
by
Sergio Zharinov
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(gradle): Use gradle wrapper inside docker (#5598)
parent
de2986fa
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/manager/gradle/__snapshots__/index.spec.ts.snap
+2
-2
2 additions, 2 deletions
lib/manager/gradle/__snapshots__/index.spec.ts.snap
lib/manager/gradle/index.ts
+0
-3
0 additions, 3 deletions
lib/manager/gradle/index.ts
with
2 additions
and
5 deletions
lib/manager/gradle/__snapshots__/index.spec.ts.snap
+
2
−
2
View file @
5eff5b8b
...
@@ -508,7 +508,7 @@ Array [
...
@@ -508,7 +508,7 @@ Array [
exports[`manager/gradle extractPackageFile should use docker even if gradlew is available 1`] = `
exports[`manager/gradle extractPackageFile should use docker even if gradlew is available 1`] = `
Array [
Array [
Object {
Object {
"cmd": "docker run --rm -v \\"localDir\\":\\"localDir\\" -w \\"localDir\\" renovate/gradle bash -l -c \\"gradle --init-script renovate-plugin.gradle renovate\\"",
"cmd": "docker run --rm -v \\"localDir\\":\\"localDir\\" -w \\"localDir\\" renovate/gradle bash -l -c \\"
./
gradle
w
--init-script renovate-plugin.gradle renovate\\"",
"options": Object {
"options": Object {
"cwd": "localDir",
"cwd": "localDir",
"encoding": "utf-8",
"encoding": "utf-8",
...
@@ -536,7 +536,7 @@ Array [
...
@@ -536,7 +536,7 @@ Array [
},
},
},
},
Object {
Object {
"cmd": "docker run --rm -v \\"localDir\\":\\"localDir\\" -w \\"localDir\\" renovate/gradle bash -l -c \\"gradle --init-script renovate-plugin.gradle renovate\\"",
"cmd": "docker run --rm -v \\"localDir\\":\\"localDir\\" -w \\"localDir\\" renovate/gradle bash -l -c \\"
./
gradle
w
--init-script renovate-plugin.gradle renovate\\"",
"options": Object {
"options": Object {
"cwd": "localDir",
"cwd": "localDir",
"encoding": "utf-8",
"encoding": "utf-8",
...
...
This diff is collapsed.
Click to expand it.
lib/manager/gradle/index.ts
+
0
−
3
View file @
5eff5b8b
...
@@ -24,7 +24,6 @@ import {
...
@@ -24,7 +24,6 @@ import {
import
{
platform
}
from
'
../../platform
'
;
import
{
platform
}
from
'
../../platform
'
;
import
{
LANGUAGE_JAVA
}
from
'
../../constants/languages
'
;
import
{
LANGUAGE_JAVA
}
from
'
../../constants/languages
'
;
import
{
DATASOURCE_MAVEN
}
from
'
../../constants/data-binary-source
'
;
import
{
DATASOURCE_MAVEN
}
from
'
../../constants/data-binary-source
'
;
import
{
BinarySource
}
from
'
../../util/exec/common
'
;
import
{
DatasourceError
}
from
'
../../datasource
'
;
import
{
DatasourceError
}
from
'
../../datasource
'
;
export
const
GRADLE_DEPENDENCY_REPORT_OPTIONS
=
export
const
GRADLE_DEPENDENCY_REPORT_OPTIONS
=
...
@@ -46,8 +45,6 @@ async function getGradleCommandLine(
...
@@ -46,8 +45,6 @@ async function getGradleCommandLine(
):
Promise
<
string
>
{
):
Promise
<
string
>
{
const
args
=
GRADLE_DEPENDENCY_REPORT_OPTIONS
;
const
args
=
GRADLE_DEPENDENCY_REPORT_OPTIONS
;
if
(
config
.
binarySource
===
BinarySource
.
Docker
)
return
`gradle
${
args
}
`
;
const
gradlewPath
=
upath
.
join
(
cwd
,
'
gradlew
'
);
const
gradlewPath
=
upath
.
join
(
cwd
,
'
gradlew
'
);
const
gradlewExists
=
await
exists
(
gradlewPath
);
const
gradlewExists
=
await
exists
(
gradlewPath
);
const
gradlewExecutable
=
gradlewExists
&&
(
await
canExecute
(
gradlewPath
));
const
gradlewExecutable
=
gradlewExists
&&
(
await
canExecute
(
gradlewPath
));
...
...
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