File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ apply plugin: 'io.spring.convention.root'
17
17
group = ' org.springframework.security.experimental'
18
18
description = ' Spring Authorization Server'
19
19
20
+ ext. snapshotBuild = version. contains(" SNAPSHOT" )
21
+
20
22
repositories {
21
23
mavenCentral()
22
24
}
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