163 lines
4.9 KiB
XML
163 lines
4.9 KiB
XML
<?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-contract-parent</artifactId>
|
|
<version>3.0.3</version>
|
|
<relativePath>..</relativePath>
|
|
</parent>
|
|
<artifactId>spring-cloud-contract-docs</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>Spring Cloud Contract Docs</name>
|
|
<description>Spring Cloud Docs</description>
|
|
<properties>
|
|
<jackson-module-jsonSchema.version>2.11.1</jackson-module-jsonSchema.version>
|
|
<docs.main>spring-cloud-contract</docs.main>
|
|
<main.basedir>${basedir}/..</main.basedir>
|
|
<maven.plugin.plugin.version>3.4</maven.plugin.plugin.version>
|
|
<configprops.inclusionPattern>stubrunner.*|wiremock.*|</configprops.inclusionPattern>
|
|
<upload-docs-zip.phase>deploy</upload-docs-zip.phase>
|
|
<!-- Aligned with Groovy in SC-Build -->
|
|
<groovy.version>2.5.14</groovy.version>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>src/main/asciidoc</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>schema-test-compilation</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>testCompile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>resource-generation</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>test</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/*Tests.*</include>
|
|
<include>**/*Test.*</include>
|
|
</includes>
|
|
<reportFormat>plain</reportFormat>
|
|
<failIfNoTests>true</failIfNoTests>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>spring-cloud-starter-contract-verifier</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
<artifactId>jackson-module-jsonSchema</artifactId>
|
|
<version>${jackson-module-jsonSchema.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.amqp</groupId>
|
|
<artifactId>spring-amqp</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<profiles>
|
|
<profile>
|
|
<id>docs</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>pl.project13.maven</groupId>
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
</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.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-docker-env-vars</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<workingDirectory>${maven.multiModuleProjectDirectory}/docker/spring-cloud-contract-docker</workingDirectory>
|
|
<executable>./build_adocs.sh</executable>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generate-adoc-resources</id>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>java</goal>
|
|
</goals>
|
|
<configuration>
|
|
<mainClass>org.springframework.cloud.contract.docs.Main</mainClass>
|
|
<arguments>
|
|
<argument>${maven.multiModuleProjectDirectory}/docs</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</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>
|