From 05425ccab6286b33246507ebcf267a1f083a01bb Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 11 Jun 2019 10:37:29 +0200 Subject: [PATCH] Add property to exclude resources --- OsmAnd-java/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/build.gradle b/OsmAnd-java/build.gradle index c4c22875e6..62f3fe06d9 100644 --- a/OsmAnd-java/build.gradle +++ b/OsmAnd-java/build.gradle @@ -61,7 +61,11 @@ task collectExternalResources { } task androidJar(type: Jar) { - dependsOn collectExternalResources, build + if (!project.hasProperty('osmandCoreSimple')) { + dependsOn collectExternalResources, build + } else { + dependsOn build + } appendix = "android" from (sourceSets.main.java.outputDir) { exclude("**/PlatformUtil.*")