Guava: Google Core Libraries for Java (JDK5 Backport).
Guava is a suite of core and expanded libraries that include utility classes, google's collections, io classes, and much much more. Guava has only one code dependency - javax.annotation, per the JSR-305 spec..
Here is the list of declaration for guava-jdk5. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>com.google.guava</groupId> <artifactId>guava-jdk5</artifactId> <version>17.0</version> </dependency>
If you think this Maven repository POM file listing for guava-jdk5 is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table lists the most popular artifacts which are depending on guava-jdk5-17.0. Their categories and depend by count are also listed.
Category | Artifact | Depended By Count |
---|---|---|
Web Service | ads-lib 1.35.0 Java client library for accessing ads APIs including AdWords, DFA, and DFP. If you want to use this library, you must also include another Maven artifact to specify which framework you would like to use it with. For example, to use AdWords with Axis, you should include the "adwords-axis... | 5 |
Web Service | ads-lib 1.36.0 Java client library for accessing ads APIs including AdWords, DFA, and DFP. If you want to use this library, you must also include another Maven artifact to specify which framework you would like to use it with. For example, to use AdWords with Axis, you should include the "adwords-axis... | 5 |
Web Service | ads-lib 1.35.1 Java client library for accessing ads APIs including AdWords, DFA, and DFP. If you want to use this library, you must also include another Maven artifact to specify which framework you would like to use it with. For example, to use AdWords with Axis, you should include the "adwords-axis... | 5 |
The following plugins are used in the guava-jdk5-17.0.jar
The following packages are defined in the guava-jdk5-17.0.jar
com.google.common.annotations com.google.common.base com.google.common.base.internal com.google.common.cache com.google.common.collect com.google.common.escape com.google.common.eventbus com.google.common.hash com.google.common.html com.google.common.io com.google.common.math com.google.common.net com.google.common.primitives com.google.common.reflect com.google.common.util.concurrent com.google.common.xml com.google.thirdparty.publicsuffix
Here is the content of the POM file.
<?xml version="1.0" encoding="UTF-8"?> <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"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.google.guava</groupId> <artifactId>guava-parent-jdk5</artifactId> <version>17.0</version> </parent> <artifactId>guava-jdk5</artifactId> <name>Guava: Google Core Libraries for Java (JDK5 Backport)</name> <packaging>bundle</packaging> <description> Guava is a suite of core and expanded libraries that include utility classes, google's collections, io classes, and much much more. Guava has only one code dependency - javax.annotation, per the JSR-305 spec. </description> <dependencies> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <optional>true</optional><!-- needed only for annotations --> </dependency> <!-- TODO(cpovirk): want this only for dependency plugin but seems not to work there? Maven runs without failure, but the resulting Javadoc is missing the hoped-for inherited text --> <dependency> <groupId>${project.groupId}</groupId> <artifactId>guava-bootstrap-jdk5</artifactId> <version>${project.version}</version> <scope>provided</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.7</version> <extensions>true</extensions> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> </executions> <configuration> <instructions> <Export-Package>!com.google.common.base.internal,com.google.common.*</Export-Package> <Import-Package> javax.annotation;resolution:=optional, javax.inject;resolution:=optional, sun.misc.*;resolution:=optional </Import-Package> </instructions> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <!-- Prepend guava-bootstrap to avoid an API incompatibility between JDK5 and JDK6 --> <compilerArgument>-Xbootclasspath/p:${project.build.directory}/dependency/guava-bootstrap-jdk5-${project.version}.jar</compilerArgument> </configuration> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> </plugin> <!-- TODO(cpovirk): include JDK sources when building testlib doc, too --> <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>prep-guava-bootstrap</id> <phase>process-sources</phase> <goals><goal>copy-dependencies</goal></goals> <configuration> <includeArtifactIds>guava-bootstrap-jdk5</includeArtifactIds> </configuration> </execution> <execution> <id>unpack-jdk-sources</id> <phase>site</phase> <goals><goal>unpack-dependencies</goal></goals> <configuration> <includeArtifactIds>srczip</includeArtifactIds> <overWrite>true</overWrite> <outputDirectory>${project.build.directory}/jdk-sources</outputDirectory> <silent>false</silent> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <encoding>UTF-8</encoding> <docencoding>UTF-8</docencoding> <charset>UTF-8</charset> <additionalparam>-XDignore.symbol.file</additionalparam> <excludePackageNames>com.google.common.base.internal</excludePackageNames> <linksource>true</linksource> <links> <link>http://jsr-305.googlecode.com/svn/trunk/javadoc</link> <link>http://docs.oracle.com/javase/7/docs/api/</link> </links> <!-- TODO(cpovirk): can we use includeDependencySources and a local com.oracle.java:jdk-lib:noversion:sources instead of all this unzipping and manual sourcepath modification? --> <sourcepath>${project.build.sourceDirectory}:${project.build.directory}/jdk-sources</sourcepath> <subpackages>com.google.common</subpackages> </configuration> <executions> <execution> <id>attach-docs</id> </execution> <execution> <id>generate-javadoc-site-report</id> <phase>site</phase> <goals><goal>javadoc</goal></goals> </execution> <execution> <id>generate-jdiff-site-report</id> <phase>site</phase> <goals><goal>javadoc</goal></goals> <configuration> <doclet>jdiff.JDiff</doclet> <docletPath>${project.basedir}/lib/jdiff.jar</docletPath> <additionalparam> -XDignore.symbol.file -apiname 'Guava ${project.version}' </additionalparam> <useStandardDocletOptions>false</useStandardDocletOptions> <reportOutputDirectory>${project.reporting.outputDirectory}</reportOutputDirectory> <destDir>jdiff</destDir> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>srczip</id> <activation> <file> <exists>${java.home}/../src.zip</exists> </file> </activation> <dependencies> <dependency> <groupId>jdk</groupId> <artifactId>srczip</artifactId> <version>999</version> <scope>system</scope> <systemPath>${java.home}/../src.zip</systemPath> <optional>true</optional> </dependency> </dependencies> </profile> </profiles> </project>