File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ dependencies {
36
36
37
37
task springVersion (type : versions.VersionsResourceTasks ) {
38
38
versionsFile = file(" ${ buildDir} /versions/spring-security.versions" )
39
- versions = provider { [" org.springframework:spring-core" :" $springVersion " ] }
39
+ versions = provider { [" org.springframework:spring-core" :" ${ springVersion() } " ] }
40
40
}
41
41
42
42
tasks. processResources {
@@ -52,6 +52,12 @@ tasks.sourcesJar.from {includeProject.sourceSets.main.java}
52
52
configure(project. tasks. withType(Test )) {
53
53
doFirst {
54
54
systemProperties[' springSecurityVersion' ] = version
55
- systemProperties[' springVersion' ] = springVersion
55
+ systemProperties[' springVersion' ] = springVersion()
56
56
}
57
57
}
58
+
59
+ String springVersion () {
60
+ println project. configurations. compile. resolvedConfiguration. resolvedArtifacts. collect { it. name }
61
+ return project. configurations. compile. resolvedConfiguration. resolvedArtifacts
62
+ .find { it. name == ' spring-core' }. moduleVersion. id. version
63
+ }
You can’t perform that action at this time.
0 commit comments