File: use-local-osmosis.patch

package info (click to toggle)
mapsforge 0.17.0%2Bdfsg.1-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 40,772 kB
  • sloc: java: 43,307; xml: 6,707; sh: 140; makefile: 23
file content (30 lines) | stat: -rw-r--r-- 1,116 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Use osmosis
 We build mapsforge with osmosis package.
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Last-Update: 2018-10-25
Index: mapsforge-0.17.0+dfsg.1/mapsforge-map-writer/build.gradle
===================================================================
--- mapsforge-0.17.0+dfsg.1.orig/mapsforge-map-writer/build.gradle
+++ mapsforge-0.17.0+dfsg.1/mapsforge-map-writer/build.gradle
@@ -1,13 +1,20 @@
 apply plugin: 'java-library'
 apply plugin: 'maven-publish'
 
+repositories {
+    flatDir {
+        dirs '/usr/share/osmosis'
+    }
+}
+
 dependencies {
     implementation project(":mapsforge-core")
     implementation 'com.google.guava:guava:28.1-jre'
     implementation 'net.sf.trove4j:trove4j:3.0.3'
     implementation 'org.locationtech.jts:jts-core:1.16.1'
-    compileOnly 'org.openstreetmap.osmosis:osmosis-core:0.47'
+    compileOnly 'org.openstreetmap.osmosis:osmosis-core:*'
     testImplementation "junit:junit:$jUnitVersion"
+    compile name: 'osmosis-core-0.48.3'
 }
 
 sourceSets.test.compileClasspath += configurations.compileClasspath - configurations.runtimeClasspath