Skip to content

Commit

Permalink
feat(manager/gradle-wrapper): change wrapper task to :wrapper (#26098)
Browse files Browse the repository at this point in the history
  • Loading branch information
Churro authored Dec 4, 2023
1 parent f72f11c commit 7b30ba8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/modules/manager/gradle-wrapper/artifacts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('modules/manager/gradle-wrapper/artifacts', () => {
);
expect(execSnapshots).toMatchObject([
{
cmd: './gradlew wrapper --gradle-distribution-url https://services.gradle.org/distributions/gradle-6.3-bin.zip',
cmd: './gradlew :wrapper --gradle-distribution-url https://services.gradle.org/distributions/gradle-6.3-bin.zip',
options: {
cwd: '/tmp/github/some/repo',
encoding: 'utf-8',
Expand Down Expand Up @@ -162,7 +162,7 @@ describe('modules/manager/gradle-wrapper/artifacts', () => {
expect(result).toBeEmptyArray();
expect(execSnapshots).toMatchObject([
{
cmd: './gradlew wrapper --gradle-version 5.6.4',
cmd: './gradlew :wrapper --gradle-version 5.6.4',
options: { cwd: '/tmp/github/some/repo' },
},
]);
Expand Down Expand Up @@ -219,7 +219,7 @@ describe('modules/manager/gradle-wrapper/artifacts', () => {
' bash -l -c "' +
'install-tool java 11.0.1' +
' && ' +
'./gradlew wrapper --gradle-distribution-url https://services.gradle.org/distributions/gradle-6.3-bin.zip --gradle-distribution-sha256-sum 038794feef1f4745c6347107b6726279d1c824f3fc634b60f86ace1e9fbd1768' +
'./gradlew :wrapper --gradle-distribution-url https://services.gradle.org/distributions/gradle-6.3-bin.zip --gradle-distribution-sha256-sum 038794feef1f4745c6347107b6726279d1c824f3fc634b60f86ace1e9fbd1768' +
'"',
options: { cwd: '/tmp/github/some/repo' },
},
Expand Down Expand Up @@ -261,7 +261,7 @@ describe('modules/manager/gradle-wrapper/artifacts', () => {
expect(execSnapshots).toMatchObject([
{ cmd: 'install-tool java 11.0.1' },
{
cmd: './gradlew wrapper --gradle-distribution-url https://services.gradle.org/distributions/gradle-6.3-bin.zip --gradle-distribution-sha256-sum 038794feef1f4745c6347107b6726279d1c824f3fc634b60f86ace1e9fbd1768',
cmd: './gradlew :wrapper --gradle-distribution-url https://services.gradle.org/distributions/gradle-6.3-bin.zip --gradle-distribution-sha256-sum 038794feef1f4745c6347107b6726279d1c824f3fc634b60f86ace1e9fbd1768',
options: { cwd: '/tmp/github/some/repo' },
},
]);
Expand Down Expand Up @@ -328,7 +328,7 @@ describe('modules/manager/gradle-wrapper/artifacts', () => {
);
expect(execSnapshots).toMatchObject([
{
cmd: './gradlew wrapper --gradle-distribution-url https://services.gradle.org/distributions/gradle-6.3-bin.zip',
cmd: './gradlew :wrapper --gradle-distribution-url https://services.gradle.org/distributions/gradle-6.3-bin.zip',
options: {
cwd: '/tmp/github/some/repo/sub',
encoding: 'utf-8',
Expand Down Expand Up @@ -458,7 +458,7 @@ describe('modules/manager/gradle-wrapper/artifacts', () => {
expect(res).toStrictEqual(updatedArtifacts);
expect(execSnapshots).toMatchObject([
{
cmd: './gradlew wrapper --gradle-version 8.2',
cmd: './gradlew :wrapper --gradle-version 8.2',
},
]);
});
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/gradle-wrapper/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export async function updateArtifacts({
logger.info('No gradlew found - skipping Artifacts update');
return null;
}
cmd += ' wrapper';
cmd += ' :wrapper';

let checksum: string | null = null;
const distributionUrl = getDistributionUrl(newPackageFileContent);
Expand Down

0 comments on commit 7b30ba8

Please sign in to comment.