You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.6 KiB
100 lines
3.6 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
xmlns="http://maven.apache.org/POM/4.0.0" |
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
<modelVersion>4.0.0</modelVersion> |
|
<parent> |
|
<groupId>org.springframework.cloud</groupId> |
|
<artifactId>spring-cloud-gateway</artifactId> |
|
<version>4.1.0-SNAPSHOT</version> |
|
</parent> |
|
<artifactId>spring-cloud-gateway-docs</artifactId> |
|
<packaging>jar</packaging> |
|
<name>Spring Cloud Gateway Docs</name> |
|
<description>Spring Cloud Docs</description> |
|
<properties> |
|
<docs.main>spring-cloud-gateway</docs.main> |
|
<main.basedir>${basedir}/..</main.basedir> |
|
<configprops.inclusionPattern>spring.cloud.gateway.*</configprops.inclusionPattern> |
|
<upload-docs-zip.phase>deploy</upload-docs-zip.phase> |
|
<!-- Don't upload docs jar to central / repo.spring.io --> |
|
<maven-deploy-plugin-default.phase>none</maven-deploy-plugin-default.phase> |
|
|
|
<!-- Observability --> |
|
<micrometer-docs-generator.version>1.0.0</micrometer-docs-generator.version> |
|
<micrometer-docs-generator.inputPath>${maven.multiModuleProjectDirectory}/spring-cloud-gateway-server/</micrometer-docs-generator.inputPath> |
|
<micrometer-docs-generator.inclusionPattern>.*</micrometer-docs-generator.inclusionPattern> |
|
<micrometer-docs-generator.outputPath>${maven.multiModuleProjectDirectory}/docs/target/observability/</micrometer-docs-generator.outputPath> |
|
</properties> |
|
<dependencies> |
|
<dependency> |
|
<groupId>${project.groupId}</groupId> |
|
<artifactId>spring-cloud-starter-gateway</artifactId> |
|
</dependency> |
|
</dependencies> |
|
<build> |
|
<sourceDirectory>src/main/asciidoc</sourceDirectory> |
|
</build> |
|
<profiles> |
|
<profile> |
|
<id>docs</id> |
|
<build> |
|
<plugins> |
|
<plugin> |
|
<groupId>pl.project13.maven</groupId> |
|
<artifactId>git-commit-id-plugin</artifactId> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.codehaus.mojo</groupId> |
|
<artifactId>exec-maven-plugin</artifactId> |
|
<executions> |
|
<execution> |
|
<id>generate-docs</id> |
|
<phase>prepare-package</phase> |
|
<goals> |
|
<goal>java</goal> |
|
</goals> |
|
<configuration> |
|
<mainClass>io.micrometer.docs.DocsGeneratorCommand</mainClass> |
|
<includePluginDependencies>true</includePluginDependencies> |
|
<arguments> |
|
<argument>${micrometer-docs-generator.inputPath}</argument> |
|
<argument>${micrometer-docs-generator.inclusionPattern}</argument> |
|
<argument>${micrometer-docs-generator.outputPath}</argument> |
|
</arguments> |
|
</configuration> |
|
</execution> |
|
</executions> |
|
<dependencies> |
|
<dependency> |
|
<groupId>io.micrometer</groupId> |
|
<artifactId>micrometer-docs-generator</artifactId> |
|
<version>${micrometer-docs-generator.version}</version> |
|
<type>jar</type> |
|
</dependency> |
|
</dependencies> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-dependency-plugin</artifactId> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-resources-plugin</artifactId> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.asciidoctor</groupId> |
|
<artifactId>asciidoctor-maven-plugin</artifactId> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-antrun-plugin</artifactId> |
|
</plugin> |
|
<plugin> |
|
<artifactId>maven-deploy-plugin</artifactId> |
|
</plugin> |
|
</plugins> |
|
</build> |
|
</profile> |
|
</profiles> |
|
</project>
|
|
|