Skip to content

Commit 75e0473

Browse files
ante003pivovarit
authored andcommitted
- refactored asciidoctor code (eugenp#2164)
- refreshed README.md
1 parent d0c7340 commit 75e0473

7 files changed

Lines changed: 60 additions & 37 deletions

File tree

‎asciidoctor/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Relevant articles
2+
3+
- [Introduction to Asciidoctor](http://www.baeldung.com/introduction-to-asciidoctor)

‎asciidoctor/log4j.properties‎

Whitespace-only changes.

‎asciidoctor/pom.xml‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<parent>
5+
<artifactId>parent-modules</artifactId>
6+
<groupId>com.baeldung</groupId>
7+
<version>1.0.0-SNAPSHOT</version>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
11+
<artifactId>asciidoctor</artifactId>
12+
<name>asciidoctor</name>
13+
<build>
14+
<plugins>
15+
<plugin>
16+
<groupId>org.asciidoctor</groupId>
17+
<artifactId>asciidoctor-maven-plugin</artifactId>
18+
<version>1.5.5</version>
19+
<dependencies>
20+
<dependency>
21+
<groupId>org.asciidoctor</groupId>
22+
<artifactId>asciidoctorj-pdf</artifactId>
23+
<version>1.5.0-alpha.15</version>
24+
</dependency>
25+
</dependencies>
26+
<executions>
27+
<execution>
28+
<id>output-pdf</id>
29+
<phase>generate-resources</phase>
30+
<goals>
31+
<goal>process-asciidoc</goal>
32+
</goals>
33+
</execution>
34+
</executions>
35+
<configuration>
36+
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
37+
<outputDirectory>target/docs/asciidoc</outputDirectory>
38+
<backend>pdf</backend>
39+
</configuration>
40+
</plugin>
41+
</plugins>
42+
</build>
43+
44+
<dependencies>
45+
<dependency>
46+
<groupId>org.asciidoctor</groupId>
47+
<artifactId>asciidoctorj</artifactId>
48+
<version>1.5.4</version>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.asciidoctor</groupId>
52+
<artifactId>asciidoctorj-pdf</artifactId>
53+
<version>1.5.0-alpha.11</version>
54+
</dependency>
55+
</dependencies>
56+
</project>

libraries/src/main/java/com/baeldung/asciidoctor/AsciidoctorDemo.java renamed to asciidoctor/src/main/java/com/baeldung/asciidoctor/AsciidoctorDemo.java

File renamed without changes.

libraries/src/test/java/com/baeldung/asciidoctor/AsciidoctorDemoTest.java renamed to asciidoctor/src/test/java/com/baeldung/asciidoctor/AsciidoctorDemoTest.java

File renamed without changes.

‎libraries/pom.xml‎

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -70,32 +70,6 @@
7070
</execution>
7171
</executions>
7272
</plugin>
73-
<plugin>
74-
<groupId>org.asciidoctor</groupId>
75-
<artifactId>asciidoctor-maven-plugin</artifactId>
76-
<version>1.5.5</version>
77-
<dependencies>
78-
<dependency>
79-
<groupId>org.asciidoctor</groupId>
80-
<artifactId>asciidoctorj-pdf</artifactId>
81-
<version>1.5.0-alpha.15</version>
82-
</dependency>
83-
</dependencies>
84-
<executions>
85-
<execution>
86-
<id>output-pdf</id>
87-
<phase>generate-resources</phase>
88-
<goals>
89-
<goal>process-asciidoc</goal>
90-
</goals>
91-
</execution>
92-
</executions>
93-
<configuration>
94-
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
95-
<outputDirectory>target/docs/asciidoc</outputDirectory>
96-
<backend>pdf</backend>
97-
</configuration>
98-
</plugin>
9973
</plugins>
10074
</build>
10175

@@ -359,17 +333,7 @@
359333
<groupId>io.netty</groupId>
360334
<artifactId>netty-all</artifactId>
361335
<version>${netty.version}</version>
362-
</dependency>
363-
<dependency>
364-
<groupId>org.asciidoctor</groupId>
365-
<artifactId>asciidoctorj</artifactId>
366-
<version>1.5.4</version>
367-
</dependency>
368-
<dependency>
369-
<groupId>org.asciidoctor</groupId>
370-
<artifactId>asciidoctorj-pdf</artifactId>
371-
<version>1.5.0-alpha.11</version>
372-
</dependency>
336+
</dependency>
373337
<!-- OpenNLP -->
374338
<dependency>
375339
<groupId>org.apache.opennlp</groupId>

0 commit comments

Comments
 (0)