File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ apply plugin: 'io.spring.convention.root'
1717group = ' org.springframework.security.experimental'
1818description = ' Spring Authorization Server'
1919
20+ ext. snapshotBuild = version. contains(" SNAPSHOT" )
21+
2022repositories {
2123 mavenCentral()
2224}
Original file line number Diff line number Diff line change 1+ apply plugin : ' io.spring.convention.docs'
2+ apply plugin : ' io.spring.convention.springdependencymangement'
3+ apply plugin : ' io.spring.convention.dependency-set'
4+ apply plugin : ' io.spring.convention.repository'
5+ apply plugin : ' java'
6+
7+ asciidoctor {
8+ attributes([stylesheet : ' css/style.css' ])
9+ resources {
10+ from(sourceDir) {
11+ include " css/**"
12+ }
13+ }
14+ }
15+
16+ asciidoctorj {
17+ def ghTag = snapshotBuild ? ' master' : project. version
18+ def ghUrl = " https://github.com/spring-projects-experimental/spring-authorization-server/tree/$ghTag "
19+ attributes ' spring-authorization-server-version' : project. version,
20+ ' spring-boot-version' : springBootVersion,
21+ revnumber : project. version,
22+ ' gh-url' : ghUrl,
23+ ' gh-samples-url' : " $ghUrl /samples"
24+ attributeProvider resolvedVersions(project. configurations. testCompile)
25+ }
26+
27+ def resolvedVersions (Configuration configuration ) {
28+ return {
29+ configuration. resolvedConfiguration
30+ .resolvedArtifacts
31+ .collectEntries { [(it. name + " -version" ): it. moduleVersion. id. version] }
32+ }
33+ }
You can’t perform that action at this time.
0 commit comments