1313 <description >Spring gRPC documentation</description >
1414
1515 <properties >
16- <exec-maven-plugin .version>3.4.1</exec-maven-plugin .version>
16+ <maven-exec-plugin .version>3.4.1</maven-exec-plugin .version>
17+ <maven-gem-plugin .version>3.0.3</maven-gem-plugin .version>
1718 <configprops .path>${project.basedir} /src/main/antora/modules/ROOT/partials/_configprops.adoc</configprops .path>
1819 <configprops .inclusionPattern>spring.grpc.*</configprops .inclusionPattern>
20+ <jruby .version>9.4.6.0</jruby .version>
1921 </properties >
2022 <!-- Dependencies used to build the config props doc generator -->
2123 <dependencies >
2931 <artifactId >jackson-databind</artifactId >
3032 <version >${jackson.version} </version >
3133 </dependency >
34+ <dependency >
35+ <groupId >rubygems</groupId >
36+ <artifactId >asciidoctor-reducer</artifactId >
37+ <version >1.0.6</version >
38+ <type >gem</type >
39+ </dependency >
3240 </dependencies >
3341 <build >
42+ <extensions >
43+ <extension >
44+ <groupId >org.jruby.maven</groupId >
45+ <artifactId >mavengem-wagon</artifactId >
46+ <version >2.0.2</version >
47+ </extension >
48+ </extensions >
3449 <plugins >
3550 <plugin >
3651 <groupId >io.spring.maven.antora</groupId >
5570 <version >${io.spring.maven.antora-version} </version >
5671 <executions >
5772 <execution >
73+ <?m2e ignore ?>
5874 <goals >
5975 <goal >antora-component-version</goal >
6076 </goals >
84100 <plugin >
85101 <groupId >org.codehaus.mojo</groupId >
86102 <artifactId >exec-maven-plugin</artifactId >
87- <version >${exec- maven-plugin.version} </version >
103+ <version >${maven-exec -plugin.version} </version >
88104 <executions >
89105 <execution >
90106 <id >generate-configprops</id >
91107 <phase >package</phase >
92108 <goals >
93109 <goal >java</goal >
94110 </goals >
111+ <configuration >
112+ <includeProjectDependencies >true</includeProjectDependencies >
113+ <includePluginDependencies >false</includePluginDependencies >
114+ <mainClass >
115+ org.springframework.grpc.internal.ConfigurationPropertiesAsciidocGenerator</mainClass >
116+ <arguments >
117+ <argument >${configprops.path} </argument >
118+ <argument >${configprops.inclusionPattern} </argument >
119+ </arguments >
120+ </configuration >
121+ </execution >
122+ <execution >
123+ <id >generate-readme</id >
124+ <phase >package</phase >
125+ <goals >
126+ <goal >exec</goal >
127+ </goals >
128+ <configuration >
129+ <executable >${basedir} /node_modules/.bin/downdoc</executable >
130+ <arguments >
131+ <argument >${project.build.directory} /README.adoc</argument >
132+ <argument >-o</argument >
133+ <argument >${project.parent.basedir} /README.md</argument >
134+ </arguments >
135+ </configuration >
95136 </execution >
96137 </executions >
138+ </plugin >
139+ <plugin >
140+ <groupId >org.jruby.maven</groupId >
141+ <artifactId >gem-maven-plugin</artifactId >
142+ <version >${maven-gem-plugin.version} </version >
97143 <configuration >
98- <includeProjectDependencies >true</includeProjectDependencies >
99- <includePluginDependencies >false</includePluginDependencies >
100- <mainClass >org.springframework.grpc.internal.ConfigurationPropertiesAsciidocGenerator</mainClass >
101- <arguments >
102- <argument >${configprops.path} </argument >
103- <argument >${configprops.inclusionPattern} </argument >
104- </arguments >
144+ <jrubyVersion >${jruby.version} </jrubyVersion >
145+ <gemHome >${project.build.directory} /gems</gemHome >
146+ <gemPath >${project.build.directory} /gems</gemPath >
105147 </configuration >
148+ <executions >
149+ <execution >
150+ <?m2e ignore ?>
151+ <id >install-gems</id >
152+ <goals >
153+ <goal >initialize</goal >
154+ <goal >exec</goal >
155+ </goals >
156+ <phase >compile</phase >
157+ <configuration >
158+ <execArgs >${project.build.directory} /gems/bin/asciidoctor-reducer -o
159+ ${project.build.directory} /README.adoc
160+ ${basedir} /src/main/antora/modules/ROOT/pages/README.adoc</execArgs >
161+ </configuration >
162+ </execution >
163+ </executions >
106164 </plugin >
107165 </plugins >
108166 </build >
109167
110- </project >
168+ <repositories >
169+ <repository >
170+ <id >mavengems</id >
171+ <url >mavengem:https://rubygems.org</url >
172+ </repository >
173+ </repositories >
174+
175+ </project >
0 commit comments