From ed6098eb5e30e9d9de755da555e5dc2c287a7713 Mon Sep 17 00:00:00 2001 From: kezong <379977@qq.com> Date: Tue, 15 Dec 2020 20:30:59 +0800 Subject: [PATCH] throw merge manifest exception . --- source/build.gradle | 2 +- .../main/java/com/kezong/fataar/LibraryManifestMerger.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/build.gradle b/source/build.gradle index 92b3b66e..7238b50e 100644 --- a/source/build.gradle +++ b/source/build.gradle @@ -37,7 +37,7 @@ publish { userOrg = 'kezong' groupId = 'com.kezong' artifactId = 'fat-aar' - publishVersion = '1.3.1' + publishVersion = '1.3.3' desc = 'A gradle plugin that merge dependencies into the final aar file works with AGP 3.+' website = 'https://github.com/kezong/fat-aar-android' } diff --git a/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java b/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java index 552f78a0..052979a3 100644 --- a/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java +++ b/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java @@ -42,9 +42,7 @@ protected void doTaskAction() { } catch (Exception e) { System.out.println("Gradle Plugin Version:" + mGradlePluginVersion); System.out.println("Gradle Version:" + mGradleVersion); - System.out.println("If you see this error message, please submit issue to " + - "https://github.com/kezong/fat-aar-android/issues with Gradle version. Thank you."); - e.printStackTrace(); + throw new RuntimeException(e.getMessage()); } }