Proper gradle
This commit is contained in:
parent
75a0c03e40
commit
3ec9d6dbd2
3 changed files with 15 additions and 8 deletions
|
@ -3,16 +3,23 @@ apply plugin: 'java'
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
srcDirs = [
|
srcDirs = ["src"]
|
||||||
"src"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is Android-specific
|
configurations {
|
||||||
jar {
|
android
|
||||||
exclude "**/PlatformUtil.*"
|
}
|
||||||
|
|
||||||
|
task androidJar(type: Jar) {
|
||||||
|
appendix = "android"
|
||||||
|
from sourceSets.main.output
|
||||||
|
exclude("**/PlatformUtil.*")
|
||||||
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
android androidJar
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -299,7 +299,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(":OsmAnd-java")
|
compile project(path: ":OsmAnd-java", configuration: "android")
|
||||||
compile fileTree(
|
compile fileTree(
|
||||||
dir: "libs",
|
dir: "libs",
|
||||||
include: ["*.jar"],
|
include: ["*.jar"],
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
include ':OsmAnd'
|
|
||||||
include ':OsmAnd-java'
|
include ':OsmAnd-java'
|
||||||
|
include ':OsmAnd'
|
||||||
|
|
Loading…
Reference in a new issue