File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,19 @@ task clean {
6363}
6464
6565allprojects {
66+ task generateLockfiles {
67+ doFirst {
68+ assert gradle. startParameter. writeDependencyLocks // meaning you must run with --write-locks parameter
69+ }
70+ doLast {
71+ configurations. findAll {
72+ it. canBeResolved
73+ }. each {
74+ it. resolve()
75+ }
76+ }
77+ }
78+
6679 tasks. withType(JavaCompile ) {
6780 doFirst {
6881 logger. info(" sourceCompatibility = $sourceCompatibility " )
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ apply plugin: 'org.owasp.dependencycheck'
3333sourceCompatibility = 1.7
3434targetCompatibility = 1.7
3535
36+ configurations {
37+ compileClasspath. resolutionStrategy. activateDependencyLocking()
38+ runtimeClasspath. resolutionStrategy. activateDependencyLocking()
39+ }
40+
3641checkstyle {
3742 toolVersion = ' 8.22'
3843 configFile = file(" ${ rootProject.projectDir} /config/checkstyle/checkstyle.xml" )
You can’t perform that action at this time.
0 commit comments