1<?xml version="1.0" encoding="UTF-8"?> 2<project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 5 <modelVersion>4.0.0</modelVersion> 6 7 <parent> 8 <groupId>com.google.auth</groupId> 9 <artifactId>google-auth-library-parent</artifactId> 10 <version>1.23.0</version><!-- {x-version-update:google-auth-library-parent:current} --> 11 <relativePath>../pom.xml</relativePath> 12 </parent> 13 14 <artifactId>google-auth-library-oauth2-http</artifactId> 15 <name>Google Auth Library for Java - OAuth2 HTTP</name> 16 17 <distributionManagement> 18 <snapshotRepository> 19 <id>ossrh</id> 20 <url>https://google.oss.sonatype.org/content/repositories/snapshots</url> 21 </snapshotRepository> 22 </distributionManagement> 23 24 <profiles> 25 <profile> 26 <id>junit47</id> 27 <activation> 28 <activeByDefault>true</activeByDefault> 29 </activation> 30 <build> 31 <plugins> 32 <plugin> 33 <groupId>org.apache.maven.plugins</groupId> 34 <artifactId>maven-surefire-plugin</artifactId> 35 <version>${surefire.version}</version> 36 <configuration> 37 <!-- Excludes integration tests when unit tests are run. --> 38 <excludes> 39 <exclude>**/IT*.java</exclude> 40 <exclude>**/functional/*.java</exclude> 41 </excludes> 42 <reportNameSuffix>sponge_log</reportNameSuffix> 43 </configuration> 44 <dependencies> 45 <dependency> 46 <groupId>org.apache.maven.surefire</groupId> 47 <artifactId>surefire-junit47</artifactId> 48 <version>${surefire.version}</version> 49 </dependency> 50 </dependencies> 51 </plugin> 52 </plugins> 53 </build> 54 </profile> 55 <profile> 56 <id>native-test</id> 57 <build> 58 <plugins> 59 <plugin> 60 <groupId>org.apache.maven.plugins</groupId> 61 <artifactId>maven-surefire-plugin</artifactId> 62 <version>${surefire.version}</version> 63 <configuration> 64 <excludes combine.self="override"></excludes> 65 <includes> 66 <include>**/IT*.java</include> 67 <include>**/functional/*.java</include> 68 </includes> 69 </configuration> 70 </plugin> 71 </plugins> 72 </build> 73 </profile> 74 </profiles> 75 76 <build> 77 <sourceDirectory>java</sourceDirectory> 78 <resources> 79 <resource> 80 <directory>resources</directory> 81 <filtering>true</filtering> 82 </resource> 83 </resources> 84 <testSourceDirectory>javatests</testSourceDirectory> 85 <testResources> 86 <testResource> 87 <directory>testresources</directory> 88 </testResource> 89 </testResources> 90 <plugins> 91 <plugin> 92 <groupId>org.apache.maven.plugins</groupId> 93 <artifactId>maven-resources-plugin</artifactId> 94 <executions> 95 <execution> 96 <goals> 97 <goal>resources</goal> 98 </goals> 99 </execution> 100 </executions> 101 </plugin> 102 <plugin> 103 <groupId>org.sonatype.plugins</groupId> 104 <artifactId>nexus-staging-maven-plugin</artifactId> 105 </plugin> 106 <plugin> 107 <groupId>org.apache.maven.plugins</groupId> 108 <artifactId>maven-source-plugin</artifactId> 109 </plugin> 110 <plugin> 111 <groupId>org.apache.maven.plugins</groupId> 112 <artifactId>maven-javadoc-plugin</artifactId> 113 </plugin> 114 <plugin> 115 <groupId>org.apache.maven.plugins</groupId> 116 <artifactId>maven-dependency-plugin</artifactId> 117 <configuration> 118 <ignoredUnusedDeclaredDependencies>com.google.auto.value:auto-value 119 </ignoredUnusedDeclaredDependencies> 120 </configuration> 121 </plugin> 122 <plugin> 123 <groupId>org.apache.maven.plugins</groupId> 124 <artifactId>maven-jar-plugin</artifactId> 125 <configuration> 126 <archive> 127 <manifest> 128 <addDefaultImplementationEntries>true</addDefaultImplementationEntries> 129 </manifest> 130 <manifestEntries> 131 <Automatic-Module-Name>com.google.auth.oauth2</Automatic-Module-Name> 132 </manifestEntries> 133 </archive> 134 </configuration> 135 <executions> 136 <execution> 137 <goals> 138 <goal>test-jar</goal> 139 </goals> 140 <configuration> 141 <skip>false</skip> 142 <classifier>testlib</classifier> 143 <includes> 144 <include>**/Mock*</include> 145 <include>**/*TestUtil*</include> 146 <include>**/BaseSerializationTest*</include> 147 </includes> 148 </configuration> 149 </execution> 150 </executions> 151 </plugin> 152 <plugin> 153 <groupId>org.apache.maven.plugins</groupId> 154 <artifactId>maven-failsafe-plugin</artifactId> 155 <version>3.2.1</version> 156 <configuration> 157 <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> 158 <reportNameSuffix>sponge_log</reportNameSuffix> 159 <includes> 160 <include>**/IT*.java</include> 161 <include>**/functional/*.java</include> 162 </includes> 163 </configuration> 164 <executions> 165 <execution> 166 <goals> 167 <goal>integration-test</goal> 168 <goal>verify</goal> 169 </goals> 170 </execution> 171 </executions> 172 </plugin> 173 <plugin> 174 <groupId>org.apache.maven.plugins</groupId> 175 <artifactId>maven-surefire-plugin</artifactId> 176 <version>${surefire.version}</version> 177 <configuration> 178 <!-- Excludes integration tests when unit tests are run. --> 179 <excludes> 180 <exclude>**/IT*.java</exclude> 181 <exclude>**/functional/*.java</exclude> 182 </excludes> 183 <reportNameSuffix>sponge_log</reportNameSuffix> 184 </configuration> 185 </plugin> 186 </plugins> 187 </build> 188 189 <dependencies> 190 <dependency> 191 <groupId>com.google.auto.value</groupId> 192 <artifactId>auto-value-annotations</artifactId> 193 </dependency> 194 <dependency> 195 <groupId>com.google.code.findbugs</groupId> 196 <artifactId>jsr305</artifactId> 197 </dependency> 198 <dependency> 199 <groupId>com.google.auth</groupId> 200 <artifactId>google-auth-library-credentials</artifactId> 201 </dependency> 202 <dependency> 203 <groupId>com.google.http-client</groupId> 204 <artifactId>google-http-client</artifactId> 205 </dependency> 206 <dependency> 207 <groupId>com.google.http-client</groupId> 208 <artifactId>google-http-client-gson</artifactId> 209 </dependency> 210 <dependency> 211 <groupId>com.google.guava</groupId> 212 <artifactId>guava</artifactId> 213 </dependency> 214 <dependency> 215 <groupId>com.google.errorprone</groupId> 216 <artifactId>error_prone_annotations</artifactId> 217 <scope>compile</scope> 218 </dependency> 219 <dependency> 220 <groupId>junit</groupId> 221 <artifactId>junit</artifactId> 222 <scope>test</scope> 223 </dependency> 224 <dependency> 225 <groupId>org.hamcrest</groupId> 226 <artifactId>hamcrest-core</artifactId> 227 <version>1.3</version> 228 <scope>test</scope> 229 </dependency> 230 <dependency> 231 <groupId>org.mockito</groupId> 232 <artifactId>mockito-core</artifactId> 233 <version>4.11.0</version> 234 <scope>test</scope> 235 </dependency> 236 </dependencies> 237</project> 238