You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by kr...@apache.org on 2022/12/13 16:03:12 UTC

[solr] branch branch_9x updated: Run spotless after javac (#12012) (#12015)

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

krisden pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 5c090a2062a Run spotless after javac (#12012) (#12015)
5c090a2062a is described below

commit 5c090a2062a626112d33a583016c4e5801ad243b
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Tue Dec 13 08:42:04 2022 +0100

    Run spotless after javac (#12012) (#12015)
---
 gradle/validation/spotless.gradle | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gradle/validation/spotless.gradle b/gradle/validation/spotless.gradle
index 90bd625dce1..3239ac4b1a3 100644
--- a/gradle/validation/spotless.gradle
+++ b/gradle/validation/spotless.gradle
@@ -80,6 +80,11 @@ configure(project(":solr").subprojects) { prj ->
         project.mkdir("${buildDir}/spotless/spotlessJava")
       }
     }
+
+    // Schedule the core formatting task to run after Java compilation (GH-12012)
+    spotlessJava {
+      mustRunAfter tasks.withType(JavaCompile)
+    }
   }
 
   // Emit a custom message about how to fix formatting errors.