Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit e444647

Browse files
committedDec 7, 2022
Save/restore extracted JDK instead of archive
Gradle 7.6 changes the way the downloaded JDKs are saved and extracted. To workaround this difference, save and restore the extracted JDK instead.
1 parent 970a147 commit e444647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/cache-extract-entries.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ export class GradleHomeEntryExtractor extends AbstractEntryExtractor {
338338

339339
return [
340340
entryDefinition('generated-gradle-jars', ['caches/*/generated-gradle-jars/*.jar'], false),
341-
entryDefinition('wrapper-zips', ['wrapper/dists/*/*/'], false), // Entire wrapper directory cached together
342-
entryDefinition('java-toolchains', ['jdks/*.zip', 'jdks/*.tar.gz'], false),
341+
entryDefinition('wrapper-zips', ['wrapper/dists/*/*/'], false), // Each wrapper directory cached separately
342+
entryDefinition('java-toolchains', ['jdks/*/'], false), // Each extracted JDK cached separately
343343
entryDefinition('dependencies', ['caches/modules-*/files-*/*/*/*/*'], true),
344344
entryDefinition('instrumented-jars', ['caches/jars-*/*'], true),
345345
entryDefinition('kotlin-dsl', ['caches/*/kotlin-dsl/*/*'], true)

0 commit comments

Comments
 (0)
This repository has been archived.