From eda3b08c316ae8bf67c94e37c64e871a41c8c713 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Thu, 23 Mar 2017 16:49:35 +0300 Subject: [PATCH] Kapt3: Fix Maven build on CI 'tools_jar_profile' Maven profile is activated only if 'kotlin-annotation-processing-maven-build.txt' exists. It already works this say for the 'kotlin-annotation-processing' artifact. --- .../kotlin-annotation-processing-maven-build.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libraries/tools/kotlin-annotation-processing-maven/kotlin-annotation-processing-maven-build.txt diff --git a/libraries/tools/kotlin-annotation-processing-maven/kotlin-annotation-processing-maven-build.txt b/libraries/tools/kotlin-annotation-processing-maven/kotlin-annotation-processing-maven-build.txt new file mode 100644 index 00000000000..038fc782c57 --- /dev/null +++ b/libraries/tools/kotlin-annotation-processing-maven/kotlin-annotation-processing-maven-build.txt @@ -0,0 +1,9 @@ +The presence of this file enables the "tools_jar_profile" profile in kotlin-annotation-processing, + which adds "tools.jar" to the compile dependencies. + +When Gradle loads this artifact, the "tools_jar_profile" profile should not be activated + (cause it adds an extra dependency from the path based on the environment variable). + +It wouldn't in fact because: +1. This file is normally absent when Gradle build with kapt is launched; +2. Gradle poorly supports Maven profiles. \ No newline at end of file