This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 64b2c5a [SPARK-48968] Avoid unnecessary task configuration in
`spark-operator-api`
64b2c5a is described below
commit 64b2c5a9239084ad050132b1cffa3448a9164372
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Jul 22 15:13:21 2024 -0700
[SPARK-48968] Avoid unnecessary task configuration in `spark-operator-api`
### What changes were proposed in this pull request?
This PR aims to avoid unnecessary task configuration in
`spark-operator-api`.
### Why are the changes needed?
To follow the Gradle guideline:
-
https://docs.gradle.org/current/userguide/task_configuration_avoidance.html
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual review.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #20 from dongjoon-hyun/SPARK-48968.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
spark-operator-api/build.gradle | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/spark-operator-api/build.gradle b/spark-operator-api/build.gradle
index 696415f..25c7069 100644
--- a/spark-operator-api/build.gradle
+++ b/spark-operator-api/build.gradle
@@ -27,7 +27,8 @@ test {
// Adds additional printer columns to generated yaml
// This requires yq
-task finalizeGeneratedCRD(type: Exec, dependsOn: jar) {
+tasks.register('finalizeGeneratedCRD', Exec) {
+ dependsOn jar
println "Updating PrinterColumns for generated CRD"
commandLine 'sh', './src/main/resources/printer-columns.sh'
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]