Skip to content

Latest commit

 

History

History
95 lines (73 loc) · 2.59 KB

Integration.md

File metadata and controls

95 lines (73 loc) · 2.59 KB

Integration guide

This article describes how to integrate the library in your project, with Gradle / Maven / Jars or SNAPSHOT builds.

Current version is Maven Central

Gradle

Map

Core

compile 'org.mapsforge:mapsforge-core:[CURRENT-VERSION]'
compile 'org.mapsforge:mapsforge-map:[CURRENT-VERSION]'
compile 'org.mapsforge:mapsforge-map-reader:[CURRENT-VERSION]'
compile 'org.mapsforge:mapsforge-themes:[CURRENT-VERSION]'
compile 'net.sf.kxml:kxml2:2.3.0'

Android

compile 'org.mapsforge:mapsforge-map-android:[CURRENT-VERSION]'
compile 'com.caverock:androidsvg:1.2.2-beta-1'

Optionally:

compile('org.mapsforge:mapsforge-map-android-extras:[CURRENT-VERSION]') {
    transitive = false
}

Desktop

compile 'org.mapsforge:mapsforge-map-awt:[CURRENT-VERSION]'
compile 'com.metsci.ext.com.kitfox.svg:svg-salamander:0.1.19'

POI

Core

compile 'org.mapsforge:mapsforge-core:[CURRENT-VERSION]'
compile 'org.mapsforge:mapsforge-poi:[CURRENT-VERSION]'

Android

compile 'org.mapsforge:mapsforge-poi-android:[CURRENT-VERSION]'
compile 'org.mapsforge:spatialite-android:[CURRENT-VERSION]'
compile 'org.mapsforge:spatialite-android:[CURRENT-VERSION]:natives-armeabi'
compile 'org.mapsforge:spatialite-android:[CURRENT-VERSION]:natives-armeabi-v7a'
compile 'org.mapsforge:spatialite-android:[CURRENT-VERSION]:natives-x86'

Desktop

compile 'org.mapsforge:mapsforge-poi-awt:[CURRENT-VERSION]'
compile 'org.xerial:sqlite-jdbc:3.15.1'

Snapshots

We publish regularly SNAPSHOT builds to Sonatype OSS Repository Hosting.

You need to add the repository:

repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}

And declare the dependencies like:

compile 'org.mapsforge:mapsforge-core:master-SNAPSHOT'
...

Maven

The dependencies for Maven are declared in a similar way. For example:

<dependency>
    <groupId>org.mapsforge</groupId>
    <artifactId>mapsforge-core</artifactId>
    <version>[CURRENT-VERSION]</version>
</dependency>

Jars

You can find release and snapshot jars (regular and with dependencies) in Maven Central and Sonatype OSS Repository Hosting.

Third party jars can be found at their respective sites or in Maven Central repository.