mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-19 15:54:52 +01:00
update usage for multiple sub project
Former-commit-id: 16aac082aa5f52f01db8f6935252306bd176860b
This commit is contained in:
@@ -70,6 +70,38 @@ buildscript {
|
|||||||
apply plugin: "dependency.check"
|
apply plugin: "dependency.check"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**If your project includes multiple sub-project, configure build script this way:**
|
||||||
|
|
||||||
|
```
|
||||||
|
allprojects {
|
||||||
|
//other plugins you may use
|
||||||
|
//apply plugin: "java"
|
||||||
|
|
||||||
|
apply plugin: "dependency-check"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```
|
||||||
|
subprojects {
|
||||||
|
//other plugins you may use
|
||||||
|
//apply plugin: "java"
|
||||||
|
|
||||||
|
apply plugin: "dependency-check"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
In this way, the dependency check will be executed for all projects (including root project) or just sub projects.
|
||||||
|
|
||||||
#### Solution 3,Maven Central
|
#### Solution 3,Maven Central
|
||||||
|
|
||||||
working in progress
|
working in progress
|
||||||
@@ -83,3 +115,5 @@ gradle dependencyCheck
|
|||||||
```
|
```
|
||||||
|
|
||||||
The reports will be generated automatically under `./reports` folder.
|
The reports will be generated automatically under `./reports` folder.
|
||||||
|
|
||||||
|
If your project includes multiple sub-projects, the report will be generated for each sub-project in different sub-directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user