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
Gradle: eliminate some more doFirst
/doLast
script references
#6516
Conversation
fcf423a
to
aac7adc
Compare
aac7adc
to
c22e35a
Compare
@@ -15,6 +15,10 @@ | |||
*/ | |||
grammar NessieSqlExtensions; | |||
|
|||
@header { | |||
// PACKAGE_PLACEHOLDER |
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 makes the ReplaceInFiles
idempotent
@@ -78,9 +78,9 @@ dependencies { | |||
|
|||
tasks.withType(Test::class.java).configureEach { | |||
systemProperty("aws.region", "us-east-1") | |||
val tmpdir = project.buildDir.resolve("tmpdir") |
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.
Moves the reference to project
out of task execution, which is mandatory to enable Gradle's configuration cache.
@@ -81,12 +81,9 @@ class NessieTestingPlugin : Plugin<Project> { | |||
} | |||
if (plugins.hasPlugin("io.quarkus")) { | |||
// This directory somehow disappears... Maybe some weird Quarkus code. | |||
tasks.named("quarkusGenerateCodeTests") { |
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.
Such changes elimniate the use of script references, which do not work with Gradle's configuration cache (not serializable)
No description provided.