Skip to content

Commit

Permalink
Improved: Use the Gradle Plugin DSL
Browse files Browse the repository at this point in the history
(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 92c718e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 92c718e

Please sign in to comment.