File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
spring-security-kerberos-docs Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,15 @@ plugins {
22 id ' io.spring.convention.docs'
33 id ' org.antora' version ' 1.0.0'
44 id ' io.spring.antora.generate-antora-yml' version ' 0.0.1'
5+ id ' java'
56}
67
78description = ' Spring Security Kerberos Documentation'
89
910dependencies {
1011 management platform(project(" :spring-security-kerberos-management" ))
12+ testImplementation ' org.springframework:spring-core'
13+ testImplementation ' org.springframework.security:spring-security-core'
1114}
1215
1316antora {
@@ -18,6 +21,24 @@ antora {
1821 ]
1922}
2023
24+
25+
26+ tasks. named(" generateAntoraYml" ) {
27+ asciidocAttributes = project. provider( { generateAttributes() } )
28+ }
29+
30+ def generateAttributes () {
31+ return [
32+ " version" : project. version
33+ ] + resolvedVersions(project. configurations. testRuntimeClasspath)
34+ }
35+
36+ def resolvedVersions (Configuration configuration ) {
37+ return configuration. resolvedConfiguration
38+ .resolvedArtifacts
39+ .collectEntries { [(it. name. replace(' -core' ,' ' ) + ' -version' ): it. moduleVersion. id. version] }
40+ }
41+
2142docsZip {
2243 from (api) {
2344 into " api"
You can’t perform that action at this time.
0 commit comments