From f1cc7c98b0431f13edd4c918547637f6f4ae6a9d Mon Sep 17 00:00:00 2001 From: Emux Date: Thu, 21 Jul 2016 09:06:40 +0300 Subject: [PATCH] Gradle: remove logger properties from produced artifacts, #46 --- deploy.gradle | 1 + vtm-android-gdx/build.gradle | 2 ++ 2 files changed, 3 insertions(+) diff --git a/deploy.gradle b/deploy.gradle index f0e820bf..152f1842 100644 --- a/deploy.gradle +++ b/deploy.gradle @@ -4,6 +4,7 @@ if (project.hasProperty("android")) { // Android libraries task sourcesJar(type: Jar) { classifier = 'sources' from android.sourceSets.main.java.srcDirs + exclude 'android-logger.properties' } task javadoc(type: Javadoc) { diff --git a/vtm-android-gdx/build.gradle b/vtm-android-gdx/build.gradle index 83c4a857..4437d478 100644 --- a/vtm-android-gdx/build.gradle +++ b/vtm-android-gdx/build.gradle @@ -54,6 +54,7 @@ android.applicationVariants.all { variant -> def taskJar = project.tasks.create "jar${name.capitalize()}", Jar taskJar.dependsOn variant.javaCompile taskJar.from variant.javaCompile.destinationDir + taskJar.exclude 'android-logger.properties' artifacts.add('archives', taskJar); file('natives').eachDir() { dir -> @@ -72,6 +73,7 @@ android.applicationVariants.all { variant -> taskFat.from(dir.path) taskFat.from("${rootProject.projectDir}/vtm-android/natives/${dir.name}") } + taskFat.exclude 'android-logger.properties' artifacts.add('archives', taskFat); }