2018-06-15 15:17:35 +02:00
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
|
2015-02-03 10:13:11 +01:00
|
|
|
configurations {
|
|
|
|
android
|
|
|
|
}
|
|
|
|
|
2018-06-15 17:27:36 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
sourceCompatibility = "1.7"
|
|
|
|
targetCompatibility = "1.7"
|
2018-08-10 22:22:13 +02:00
|
|
|
options.encoding = 'UTF-8'
|
2018-06-15 17:27:36 +02:00
|
|
|
}
|
2018-06-15 16:51:43 +02:00
|
|
|
|
|
|
|
task collectRoutingResources(type: Sync) {
|
|
|
|
from "../../resources/routing"
|
|
|
|
into "src/main/resources/net/osmand/router"
|
|
|
|
include "*.xml"
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectMiscResources(type: Copy) {
|
|
|
|
into "src/main/resources/net/osmand/osm"
|
|
|
|
from("../../resources/obf_creation") {
|
|
|
|
include "rendering_types.xml"
|
|
|
|
}
|
|
|
|
from("../../resources/poi") {
|
|
|
|
include "poi_types.xml"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectRenderingStylesResources(type: Sync) {
|
|
|
|
from "../../resources/rendering_styles"
|
|
|
|
into "src/main/resources/net/osmand/render"
|
|
|
|
include "*.xml"
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectRegionsInfoResources(type: Copy) {
|
|
|
|
from "../../resources/countries-info"
|
|
|
|
into "src/main/resources/net/osmand/map"
|
|
|
|
include "regions.ocbf"
|
|
|
|
}
|
|
|
|
|
|
|
|
task collectTestResources(type: Copy) {
|
2018-06-15 17:27:36 +02:00
|
|
|
into "src/test/resources/"
|
2018-12-02 22:01:34 +01:00
|
|
|
from("../../resources/test-resources") {
|
|
|
|
include "*"
|
|
|
|
}
|
|
|
|
from("../../resources/poi") {
|
|
|
|
include "poi_types.xml"
|
|
|
|
include "/phrases/en/*"
|
|
|
|
//include "/phrases/ru/*"
|
|
|
|
}
|
2018-06-15 16:51:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
task collectExternalResources {
|
|
|
|
dependsOn collectRoutingResources,
|
|
|
|
collectRenderingStylesResources,
|
|
|
|
collectRegionsInfoResources,
|
|
|
|
collectTestResources,
|
|
|
|
collectMiscResources
|
|
|
|
}
|
|
|
|
|
2015-02-03 10:13:11 +01:00
|
|
|
task androidJar(type: Jar) {
|
2018-06-15 17:27:36 +02:00
|
|
|
dependsOn collectExternalResources, build
|
2015-02-03 10:13:11 +01:00
|
|
|
appendix = "android"
|
2018-06-15 17:27:36 +02:00
|
|
|
from (sourceSets.main.java.outputDir) {
|
2018-06-15 16:51:43 +02:00
|
|
|
exclude("**/PlatformUtil.*")
|
|
|
|
}
|
|
|
|
from sourceSets.main.resources
|
2015-02-03 10:13:11 +01:00
|
|
|
}
|
|
|
|
|
2018-06-15 17:38:32 +02:00
|
|
|
compileJava {
|
|
|
|
dependsOn collectExternalResources
|
|
|
|
}
|
2018-06-15 16:51:43 +02:00
|
|
|
|
2015-02-03 10:13:11 +01:00
|
|
|
artifacts {
|
|
|
|
android androidJar
|
2014-12-16 12:23:45 +01:00
|
|
|
}
|
|
|
|
|
2018-06-15 16:51:43 +02:00
|
|
|
|
2014-12-16 12:23:45 +01:00
|
|
|
dependencies {
|
2018-06-15 14:54:55 +02:00
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
testImplementation 'com.google.code.gson:gson:2.8.2'
|
|
|
|
testImplementation 'org.hamcrest:hamcrest-core:1.3'
|
2019-02-18 17:03:51 +01:00
|
|
|
implementation 'commons-logging:commons-logging:1.2'
|
|
|
|
implementation 'org.json:json:20171018'
|
2018-06-15 16:51:56 +02:00
|
|
|
implementation 'it.unibo.alice.tuprolog:tuprolog:3.2.1'
|
|
|
|
implementation 'org.beanshell:bsh-core:2.0b4'
|
|
|
|
implementation 'org.apache.commons:commons-compress:1.17'
|
|
|
|
implementation 'com.moparisthebest:junidecode:0.1.1'
|
|
|
|
implementation 'com.vividsolutions:jts-core:1.14.0'
|
2019-02-18 17:15:34 +01:00
|
|
|
implementation 'com.atilika.kuromoji:kuromoji-ipadic:0.9.0'
|
2018-06-15 16:51:56 +02:00
|
|
|
implementation 'net.sf.kxml:kxml2:2.1.8'
|
2019-02-18 17:03:51 +01:00
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2014-12-16 12:23:45 +01:00
|
|
|
}
|
2016-06-29 20:23:33 +02:00
|
|
|
|