99 lines
2.3 KiB
Groovy
99 lines
2.3 KiB
Groovy
apply plugin: 'java'
|
|
|
|
|
|
configurations {
|
|
android
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
sourceCompatibility = "1.7"
|
|
targetCompatibility = "1.7"
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
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) {
|
|
into "src/test/resources/"
|
|
from("../../resources/test-resources") {
|
|
include "*"
|
|
}
|
|
from("../../resources/poi") {
|
|
include "poi_types.xml"
|
|
include "/phrases/en/*"
|
|
//include "/phrases/ru/*"
|
|
}
|
|
}
|
|
|
|
|
|
task collectExternalResources {
|
|
dependsOn collectRoutingResources,
|
|
collectRenderingStylesResources,
|
|
collectRegionsInfoResources,
|
|
collectTestResources,
|
|
collectMiscResources
|
|
}
|
|
|
|
task androidJar(type: Jar) {
|
|
dependsOn collectExternalResources, build
|
|
appendix = "android"
|
|
from (sourceSets.main.java.outputDir) {
|
|
exclude("**/PlatformUtil.*")
|
|
}
|
|
from sourceSets.main.resources
|
|
}
|
|
|
|
compileJava {
|
|
dependsOn collectExternalResources
|
|
}
|
|
|
|
artifacts {
|
|
android androidJar
|
|
}
|
|
|
|
|
|
dependencies {
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation 'com.google.code.gson:gson:2.8.2'
|
|
testImplementation 'org.hamcrest:hamcrest-core:1.3'
|
|
|
|
implementation group: 'commons-logging', name: 'commons-logging', version: '1.2'
|
|
implementation group: 'org.json', name: 'json', version: '20171018'
|
|
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'
|
|
implementation 'com.atilika.kuromoji:kuromoji-ipadic:0.9.0'
|
|
implementation 'net.sf.kxml:kxml2:2.1.8'
|
|
|
|
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
}
|
|
|