This article describes how to integrate the library in your project with Maven and JitPack repositories.
Package: org.mapsforge
Package: com.github.mapsforge.mapsforge
repositories {
maven { url 'https://jitpack.io' }
}
implementation '[PACKAGE]:mapsforge-core:[CURRENT-VERSION]'
implementation '[PACKAGE]:mapsforge-map:[CURRENT-VERSION]'
implementation '[PACKAGE]:mapsforge-map-reader:[CURRENT-VERSION]'
implementation '[PACKAGE]:mapsforge-themes:[CURRENT-VERSION]'
implementation '[PACKAGE]:mapsforge-map-android:[CURRENT-VERSION]'
implementation 'com.caverock:androidsvg:1.4'
implementation '[PACKAGE]:mapsforge-map-awt:[CURRENT-VERSION]'
implementation 'guru.nidi.com.kitfox:svgSalamander:1.1.3'
implementation 'net.sf.kxml:kxml2:2.3.0'
implementation '[PACKAGE]:mapsforge-core:[CURRENT-VERSION]'
implementation '[PACKAGE]:mapsforge-poi:[CURRENT-VERSION]'
implementation '[PACKAGE]:mapsforge-poi-android:[CURRENT-VERSION]'
implementation '[PACKAGE]:mapsforge-poi-awt:[CURRENT-VERSION]'
implementation 'org.xerial:sqlite-jdbc:3.43.0.0'
We publish SNAPSHOT builds to Sonatype OSS Repository Hosting.
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
implementation 'org.mapsforge:mapsforge-core:master-SNAPSHOT'
For checking latest snapshot on every build:
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
You can find release and snapshot jars on Maven Central and Sonatype OSS Repository Hosting.