From 4264cda55833d8459588aa202eb0799e9b24c68c Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Mon, 13 Sep 2021 11:47:32 -0600 Subject: [PATCH] Group log messages generated when provisioning Gradle --- src/provision.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/provision.ts b/src/provision.ts index 6cbbd9c..d69711c 100644 --- a/src/provision.ts +++ b/src/provision.ts @@ -93,6 +93,14 @@ async function findGradleVersionDeclaration( async function provisionGradle( versionInfo: GradleVersionInfo +): Promise { + return core.group(`Provision Gradle ${versionInfo.version}`, async () => { + return locateGradleAndDownloadIfRequired(versionInfo) + }) +} + +async function locateGradleAndDownloadIfRequired( + versionInfo: GradleVersionInfo ): Promise { const installsDir = path.join(os.homedir(), 'gradle-installations/installs') const installDir = path.join(installsDir, `gradle-${versionInfo.version}`)