1 <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"> 2 <modelVersion>4.0.0</modelVersion> 3 <groupId>com.google.code.gson</groupId> 4 <artifactId>gson</artifactId> 5 <packaging>jar</packaging> 6 <version>2.3</version> 7 <inceptionYear>2008</inceptionYear> 8 <name>Gson</name> 9 <parent> 10 <groupId>org.sonatype.oss</groupId> 11 <artifactId>oss-parent</artifactId> 12 <version>9</version> 13 </parent> 14 <url>http://code.google.com/p/google-gson/</url> 15 <description>Google Gson library</description> 16 <properties> 17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 18 </properties> 19 <licenses> 20 <license> 21 <name>The Apache Software License, Version 2.0</name> 22 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 23 <distribution>repo</distribution> 24 </license> 25 </licenses> 26 <scm> 27 <connection>scm:svn:http://google-gson.googlecode.com/svn/tags/gson-2.3</connection> 28 <developerConnection>scm:svn:https://google-gson.googlecode.com/svn/tags/gson-2.3</developerConnection> 29 <url>http://google-gson.googlecode.com/svn/tags/gson-2.3</url> 30 </scm> 31 <issueManagement> 32 <system>Google Code Issue Tracking</system> 33 <url>http://code.google.com/p/google-gson/issues/list</url> 34 </issueManagement> 35 <distributionManagement> 36 <snapshotRepository> 37 <id>sonatype-nexus-snapshots</id> 38 <name>Sonatype Nexus Snapshots</name> 39 <url>https://oss.sonatype.org/content/repositories/snapshots/</url> 40 </snapshotRepository> 41 <repository> 42 <id>sonatype-nexus-staging</id> 43 <name>Nexus Release Repository</name> 44 <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url> 45 </repository> 46 </distributionManagement> 47 <organization> 48 <name>Google, Inc.</name> 49 <url>http://www.google.com</url> 50 </organization> 51 <dependencies> 52 <dependency> 53 <groupId>junit</groupId> 54 <artifactId>junit</artifactId> 55 <version>3.8.2</version> 56 <scope>test</scope> 57 </dependency> 58 </dependencies> 59 <profiles> 60 <!-- Activate PGP signing only when performing a release --> 61 <profile> 62 <id>release-sign-artifacts</id> 63 <activation> 64 <property> 65 <name>performRelease</name> 66 <value>true</value> 67 </property> 68 </activation> 69 <build> 70 <plugins> 71 <plugin> 72 <groupId>org.apache.maven.plugins</groupId> 73 <artifactId>maven-gpg-plugin</artifactId> 74 <version>1.5</version> 75 <executions> 76 <execution> 77 <id>sign-artifacts</id> 78 <phase>verify</phase> 79 <goals> 80 <goal>sign</goal> 81 </goals> 82 </execution> 83 </executions> 84 </plugin> 85 </plugins> 86 </build> 87 </profile> 88 <profile> 89 <id>doclint-java8-disable</id> 90 <activation> 91 <jdk>[1.8,</jdk> 92 </activation> 93 <build> 94 <plugins> 95 <plugin> 96 <groupId>org.apache.maven.plugins</groupId> 97 <artifactId>maven-javadoc-plugin</artifactId> 98 <configuration> 99 <additionalparam>-Xdoclint:none</additionalparam> 100 </configuration> 101 </plugin> 102 </plugins> 103 </build> 104 </profile> 105 </profiles> 106 <build> 107 <defaultGoal>package</defaultGoal> 108 <plugins> 109 <plugin> 110 <groupId>org.apache.maven.plugins</groupId> 111 <artifactId>maven-compiler-plugin</artifactId> 112 <version>3.1</version> 113 <configuration> 114 <source>1.5</source> 115 <target>1.5</target> 116 </configuration> 117 </plugin> 118 <plugin> 119 <groupId>org.apache.maven.plugins</groupId> 120 <artifactId>maven-jar-plugin</artifactId> 121 <version>2.4</version> 122 <executions> 123 <execution> 124 <phase>package</phase> 125 <goals> 126 <goal>jar</goal> 127 </goals> 128 </execution> 129 </executions> 130 <configuration> 131 <archive> 132 <addMavenDescriptor>false</addMavenDescriptor> 133 <manifestEntries> 134 <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment> 135 <Export-Package><![CDATA[com.google.gson;version=${project.version}, com.google.gson.annotations;version=${project.version}, com.google.gson.reflect;version=${project.version}, com.google.gson.stream;version=${project.version}, com.google.gson.internal;version=${project.version}, com.google.gson.internal.bind;version=${project.version}]]></Export-Package> 136 <Bundle-Version>${project.version}</Bundle-Version> 137 <Bundle-ContactAddress>http://code.google.com/p/google-gson/</Bundle-ContactAddress> 138 <Bundle-Vendor>Google Gson Project</Bundle-Vendor> 139 <Bundle-Name>${project.name}</Bundle-Name> 140 <Bundle-Description>${project.description}</Bundle-Description> 141 <Bundle-ClassPath>.</Bundle-ClassPath> 142 <Bundle-ManifestVersion>2</Bundle-ManifestVersion> 143 <Bundle-SymbolicName>com.google.gson</Bundle-SymbolicName> 144 </manifestEntries> 145 </archive> 146 </configuration> 147 </plugin> 148 <plugin> 149 <!-- TODO(inder): add manifest entry for maven group, artifact, and classifier ids --> 150 <groupId>org.apache.maven.plugins</groupId> 151 <artifactId>maven-source-plugin</artifactId> 152 <version>2.3</version> 153 <executions> 154 <execution> 155 <id>attach-sources</id> 156 <phase>verify</phase> 157 <goals> 158 <goal>jar</goal> 159 </goals> 160 </execution> 161 </executions> 162 <configuration> 163 <archive> 164 <manifestEntries> 165 <Eclipse-SourceBundle>com.google.gson;version="${project.version}"</Eclipse-SourceBundle> 166 <Bundle-SymbolicName>com.google.gson.source</Bundle-SymbolicName> 167 <Bundle-ManifestVersion>2</Bundle-ManifestVersion> 168 <Bundle-Version>${project.version}</Bundle-Version> 169 </manifestEntries> 170 </archive> 171 </configuration> 172 </plugin> 173 <plugin> 174 <!-- TODO(inder): add manifest entry for maven group, artifact, and classifier ids --> 175 <groupId>org.apache.maven.plugins</groupId> 176 <artifactId>maven-javadoc-plugin</artifactId> 177 <version>2.9.1</version> 178 <executions> 179 <execution> 180 <id>attach-javadocs</id> 181 <goals> 182 <goal>jar</goal> 183 </goals> 184 </execution> 185 </executions> 186 <configuration> 187 <includePackageNames>com.google.gson</includePackageNames> 188 <excludePackageNames>com.google.gson.internal:com.google.gson.internal.bind</excludePackageNames> 189 <links> 190 <link>http://docs.oracle.com/javase/1.5.0/docs/api/</link> 191 </links> 192 <version>true</version> 193 <show>protected</show> 194 </configuration> 195 </plugin> 196 <plugin> 197 <groupId>org.apache.maven.plugins</groupId> 198 <artifactId>maven-eclipse-plugin</artifactId> 199 <version>2.9</version> 200 <configuration> 201 <downloadSources>true</downloadSources> 202 <downloadJavadocs>true</downloadJavadocs> 203 <workspace> 204 ../eclipse-ws/ 205 </workspace> 206 <workspaceCodeStylesURL> 207 file:///${basedir}/../lib/gson-formatting-styles.xml 208 </workspaceCodeStylesURL> 209 </configuration> 210 </plugin> 211 <plugin> 212 <groupId>org.apache.maven.plugins</groupId> 213 <artifactId>maven-release-plugin</artifactId> 214 <!-- version>2.5</version --> 215 <configuration> 216 <arguments>-DenableCiProfile=true</arguments> 217 <tagBase>https://google-gson.googlecode.com/svn/tags</tagBase> 218 </configuration> 219 </plugin> 220 <plugin> 221 <artifactId>maven-assembly-plugin</artifactId> 222 <version>2.4.1</version> 223 <configuration> 224 <descriptor>assembly-descriptor.xml</descriptor> 225 <finalName>google-gson-${project.version}</finalName> 226 <outputDirectory>target/dist</outputDirectory> 227 <workDirectory>target/assembly/work</workDirectory> 228 </configuration> 229 </plugin> 230 </plugins> 231 </build> 232 <developers> 233 <developer> 234 <name>Inderjeet Singh</name> 235 <organization>Trymph Inc.</organization> 236 </developer> 237 <developer> 238 <name>Joel Leitch</name> 239 <organization>Google Inc.</organization> 240 </developer> 241 <developer> 242 <name>Jesse Wilson</name> 243 <organization>Square Inc.</organization> 244 </developer> 245 </developers> 246 </project> 247 248