This article describes how to integrate the library in your project, with Gradle / Maven / Jars or SNAPSHOT builds.
implementation 'org.mapsforge:mapsforge-core:[CURRENT-VERSION]'
implementation 'org.mapsforge:mapsforge-map:[CURRENT-VERSION]'
implementation 'org.mapsforge:mapsforge-map-reader:[CURRENT-VERSION]'
implementation 'org.mapsforge:mapsforge-themes:[CURRENT-VERSION]'
implementation 'net.sf.kxml:kxml2:2.3.0'
implementation 'org.mapsforge:mapsforge-map-android:[CURRENT-VERSION]'
implementation 'com.caverock:androidsvg:1.2.2-beta-1'
implementation 'org.mapsforge:mapsforge-map-awt:[CURRENT-VERSION]'
implementation 'com.metsci.ext.com.kitfox.svg:svg-salamander:0.1.19'
implementation 'org.mapsforge:mapsforge-core:[CURRENT-VERSION]'
implementation 'org.mapsforge:mapsforge-poi:[CURRENT-VERSION]'
implementation 'org.mapsforge:mapsforge-poi-android:[CURRENT-VERSION]'
implementation 'org.mapsforge:spatialite-android:[CURRENT-VERSION]'
implementation 'org.mapsforge:spatialite-android:[CURRENT-VERSION]:natives-armeabi'
implementation 'org.mapsforge:spatialite-android:[CURRENT-VERSION]:natives-armeabi-v7a'
implementation 'org.mapsforge:spatialite-android:[CURRENT-VERSION]:natives-x86'
implementation 'org.mapsforge:mapsforge-poi-awt:[CURRENT-VERSION]'
implementation 'org.xerial:sqlite-jdbc:3.20.0'
We publish 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:
implementation 'org.mapsforge:mapsforge-core:master-SNAPSHOT'
...
For checking latest snapshot on every build:
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
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>
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.