Author: jleroux
Date: Tue Mar 5 08:35:52 2019
New Revision: 1854818
URL:
http://svn.apache.org/viewvc?rev=1854818&view=revLog:
Improved: Use the Gradle Plugin DSL
(OFBIZ-10700)
Since Gradle 2.1 it is recommended to use the plugins {} block for
binary plugins instead of the “traditional” apply() method. See here for
more details.
jleroux: but it has side effects in our build.gradle file and that fixes it
Thanks: Mathieu and Jinghai
Modified:
ofbiz/ofbiz-framework/trunk/build.gradle
Modified: ofbiz/ofbiz-framework/trunk/build.gradle
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/build.gradle?rev=1854818&r1=1854817&r2=1854818&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/build.gradle (original)
+++ ofbiz/ofbiz-framework/trunk/build.gradle Tue Mar 5 08:35:52 2019
@@ -30,6 +30,7 @@ plugins {
id 'maven-publish'
id 'at.bxm.svntools' version '2.2.1'
id 'org.asciidoctor.convert' version '1.5.8.1' // Rather than using 1.5.9.2 see OFBIZ-10693
+ id 'org.owasp.dependencycheck' version '3.0.2' apply false
}
/* OWASP plugin
@@ -41,9 +42,7 @@ plugins {
* Syntax: gradlew -PenableOwasp dependencyCheckAnalyze
*/
if (project.hasProperty('enableOwasp')) {
- plugins {
- id 'org.owasp.dependencycheck' version '3.0.2'
- }
+ apply plugin: 'org.owasp.dependencycheck'
}
apply from: 'common.gradle'