Slackbot
02/05/2024, 12:38 PMVampire
02/05/2024, 12:49 PMMarcin Robaczyński
02/05/2024, 12:51 PMopenssl rand -base64 16
Marcin Robaczyński
02/05/2024, 12:51 PM- name: Run ktlint
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
arguments: ktlintCheck
Vampire
02/05/2024, 12:53 PMJason Pearson
02/13/2024, 4:50 PMbuild-conventions/build
folder. You should be able to tell the gradle build action to add it to the list of cache directoriesMarcin Robaczyński
02/13/2024, 4:55 PMMarcin Robaczyński
02/13/2024, 4:55 PMCalculating task graph as configuration cache cannot be reused because an input to plugin 'org.gradle.groovy-gradle-plugin' has changed.
Jason Pearson
02/13/2024, 4:58 PMJason Pearson
02/13/2024, 4:59 PMMarcin Robaczyński
02/13/2024, 5:01 PMChanging path toeither successfully reuses the configuration or fails with:build-conventions/build/
Jason Pearson
02/13/2024, 5:24 PMJason Pearson
02/13/2024, 5:24 PMVampire
02/13/2024, 6:42 PMJason Pearson
02/13/2024, 7:08 PMVampire
02/13/2024, 11:29 PMJason Pearson
02/14/2024, 3:18 PMMarcin Robaczyński
02/14/2024, 3:18 PMJason Pearson
02/14/2024, 3:19 PMVampire
02/14/2024, 3:22 PMIt seems like build-logic is compiled first and only then the configuration phase runsWould really wonder. Probably more what Jason said, that the files must be there for CC to be reusable. If CC is reused, build logic building is also skipped like practically everything else before execution phase, also including settings script execution, init script execution, ....
Jason Pearson
02/14/2024, 3:22 PMJason Pearson
02/14/2024, 3:29 PM// Hack for CC with keystore
~/.gradle/caches/<gradle.version>/cc-keystore
// Gradle Kotlin DSL
~/.gradle/caches/<gradle.version>/kotlin-dsl
~/.gradle/caches/<gradle.version>/generated-gradle-jars
// Seems required for Configuration Cache dependency inputs
~/.gradle/caches/modules-2
~/.gradle/caches/jars-9
// Maybe not needed?
~/.gradle/caches/transforms-3
// Project .gradle dependency-accessors and other undefined things
<project-dir>/.gradle/<gradle.version>
// The configuration cache entry
<project-dir>/.gradle/configuration-cache
// convention plugins
// safe to delete the `kotlin` dir in build, not needed for CC
<project-dir>/<build-convention-dir>/build
Jason Pearson
02/14/2024, 3:30 PM.gradle/<gradle-version>
dir and see if that helps, I’m now remembering something about the dependency-accessors folder within that which ended up being necessary. Figured this out with trial and error deleting folders and seeing if CC reuse happened