Make jars with JDK/Android SDK annotations empty

- Compiler use them only for getting parameter names and we are OK to drop it
- IDE plugin can use jdkAnnotations from ideaSDK
This commit is contained in:
Denis Zharkov
2015-06-17 14:19:08 +03:00
parent 8013cbe4ef
commit 80a7f79f12
5 changed files with 31 additions and 14 deletions
+7 -9
View File
@@ -859,15 +859,13 @@
</sequential>
</macrodef>
<target name="fetch-annotations">
<mkdir dir="dependencies/annotations"/>
<get
src="https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_KAnnotator_InferJdkAnnotations/shipWithKotlin.tcbuildtag/kotlin-jdk-annotations.jar"
dest="dependencies/annotations/kotlin-jdk-annotations.jar" usetimestamp="true"/>
<get
src="https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_KAnnotator_InferJdkAnnotations/shipWithKotlin.tcbuildtag/kotlin-android-sdk-annotations.jar"
dest="dependencies/annotations/kotlin-android-sdk-annotations.jar" usetimestamp="true"/>
</target>
<!--
Currently we use empty annotations.
Future options are:
- Drop the target when will be sure that custom annotations are unneeded
- Fill the target with downloading correct annotations
-->
<target name="fetch-annotations"/>
<target name="get_android_studio">
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${basedir}/dependencies/ant-contrib.jar"/>