Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
stevenroose edited this page Oct 30, 2014 · 4 revisions

If you want to use Maven for dependency management add following repository into your pom.xml:

Do not use this. This will import the old code from Google Code.

  <repository>
    <id>foursquareapijava</id>
    <name>Foursquare V2 API for Java Repository</name>
    <url>http://foursquare-api-java.googlecode.com/svn/repository</url>
  </repository>
```
And dependency:
```
  <dependency>
    <groupId>fi.foyt</groupId>
    <artifactId>foursquare-api</artifactId>
    <version>VERSION</version>
  </dependency>
```
Optionally if you need Google App Engine support add also following dependency:
```
  <dependency>
    <groupId>fi.foyt</groupId>
    <artifactId>foursquare-api-gae</artifactId>
    <version>VERSION</version>
  </dependency>
```

If you are including this package and getting this error:
```
"trouble writing output: Too many method references: 76856; max is 65536"
```
you may exclude the Google App Engine dependency by editing your pom like so:
```
<dependency>
    <groupId>fi.foyt</groupId>
    <artifactId>foursquare-api</artifactId>
    <version>1.0.2</version>

    <exclusions>
        <exclusion>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-1.0-sdk</artifactId>
        </exclusion>
    </exclusions>
</dependency>
```
Clone this wiki locally