|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +
|
| 4 | + Copyright 2012-2022 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/maven-v4_0_0.xsd"> |
| 18 | + <modelVersion>4.0.0</modelVersion> |
| 19 | + |
| 20 | + <parent> |
| 21 | + <groupId>io.github.openfeign</groupId> |
| 22 | + <artifactId>parent</artifactId> |
| 23 | + <version>11.10-SNAPSHOT</version> |
| 24 | + </parent> |
| 25 | + |
| 26 | + <artifactId>feign-example-github-with-coroutine</artifactId> |
| 27 | + <packaging>jar</packaging> |
| 28 | + <name>GitHub Example With Coroutine</name> |
| 29 | + |
| 30 | + <properties> |
| 31 | + <main.basedir>${project.basedir}/..</main.basedir> |
| 32 | + </properties> |
| 33 | + |
| 34 | + <dependencies> |
| 35 | + <dependency> |
| 36 | + <groupId>io.github.openfeign</groupId> |
| 37 | + <artifactId>feign-core</artifactId> |
| 38 | + </dependency> |
| 39 | + <dependency> |
| 40 | + <groupId>io.github.openfeign</groupId> |
| 41 | + <artifactId>feign-kotlin</artifactId> |
| 42 | + </dependency> |
| 43 | + <dependency> |
| 44 | + <groupId>io.github.openfeign</groupId> |
| 45 | + <artifactId>feign-gson</artifactId> |
| 46 | + </dependency> |
| 47 | + <dependency> |
| 48 | + <groupId>org.apache.commons</groupId> |
| 49 | + <artifactId>commons-exec</artifactId> |
| 50 | + <version>1.3</version> |
| 51 | + <scope>test</scope> |
| 52 | + </dependency> |
| 53 | + </dependencies> |
| 54 | + |
| 55 | + <build> |
| 56 | + <defaultGoal>package</defaultGoal> |
| 57 | + <plugins> |
| 58 | + <plugin> |
| 59 | + <groupId>org.apache.maven.plugins</groupId> |
| 60 | + <artifactId>maven-shade-plugin</artifactId> |
| 61 | + <version>3.3.0</version> |
| 62 | + <executions> |
| 63 | + <execution> |
| 64 | + <phase>package</phase> |
| 65 | + <goals> |
| 66 | + <goal>shade</goal> |
| 67 | + </goals> |
| 68 | + <configuration> |
| 69 | + <transformers> |
| 70 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 71 | + <mainClass>example.github.GitHubExample</mainClass> |
| 72 | + </transformer> |
| 73 | + </transformers> |
| 74 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 75 | + </configuration> |
| 76 | + </execution> |
| 77 | + </executions> |
| 78 | + </plugin> |
| 79 | + <plugin> |
| 80 | + <groupId>org.skife.maven</groupId> |
| 81 | + <artifactId>really-executable-jar-maven-plugin</artifactId> |
| 82 | + <version>1.5.0</version> |
| 83 | + <configuration> |
| 84 | + <programFile>github</programFile> |
| 85 | + </configuration> |
| 86 | + <executions> |
| 87 | + <execution> |
| 88 | + <phase>package</phase> |
| 89 | + <goals> |
| 90 | + <goal>really-executable-jar</goal> |
| 91 | + </goals> |
| 92 | + </execution> |
| 93 | + </executions> |
| 94 | + </plugin> |
| 95 | + <plugin> |
| 96 | + <groupId>org.apache.maven.plugins</groupId> |
| 97 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 98 | + <version>${maven-surefire-plugin.version}</version> |
| 99 | + <configuration> |
| 100 | + <!-- |
| 101 | + Travis does not inject GITHUB_TOKEN when building PRs, which will make module fail |
| 102 | + https://docs.travis-ci.com/user/environment-variables/#defining-encrypted-variables-in-travisyml |
| 103 | +
|
| 104 | + ignoring test errors for any build that is not master |
| 105 | + --> |
| 106 | + <testFailureIgnore>true</testFailureIgnore> |
| 107 | + </configuration> |
| 108 | + <executions> |
| 109 | + <execution> |
| 110 | + <goals> |
| 111 | + <goal>integration-test</goal> |
| 112 | + <goal>verify</goal> |
| 113 | + </goals> |
| 114 | + </execution> |
| 115 | + </executions> |
| 116 | + </plugin> |
| 117 | + </plugins> |
| 118 | + </build> |
| 119 | + |
| 120 | + <profiles> |
| 121 | + <profile> |
| 122 | + <activation> |
| 123 | + <property> |
| 124 | + <name>env.TRAVIS_PULL_REQUEST</name> |
| 125 | + <value>false</value> |
| 126 | + </property> |
| 127 | + </activation> |
| 128 | + <build> |
| 129 | + <plugins> |
| 130 | + <plugin> |
| 131 | + <groupId>org.apache.maven.plugins</groupId> |
| 132 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 133 | + <configuration> |
| 134 | + <testFailureIgnore>false</testFailureIgnore> |
| 135 | + </configuration> |
| 136 | + </plugin> |
| 137 | + <plugin> |
| 138 | + <groupId>org.jetbrains.kotlin</groupId> |
| 139 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 140 | + <version>${kotlin.version}</version> |
| 141 | + <executions> |
| 142 | + <execution> |
| 143 | + <id>compile</id> |
| 144 | + <goals> |
| 145 | + <goal>compile</goal> |
| 146 | + </goals> |
| 147 | + <configuration> |
| 148 | + <sourceDirs> |
| 149 | + <sourceDir>${project.basedir}/src/main/kotlin</sourceDir> |
| 150 | + </sourceDirs> |
| 151 | + </configuration> |
| 152 | + </execution> |
| 153 | + <execution> |
| 154 | + <id>test-compile</id> |
| 155 | + <goals> |
| 156 | + <goal>test-compile</goal> |
| 157 | + </goals> |
| 158 | + <configuration> |
| 159 | + <sourceDirs> |
| 160 | + <sourceDir>${project.basedir}/src/test/kotlin</sourceDir> |
| 161 | + </sourceDirs> |
| 162 | + </configuration> |
| 163 | + </execution> |
| 164 | + </executions> |
| 165 | + </plugin> |
| 166 | + </plugins> |
| 167 | + </build> |
| 168 | + </profile> |
| 169 | + </profiles> |
| 170 | +</project> |
0 commit comments