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

alexey pushed a commit to branch branch-1.16.x
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/branch-1.16.x by this push:
     new 42cc1e68e [java] Fix build failures
42cc1e68e is described below

commit 42cc1e68eb5bb13e51ba2fde6a1d6483221706f6
Author: Abhishek Chennaka <[email protected]>
AuthorDate: Mon Aug 19 21:54:40 2024 -0700

    [java] Fix build failures
    
    Recently it was pointed out that older versions of Kudu are failing
    when building java due to dependency not present:
    
    > Could not resolve all files for configuration 
':buildSrc:compileClasspath'.
       > Could not find gradle-scalafmt-1.14.0.jar 
(cz.alenkacz:gradle-scalafmt:1.14.0).
         Searched in the following locations:
             
https://jcenter.bintray.com/cz/alenkacz/gradle-scalafmt/1.14.0/gradle-scalafmt-1.14.0.jar
    
    This fix updates the dependency's groupId to be fetched as in Maven
    Central.
    
    The root cause for the issue is jcenter's sun-setting:
    https://jfrog.com/blog/jcenter-sunset/
    https://blog.gradle.org/jcenter-shutdown
    
    Change-Id: Ice7309262c9d9f7c10772dee01b5ebf3843efcef
    Reviewed-on: http://gerrit.cloudera.org:8080/21692
    Reviewed-by: Alexey Serbin <[email protected]>
    Tested-by: Alexey Serbin <[email protected]>
---
 java/buildSrc/build.gradle | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/java/buildSrc/build.gradle b/java/buildSrc/build.gradle
index 28f03f1ec..4cbf31f16 100644
--- a/java/buildSrc/build.gradle
+++ b/java/buildSrc/build.gradle
@@ -19,7 +19,6 @@
 
 repositories {
   mavenCentral()
-  jcenter()
   maven { url "https://clojars.org/repo"; } // Only used for the clojure plugin 
below.
   maven { url "https://plugins.gradle.org/m2/"; }
 }
@@ -38,7 +37,7 @@ dependencies {
   compile "net.ltgt.gradle:gradle-errorprone-plugin:2.0.2"
   compile "ru.vyarus:gradle-animalsniffer-plugin:1.5.4"
   compile "com.google.code.gson:gson:2.8.9"
-  compile "cz.alenkacz:gradle-scalafmt:1.14.0"
+  compile "gradle.plugin.cz.alenkacz:gradle-scalafmt:1.14.0"
   compile "com.google.guava:guava:31.0.1-jre"
   compile "me.champeau.gradle:jmh-gradle-plugin:0.5.3"
 }

Reply via email to