-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Improve Gradle build cacheability #5188
Improve Gradle build cacheability #5188
Conversation
build.gradle
Outdated
|
||
@Override | ||
Iterable<String> asArguments() { | ||
def args = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def args = [] | |
return [srcDirs.collect { it.absolutePath }, "-d", outputDir.absolutePath, "-f", "generateDelombokComment:skip"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all good with a join()
👍
build.gradle
Outdated
Iterable<String> asArguments() { | ||
def args = [] | ||
args.addAll(srcDirs.collect { it.absolutePath }) | ||
args.addAll(["-d", outputDir.absolutePath, "-f", "generateDelombokComment:skip"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we also be declaring the output directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output is already declared in the task configuration:
testcontainers-java/build.gradle
Line 48 in 02782d9
outputs.dir(outputDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually that's a good point @runningcode, I'll move the task inputs/outputs
declaration inside the CommandLineArgumentProvider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
d2572b0
to
901e898
Compare
901e898
to
e7000d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks a lot for the contribution 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much! This will help a lot 💯
No description provided.