|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +
|
| 4 | + Copyright 2012-2019 The Feign Authors |
| 5 | +
|
| 6 | + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 7 | + in compliance with the License. You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + Unless required by applicable law or agreed to in writing, software distributed under the License |
| 12 | + is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 13 | + or implied. See the License for the specific language governing permissions and limitations under |
| 14 | + the License. |
| 15 | +
|
| 16 | +--> |
| 17 | +<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"> |
| 18 | + <modelVersion>4.0.0</modelVersion> |
| 19 | + |
| 20 | + <parent> |
| 21 | + <groupId>io.github.openfeign</groupId> |
| 22 | + <artifactId>parent</artifactId> |
| 23 | + <version>10.5.2-SNAPSHOT</version> |
| 24 | + </parent> |
| 25 | + |
| 26 | + <groupId>io.github.openfeign.experimental</groupId> |
| 27 | + <artifactId>feign-apt-test-generator</artifactId> |
| 28 | + <name>Feign APT test generator</name> |
| 29 | + <description>Feign code generation tool for mocked clients</description> |
| 30 | + |
| 31 | + <properties> |
| 32 | + <main.basedir>${project.basedir}/..</main.basedir> |
| 33 | + </properties> |
| 34 | + |
| 35 | + <dependencyManagement> |
| 36 | + <dependencies> |
| 37 | + <dependency> |
| 38 | + <groupId>io.github.openfeign</groupId> |
| 39 | + <artifactId>feign-bom</artifactId> |
| 40 | + <version>${project.version}</version> |
| 41 | + <type>pom</type> |
| 42 | + <scope>import</scope> |
| 43 | + </dependency> |
| 44 | + </dependencies> |
| 45 | + </dependencyManagement> |
| 46 | + |
| 47 | + <dependencies> |
| 48 | + <dependency> |
| 49 | + <groupId>com.github.jknack</groupId> |
| 50 | + <artifactId>handlebars</artifactId> |
| 51 | + <version>4.1.2</version> |
| 52 | + </dependency> |
| 53 | + |
| 54 | + <dependency> |
| 55 | + <groupId>io.github.openfeign</groupId> |
| 56 | + <artifactId>feign-example-github</artifactId> |
| 57 | + <version>${project.version}</version> |
| 58 | + </dependency> |
| 59 | + |
| 60 | + <dependency> |
| 61 | + <groupId>com.google.testing.compile</groupId> |
| 62 | + <artifactId>compile-testing</artifactId> |
| 63 | + <version>0.18</version> |
| 64 | + <scope>test</scope> |
| 65 | + </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>com.google.guava</groupId> |
| 68 | + <artifactId>guava</artifactId> |
| 69 | + <version>28.0-jre</version> |
| 70 | + </dependency> |
| 71 | + <dependency> |
| 72 | + <groupId>com.google.auto.service</groupId> |
| 73 | + <artifactId>auto-service</artifactId> |
| 74 | + <version>1.0-rc5</version> |
| 75 | + <scope>provided</scope> |
| 76 | + </dependency> |
| 77 | + </dependencies> |
| 78 | + |
| 79 | + <build> |
| 80 | + <resources> |
| 81 | + <resource> |
| 82 | + <targetPath>docker</targetPath> |
| 83 | + <filtering>true</filtering> |
| 84 | + <!-- Replace maven properties in the docker file so we can get artifacts etc --> |
| 85 | + <directory>${project.basedir}/docker</directory> |
| 86 | + </resource> |
| 87 | + <!-- need to manually specify the resources to copy because we have a manual setting above --> |
| 88 | + <resource> |
| 89 | + <directory>${basedir}/src/main/resources</directory> |
| 90 | + </resource> |
| 91 | + <resource> |
| 92 | + <directory>src/main/java</directory> |
| 93 | + <includes> |
| 94 | + <include>**/*.java</include> |
| 95 | + </includes> |
| 96 | + </resource> |
| 97 | + </resources> |
| 98 | + |
| 99 | + <plugins> |
| 100 | + <plugin> |
| 101 | + <groupId>org.apache.maven.plugins</groupId> |
| 102 | + <artifactId>maven-shade-plugin</artifactId> |
| 103 | + <version>2.4.3</version> |
| 104 | + <executions> |
| 105 | + <execution> |
| 106 | + <phase>package</phase> |
| 107 | + <goals> |
| 108 | + <goal>shade</goal> |
| 109 | + </goals> |
| 110 | + <configuration> |
| 111 | + <transformers> |
| 112 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 113 | + <mainClass>feign.aptgenerator.github.GitHubFactoryExample</mainClass> |
| 114 | + </transformer> |
| 115 | + </transformers> |
| 116 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 117 | + </configuration> |
| 118 | + </execution> |
| 119 | + </executions> |
| 120 | + </plugin> |
| 121 | + <plugin> |
| 122 | + <groupId>org.skife.maven</groupId> |
| 123 | + <artifactId>really-executable-jar-maven-plugin</artifactId> |
| 124 | + <version>1.5.0</version> |
| 125 | + <configuration> |
| 126 | + <programFile>github</programFile> |
| 127 | + </configuration> |
| 128 | + <executions> |
| 129 | + <execution> |
| 130 | + <phase>package</phase> |
| 131 | + <goals> |
| 132 | + <goal>really-executable-jar</goal> |
| 133 | + </goals> |
| 134 | + </execution> |
| 135 | + </executions> |
| 136 | + </plugin> |
| 137 | + <plugin> |
| 138 | + <groupId>org.apache.maven.plugins</groupId> |
| 139 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 140 | + <version>${maven-surefire-plugin.version}</version> |
| 141 | + <executions> |
| 142 | + <execution> |
| 143 | + <goals> |
| 144 | + <goal>integration-test</goal> |
| 145 | + <goal>verify</goal> |
| 146 | + </goals> |
| 147 | + </execution> |
| 148 | + </executions> |
| 149 | + </plugin> |
| 150 | + |
| 151 | + <plugin> |
| 152 | + <!-- used to create docker images --> |
| 153 | + <groupId>com.spotify</groupId> |
| 154 | + <artifactId>docker-maven-plugin</artifactId> |
| 155 | + <configuration> |
| 156 | + <!-- docker file copied here after maven replaces properties --> |
| 157 | + <dockerDirectory>${project.build.directory}/classes/docker/</dockerDirectory> |
| 158 | + |
| 159 | + <!-- Pull image before build, otherwise end up with image not found if it was never downloaded before --> |
| 160 | + <pullOnBuild>true</pullOnBuild> |
| 161 | + |
| 162 | + <serverId>docker-hub</serverId> |
| 163 | + <registryUrl>https://index.docker.io/v1/</registryUrl> |
| 164 | + <imageName>feign-apt-generator/test</imageName> |
| 165 | + <resources> |
| 166 | + <resource> |
| 167 | + <targetPath>/</targetPath> |
| 168 | + <directory>${project.build.directory}</directory> |
| 169 | + <include>${project.artifactId}-${project.version}.jar</include> |
| 170 | + </resource> |
| 171 | + </resources> |
| 172 | + </configuration> |
| 173 | + <executions> |
| 174 | + <!-- see definition of how this runs above --> |
| 175 | + <execution> |
| 176 | + <phase>post-integration-test</phase> |
| 177 | + <goals> |
| 178 | + <goal>build</goal> |
| 179 | + </goals> |
| 180 | + </execution> |
| 181 | + </executions> |
| 182 | + </plugin> |
| 183 | + </plugins> |
| 184 | + </build> |
| 185 | +</project> |
0 commit comments