You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2025/03/26 15:10:47 UTC
(spark-kubernetes-operator) branch main updated: [SPARK-51577] Make gradle build to automatically append SNAPSHOT suffix to version for non-release builds
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 25aa6cf [SPARK-51577] Make gradle build to automatically append SNAPSHOT suffix to version for non-release builds
25aa6cf is described below
commit 25aa6cf3e5a200f795ef23068694b9c7cf2b62d7
Author: Zhou JIANG <ji...@umich.edu>
AuthorDate: Wed Mar 26 08:10:38 2025 -0700
[SPARK-51577] Make gradle build to automatically append SNAPSHOT suffix to version for non-release builds
### What changes were proposed in this pull request?
This PR makes gradle build automatically append `-SNAPSHOT` suffix to `version` for non-release builds
### Why are the changes needed?
This would help to automatically set up builds based on gradle release properties
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Pass the CIs
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #170 from jiangzho/main.
Authored-by: Zhou JIANG <ji...@umich.edu>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
build.gradle | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index fe84db4..8ba7343 100644
--- a/build.gradle
+++ b/build.gradle
@@ -34,7 +34,10 @@ assert JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17): "Java 17
allprojects {
group = "org.apache.spark.k8s.operator"
- version = "0.1.0-SNAPSHOT"
+ version = "0.1.0"
+ if (!project.hasProperty('release')) {
+ version += "-SNAPSHOT"
+ }
}
tasks.register('buildDockerImage', Exec) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org