Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Config Cache - TreeTask & ListTask #71

Merged
merged 7 commits into from
Jan 23, 2023
Merged

FIX: Config Cache - TreeTask & ListTask #71

merged 7 commits into from
Jan 23, 2023

Conversation

handstandsam
Copy link
Collaborator

@handstandsam handstandsam commented Jan 23, 2023

Found more issues with config cache, so worked on that.

List Task:

  • Changed from an Input to an Output. These directories are where we write our files, and then we perform the diff in the task. These are NOT inputs, and we do not need to track them. @get:Input abstract val projectDirectory: DirectoryProperty -> @get:OutputDirectory abstract val projectDirectoryDependenciesDir: DirectoryProperty

Tree Task:

  • Project was being held in a var which breaks config cache. That has been fixed.

Targets #67, #68, #69

Progress

Using Directories as output correctly
…nly important previously for the Tree task when we delegated to Gradle to create the file. We have the value in memory we can use to do comparisions
@@ -14,7 +14,6 @@ internal class DependencyGuardListReportWriter(
* @return Whether changes were detected
*/
internal fun writeReport(
buildDirOutputFile: File,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a legacy artifact from the original Tree Diff practices where we would delegate to the Gradle Dependencies task, and then have the output file be the input for this task.

This is no longer required. We have the contents of the newly computed dependency list in memory, and we can compare with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant