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}`)