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

Gradle: eliminate some more doFirst/doLast script references #6516

Merged
merged 1 commit into from Apr 13, 2023

Conversation

snazy
Copy link
Member

@snazy snazy commented Apr 6, 2023

No description provided.

@snazy snazy added pr-integrations NesQuEIT (Iceberg, Spark, Flink, Presto) pr-native run native test labels Apr 6, 2023
@snazy snazy force-pushed the gradle-script-refs branch 6 times, most recently from fcf423a to aac7adc Compare April 7, 2023 16:04
@snazy snazy marked this pull request as draft April 7, 2023 16:04
@@ -15,6 +15,10 @@
*/
grammar NessieSqlExtensions;

@header {
// PACKAGE_PLACEHOLDER
Copy link
Member Author

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")
Copy link
Member Author

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") {
Copy link
Member Author

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)

@snazy snazy marked this pull request as ready for review April 12, 2023 08:41
@snazy snazy merged commit b194075 into projectnessie:main Apr 13, 2023
25 checks passed
@snazy snazy deleted the gradle-script-refs branch April 13, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-integrations NesQuEIT (Iceberg, Spark, Flink, Presto) pr-native run native test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants