2.6 KiB
Integration guide
This article describes how to integrate the library in your project. Check for current version at Maven badge on main page.
Gradle
Core
compile 'org.mapsforge:vtm:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-themes:[CURRENT-VERSION]'
compile 'org.slf4j:slf4j-api:1.7.21'
Android
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
compile 'com.caverock:androidsvg:1.2.2-beta-1'
iOS
Detailed iOS instructions can be found here.
Java
compile 'org.mapsforge:vtm-gdx:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-linux'
compile 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-osx'
compile 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-windows'
compile 'com.badlogicgames.gdx:gdx:1.9.4'
compile 'com.badlogicgames.gdx:gdx-platform:1.9.4:natives-desktop'
compile 'com.badlogicgames.gdx:gdx-backend-lwjgl:1.9.4'
compile 'org.lwjgl.lwjgl:lwjgl:2.9.3'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-linux'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-osx'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-windows'
compile 'com.kitfox.svg:svg-salamander:1.0'
Maven
The dependencies for Maven are declared in a similar way. For example:
<dependency>
<groupId>org.mapsforge</groupId>
<artifactId>vtm</artifactId>
<version>[CURRENT-VERSION]</version>
</dependency>
Snapshots
We publish regularly SNAPSHOT builds to Sonatype OSS Repository Hosting. To use master-SNAPSHOT
version add as repository, e.g. in Gradle:
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
JitPack
We support also JitPack for releases or SNAPSHOT builds.
For example in order to include the vtm
module master-SNAPSHOT
with Gradle.
Add as repository:
maven { url "https://jitpack.io" }
And declare as dependency:
compile 'com.github.mapsforge.vtm:vtm:master-SNAPSHOT'
The same syntax applies for all modules. And with similar way you can declare the dependencies in Maven too.
Jars
You can find jars (regular and with dependencies) in Maven Central or Snapshots repositories.
Third party jars can be found at their respective sites or in Maven Central repository.