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

Allow to override generated reports base directory. #346

Merged
merged 3 commits into from Jul 17, 2020

Conversation

Tapchicoma
Copy link
Collaborator

Closes #321

@Tapchicoma Tapchicoma force-pushed the expose_output_file branch 2 times, most recently from 9cc68c3 to df8f809 Compare March 7, 2020 10:06
Comment on lines 47 to 49
* [DirectoryProperty] takes into account also content of directory, when snapshotting input.
* As reports generated are always generated in this directory, this prevents task proper caching,
* so this input exists as a workaround for the described problem.
Copy link
Owner

Choose a reason for hiding this comment

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

Can you elaborate? I'm missing something.

Copy link
Owner

Choose a reason for hiding this comment

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

Task caching also snapshots the outputs. If the output has changed, the task is marked as out of date. Why do we need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right, was confused by https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/InputDirectory.html. Actually reporterOutputDir could be just annotated with @get:Input.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Force updated and removed this property.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

or not... running tests in IDEA was green, though from command line they fail 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should be fine now

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
README.md Outdated Show resolved Hide resolved
Copy link
Owner

@JLLeitschuh JLLeitschuh left a comment

Choose a reason for hiding this comment

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

LGTM!

Co-authored-by: Jonathan Leitschuh <jonathan.leitschuh@gmail.com>
@Tapchicoma Tapchicoma merged commit 059f588 into JLLeitschuh:master Jul 17, 2020
@Tapchicoma Tapchicoma deleted the expose_output_file branch July 17, 2020 13:21
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.

Exposing output file for reporters in plugin ktlint properties
2 participants