Skip to content

Commit fe057c6

Browse files
Jay Bryantgregturn
authored andcommitted
Switch to spring-asciidoctor-backends.
Pick up the new look and feel.
1 parent 9a3da69 commit fe057c6

File tree

1 file changed

+16
-52
lines changed

1 file changed

+16
-52
lines changed

pom.xml

Lines changed: 16 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
<xmlunit.version>2.7.0</xmlunit.version>
123123
<xws-security.version>3.0</xws-security.version>
124124
<xom.version>1.2.5</xom.version>
125-
<docs.resources.version>0.2.5</docs.resources.version>
125+
<spring-asciidoctor-backends.version>0.0.3</spring-asciidoctor-backends.version>
126126
</properties>
127127

128128
<dependencyManagement>
@@ -206,13 +206,6 @@
206206
<version>${woodstox.version}</version>
207207
<scope>test</scope>
208208
</dependency>
209-
<dependency>
210-
<groupId>io.spring.docresources</groupId>
211-
<artifactId>spring-doc-resources</artifactId>
212-
<version>${docs.resources.version}</version>
213-
<type>zip</type>
214-
<optional>true</optional>
215-
</dependency>
216209
</dependencies>
217210

218211
<build>
@@ -501,29 +494,7 @@
501494
<id>docs</id>
502495

503496
<build>
504-
505497
<plugins>
506-
<plugin>
507-
<groupId>org.apache.maven.plugins</groupId>
508-
<artifactId>maven-dependency-plugin</artifactId>
509-
<executions>
510-
<execution>
511-
<id>unpack-doc-resources</id>
512-
<goals>
513-
<goal>unpack-dependencies</goal>
514-
</goals>
515-
<phase>generate-resources</phase>
516-
<inherited>false</inherited>
517-
<configuration>
518-
<includeGroupIds>io.spring.docresources</includeGroupIds>
519-
<includeArtifactIds>spring-doc-resources</includeArtifactIds>
520-
<includeTypes>zip</includeTypes>
521-
<excludeTransitive>true</excludeTransitive>
522-
<outputDirectory>${project.build.directory}/refdocs/</outputDirectory>
523-
</configuration>
524-
</execution>
525-
</executions>
526-
</plugin>
527498
<plugin>
528499
<groupId>org.apache.maven.plugins</groupId>
529500
<artifactId>maven-resources-plugin</artifactId>
@@ -550,17 +521,17 @@
550521
<plugin>
551522
<groupId>org.asciidoctor</groupId>
552523
<artifactId>asciidoctor-maven-plugin</artifactId>
553-
<version>2.1.0</version>
524+
<version>2.2.2</version>
554525
<dependencies>
555526
<dependency>
556527
<groupId>org.asciidoctor</groupId>
557528
<artifactId>asciidoctorj-pdf</artifactId>
558-
<version>1.5.4</version>
529+
<version>2.3.0</version>
559530
</dependency>
560531
<dependency>
561-
<groupId>org.asciidoctor</groupId>
562-
<artifactId>asciidoctorj-epub3</artifactId>
563-
<version>1.5.1</version>
532+
<groupId>io.spring.asciidoctor.backends</groupId>
533+
<artifactId>spring-asciidoctor-backends</artifactId>
534+
<version>${spring-asciidoctor-backends.version}</version>
564535
</dependency>
565536
</dependencies>
566537
<executions>
@@ -572,14 +543,14 @@
572543
<goal>process-asciidoc</goal>
573544
</goals>
574545
<configuration>
575-
<backend>html5</backend>
546+
<backend>spring-html</backend>
576547
<outputDirectory>${project.build.directory}/site/reference/html</outputDirectory>
577548
<sourceHighlighter>highlight.js</sourceHighlighter>
578549
<attributes>
579550
// these attributes are required to use the doc resources
580551
<docinfo>shared</docinfo>
581552
<stylesdir>css/</stylesdir>
582-
<stylesheet>spring.css</stylesheet>
553+
<stylesheet>site.css</stylesheet>
583554
<linkcss>true</linkcss>
584555
<icons>font</icons>
585556
<highlightjsdir>js/highlight</highlightjsdir>
@@ -602,20 +573,6 @@
602573
<sourceHighlighter>coderay</sourceHighlighter>
603574
</configuration>
604575
</execution>
605-
606-
<execution>
607-
<id>epub</id>
608-
<phase>generate-resources</phase>
609-
<inherited>false</inherited>
610-
<goals>
611-
<goal>process-asciidoc</goal>
612-
</goals>
613-
<configuration>
614-
<outputDirectory>${project.build.directory}/site/reference/epub</outputDirectory>
615-
<backend>epub3</backend>
616-
<sourceHighlighter>coderay</sourceHighlighter>
617-
</configuration>
618-
</execution>
619576
</executions>
620577

621578
<configuration>
@@ -632,7 +589,6 @@
632589
<baseDir>${project.basedir}</baseDir>
633590
</attributes>
634591
</configuration>
635-
636592
</plugin>
637593
<plugin>
638594
<groupId>org.apache.maven.plugins</groupId>
@@ -839,6 +795,14 @@
839795
</profiles>
840796

841797
<repositories>
798+
<repository>
799+
<id>spring-release</id>
800+
<name>Spring Releases</name>
801+
<url>https://repo.spring.io/release</url>
802+
<snapshots>
803+
<enabled>false</enabled>
804+
</snapshots>
805+
</repository>
842806
<repository>
843807
<id>spring-libs-snapshot</id>
844808
<url>https://repo.spring.io/libs-snapshot</url>

0 commit comments

Comments
 (0)