Skip to content
Permalink
Browse files

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

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1854818 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Mar 5, 2019
1 parent 7b9ea30 commit 92c718eef7541c8e8258a677a81b825de10cfb9b
Showing with 2 additions and 3 deletions.
  1. +2 −3 build.gradle
@@ -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'

0 comments on commit 92c718e

Please sign in to comment.
You can’t perform that action at this time.