-
Notifications
You must be signed in to change notification settings - Fork 20
/
pom.xml
157 lines (149 loc) · 5.79 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.optaplanner</groupId>
<artifactId>optapy-parent</artifactId>
<version>9.37.0.Final</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>optapy-docs</artifactId>
<packaging>pom</packaging>
<name>OptaPy documentation</name>
<description>
OptaPy solves planning problems.
This lightweight, embeddable planning engine implements powerful and scalable algorithms
to optimize business resource scheduling and planning.
This module builds the documentation.
</description>
<url>https://www.optaplanner.org</url>
<properties>
<!--
Antora ignores hidden files. The docs website should not incorporate this file as it brings the single-paged docs
duplicating the other content.
-->
<source.document.name>.index.adoc</source.document.name>
<version.optapy>9.37.0b0</version.optapy>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<sourceDirectory>${basedir}/src/modules/ROOT/pages</sourceDirectory>
<resources>
<resource>
<directory>${basedir}/src/modules/ROOT/images</directory>
</resource>
</resources>
<attributes>
<optaplanner-version>${project.version}</optaplanner-version>
<java-version>${maven.compiler.release}</java-version>
<maven-version>${maven.min.version}</maven-version>
<quarkus-version>${version.io.quarkus}</quarkus-version>
<spring-boot-version>${version.org.springframework.boot}</spring-boot-version>
<html-googleAnalyticsId>UA-39485370-1</html-googleAnalyticsId>
</attributes>
</configuration>
<executions>
<execution>
<id>generate-single-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<!-- Needs to be duplicated to avoid rendering each adoc separately -->
<sourceDocumentName>${source.document.name}</sourceDocumentName>
<backend>html5</backend>
<outputDirectory>${project.build.directory}/generated-docs/html_single</outputDirectory>
<outputFile>index.html</outputFile>
<attributes>
<imagesdir>.</imagesdir>
<source-highlighter>highlightjs</source-highlighter>
</attributes>
</configuration>
</execution>
<execution>
<id>generate-pdf</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<!-- Needs to be duplicated to avoid rendering each adoc separately -->
<sourceDocumentName>${source.document.name}</sourceDocumentName>
<backend>pdf</backend>
<outputDirectory>${project.build.directory}/generated-docs/pdf</outputDirectory>
<outputFile>index.pdf</outputFile>
<attributes>
<imagesdir>${basedir}/src/modules/ROOT/images</imagesdir>
<source-highlighter>coderay</source-highlighter><!-- highlightjs does not work in PDF -->
</attributes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<!-- Substitutes properties in antora-template.yml that is copied to src/antora.yml during a release. -->
<execution>
<id>generate-antora-yml</id>
<goals>
<goal>resources</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<resources>
<resource>
<directory>${project.basedir}/src</directory>
<targetPath>${project.build.directory}</targetPath>
<includes>
<include>antora-template.yml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>package-generated-docs</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${project.artifactId}-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/generated-docs-zip.xml</descriptor>
</descriptors>
<archive>
<addMavenDescriptor>true</addMavenDescriptor>
</archive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>