Skip to content

Commit

Permalink
Allow daemons to run across workflow steps
Browse files Browse the repository at this point in the history
Now that we are stopping all Gradle daemons in the post-job action,
we can allow daemon processes to be re-used across steps in a workflow job.

Fixes #113
  • Loading branch information
bigdaz committed Jun 5, 2022
1 parent aea6dda commit 52ebf27
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cache-base.ts
Expand Up @@ -166,9 +166,6 @@ export class GradleStateCache {
}

private initializeGradleUserHome(gradleUserHome: string, initScriptsDir: string): void {
const propertiesFile = path.resolve(gradleUserHome, 'gradle.properties')
fs.appendFileSync(propertiesFile, 'org.gradle.daemon=false')

const initScriptFilenames = ['build-result-capture.init.gradle', 'build-result-capture-service.plugin.groovy']
for (const initScriptFilename of initScriptFilenames) {
const initScriptContent = this.readResourceAsString(initScriptFilename)
Expand Down

0 comments on commit 52ebf27

Please sign in to comment.