Skip to content

Commit

Permalink
fix: correct 9.x data directory
Browse files Browse the repository at this point in the history
resolves #377
  • Loading branch information
jeremylong committed Jan 21, 2024
1 parent adb51a5 commit 7608e8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import org.gradle.api.Project
class DataExtension {

DataExtension(Project project) {
directory = "${project.gradle.gradleUserHomeDir}/dependency-check-data/7.0"
directory = "${project.gradle.gradleUserHomeDir}/dependency-check-data/9.0"
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/task.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# the path to the data directory
### Do not define the path here - it is defined in DataExtension
### data.directory=[JAR]/../../dependency-check-data/5.0
### data.directory=[JAR]/../../dependency-check-data/9.0

# disable the central analyzer by default
analyzer.central.enabled=false
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DependencyCheckGradlePluginSpec extends Specification {
DependencyCheckExtension extension = project.extensions.findByName('dependencyCheck') as DependencyCheckExtension

expect:
extension.data.directory == "${project.gradle.gradleUserHomeDir}/dependency-check-data/7.0"
extension.data.directory == "${project.gradle.gradleUserHomeDir}/dependency-check-data/9.0"
}

def "dependencyCheckAnalyze task exists"() {
Expand Down

0 comments on commit 7608e8b

Please sign in to comment.