You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2019/11/02 14:00:50 UTC

[groovy] 03/03: Prefer jars over class folders on the compile classpath

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

sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit f6494b367f9d86985e52a9a71eb5046210bf4b85
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Nov 2 21:48:02 2019 +0800

    Prefer jars over class folders on the compile classpath
    
    On Windows, very large multi-projects can suffer from a significant performance decrease in Java compilation when switching from the java to the java-library plugin. This is caused by the large number of class files on the classpath.
    
    You can now tell the java-library plugin to prefer jars over class folders on the compile classpath by setting the org.gradle.java.compile-classpath-packaging system property to true.
    
    (cherry picked from commit 20b83b8c22bbb6b929dfa37706de583489ecf4de)
---
 gradle.properties | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gradle.properties b/gradle.properties
index 32a08bd..b210641 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -40,3 +40,6 @@ org.gradle.caching=true
 
 # enable --parallel
 org.gradle.parallel=true
+
+# prefer jars over class folders on the compile classpath
+org.gradle.java.compile-classpath-packaging=true