svn commit: r1770539 - /ofbiz/trunk/build.gradle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1770539 - /ofbiz/trunk/build.gradle

jleroux@apache.org
Author: jleroux
Date: Sun Nov 20 09:05:31 2016
New Revision: 1770539

URL: http://svn.apache.org/viewvc?rev=1770539&view=rev
Log:
Implemented: Build framework (Plugin mechanism) missing gradle compileOnly
dependency feature
(OFBIZ-9118)

The current build framework only supports compile and runtime dependencies but
doesn't allow you to declare compile only dependencies which is important for
non-transitive dependencies used only at compilation time.

Thanks: Valery Chenzo

Modified:
    ofbiz/trunk/build.gradle

Modified: ofbiz/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1770539&r1=1770538&r2=1770539&view=diff
==============================================================================
--- ofbiz/trunk/build.gradle (original)
+++ ofbiz/trunk/build.gradle Sun Nov 20 09:05:31 2016
@@ -67,6 +67,8 @@ subprojects {
         pluginLibsCompile
         // runtime plugin libraries
         pluginLibsRuntime
+        //compile-only libraries
+        pluginLibsCompileOnly
     }
 }
 
@@ -167,6 +169,7 @@ dependencies {
     subprojects.each { subProject ->
         compile project(path: subProject.path, configuration: 'pluginLibsCompile')
         runtime project(path: subProject.path, configuration: 'pluginLibsRuntime')
+        compileOnly project(path: subProject.path, configuration: 'pluginLibsCompileOnly')
     }
 
     // libs needed for junitreport