This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new 478b6ea07 [#5647] improvement(build): update the jar name to add 
gravitino prefix  (#5654)
478b6ea07 is described below

commit 478b6ea070ad92833a6839ad3e73e9df943141ad
Author: JUN <[email protected]>
AuthorDate: Thu Nov 28 10:45:16 2024 +0800

    [#5647] improvement(build): update the jar name to add gravitino prefix  
(#5654)
    
    ### What changes were proposed in this pull request?
    
    As title
    
    ### Why are the changes needed?
    
    Fix: #5647
    
    ### Does this PR introduce _any_ user-facing change?
    
     Makes users easy to know it is from Gravitino
    
    ### How was this patch tested?
    Execute Gradle command `./gradlew publishToMavenLocal -x test` then
    check in Maven local path.
---
 build.gradle.kts | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index 19597bba8..3685fc18b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -31,6 +31,8 @@ import org.gradle.kotlin.dsl.support.serviceOf
 import java.io.IOException
 import java.util.Locale
 
+Locale.setDefault(Locale.US)
+
 plugins {
   `maven-publish`
   id("java")
@@ -413,6 +415,8 @@ subprojects {
           artifact(javadocJar)
         }
 
+        artifactId = "${rootProject.name.lowercase()}-${project.name}"
+
         pom {
           name.set("Gravitino")
           description.set("Gravitino is a high-performance, geo-distributed 
and federated metadata lake.")
@@ -488,7 +492,7 @@ subprojects {
   version = "$version"
 
   tasks.withType<Jar> {
-    
archiveBaseName.set("${rootProject.name.lowercase(Locale.getDefault())}-${project.name}")
+    archiveBaseName.set("${rootProject.name.lowercase()}-${project.name}")
     if (project.name == "server") {
       from(sourceSets.main.get().resources)
       setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
@@ -964,7 +968,7 @@ fun checkOrbStackStatus() {
     if (exitCode == 0) {
       val currentContext = process.inputStream.bufferedReader().readText()
       println("Current docker context is: $currentContext")
-      project.extra["isOrbStack"] = 
currentContext.lowercase(Locale.getDefault()).contains("orbstack")
+      project.extra["isOrbStack"] = 
currentContext.lowercase().contains("orbstack")
     } else {
       println("checkOrbStackStatus Command execution failed with exit code 
$exitCode")
     }

Reply via email to