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

arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 46cde1414 FINERACT-1724 - Code quality checks are optimized.
46cde1414 is described below

commit 46cde14149b481c095bbbe8c4ad09cd9ce808da5
Author: Peter Bagrij <[email protected]>
AuthorDate: Mon Jul 3 17:32:00 2023 +0200

    FINERACT-1724 - Code quality checks are optimized.
    
    - the presense of license check is performed under the check gradle task 
which is implicitly executed when build task is called.
    - errorProne plugin is enabled when build or check task is called.
    
    As a result of the above execution time for unit tests from IDE is faster 
while the quality checks are still enforced.
---
 build.gradle | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 2dbda313b..ecaaa6a8d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -433,6 +433,7 @@ configure(project.fineractJavaProjects) {
 
     tasks.withType(JavaCompile) {
         options.errorprone {
+            enabled = 
project.gradle.startParameter.taskNames.contains('build') || 
project.gradle.startParameter.taskNames.contains('check')
             disableWarningsInGeneratedCode = true
             excludedPaths = ".*/build/.*"
             disable(
@@ -531,7 +532,7 @@ configure(project.fineractJavaProjects) {
         }
     }
 
-    compileJava {
+    check {
         dependsOn(rat, licenseMain, licenseTest)
     }
 

Reply via email to