Commit Graph

675 Commits

Author SHA1 Message Date
Michael Nedzelsky 3ac1bdcdc8 kotlin-maven-plugin, ant:withKotlin: skip compilation for empty sources
#KT-7618 Fixed
2015-06-11 22:21:16 +03:00
Yan Zhulanow 08fa9b639e Gradle: update annotation syntax 2015-06-11 15:19:51 +03:00
Yan Zhulanow e3c6f32b50 Gradle: Subplugin loading process is unrelated to kapt 2015-06-11 15:19:51 +03:00
Yan Zhulanow 853cfdb70b kapt: Move class generation methods to core plugin 2015-06-11 15:19:50 +03:00
Yan Zhulanow 3cfdf21aa4 kapt: Create kotlinAfterJava task after project evaluation 2015-06-11 14:53:50 +03:00
Yan Zhulanow 7561b43336 kapt: Warn on using android-apt with kapt 2015-06-11 14:53:50 +03:00
Yan Zhulanow 39d7674886 kapt: Fix compatibility with android-apt 2015-06-11 14:53:49 +03:00
Yan Zhulanow b9bfc659d5 Gradle: Remove logger argument in SubpluginEnvironment 2015-06-11 14:53:48 +03:00
Yan Zhulanow c2073cb575 kapt: Add logging information 2015-06-11 14:53:48 +03:00
Yan Zhulanow 6ed5bbc2f8 kapt: Initial .class stub support in Gradle 2015-06-11 14:53:47 +03:00
Yan Zhulanow 78af866f5a kapt: Do not fail if annotations.txt file does not exist 2015-06-11 14:53:46 +03:00
Yan Zhulanow a900a424d0 Gradle: Do not inline getOrNull() 2015-06-11 14:53:45 +03:00
Alexander Udalov 64b60718e3 Finish off old deprecated function/extension function classes
This reverts commit d14e5b8a72.
2015-06-10 14:41:57 +03:00
Alexander Udalov 4815a9e5a8 Fix kotlin-reflect Maven artifact, attach sources jar 2015-06-09 15:39:04 +03:00
Alexander Udalov 4c7bcc8e1a Minor, specify version for maven-jar-plugin 2015-06-09 15:01:18 +03:00
Ilya Gorbunov 009baa11fc Specific wording in exception message for String methods. 2015-06-04 16:45:55 +03:00
Ilya Gorbunov a1d8e9d633 Provide dropLast and takeLastWhile methods. Optimize special cases of drop/take/dropLast/takeLast (when n is equal to zero or size of collection). 2015-06-04 16:32:25 +03:00
Ilya Gorbunov 9b17220baa Provide dropLastWhile for Arrays, Lists and Strings. 2015-06-04 16:32:21 +03:00
Alexander Udalov 9cc156c67f Copy kotlin-reflect.jar from dist to publish to Maven
Also build sources jar in build.xml to publish as kotlin-reflect's sources, and
create an empty javadoc
2015-06-02 11:12:09 +03:00
Natalia Ukhorskaya 1334f0352b Support com.android.tools.build.gradle 1.3.0-beta1
#KT-7884 Fixed
2015-06-01 14:00:57 +03:00
Ilya Gorbunov 64b2e37436 Deprecate meaningless or vague-defined operations with Char operands: downTo. 2015-06-01 00:55:45 +03:00
Dmitry Jemerov 8f0f02fc59 correct some errors and omissions in stdlib doc comments 2015-05-28 14:38:36 +02:00
Alexander Udalov d14e5b8a72 Restore and deprecate Function{n}/ExtensionFunction{n} classes for easier migration
Users' Java code will not break in common cases (when passing functions to
Kotlin), and deprecation warnings will be reported.

Provide an inspection with a quick fix which allows to replace deprecated
function class usages to the new classes. Include this fix to the "code
cleanup" action
2015-05-28 01:20:05 +03:00
Ilya Gorbunov ea85290939 Annotate deprecated members with proposed replacement. 2015-05-27 22:29:37 +03:00
Ilya Gorbunov 953bbef08c Allow to specify replacement for deprecated items in generated code. 2015-05-27 22:29:35 +03:00
Ilya Gorbunov fa24db435d Stdlib documentation: clarified toMap behavior when a duplicate key is encountered. 2015-05-27 22:29:33 +03:00
Ilya Gorbunov ae60f7a32f Prettify kdocs and exception messages in the generated code. 2015-05-27 22:16:15 +03:00
Yan Zhulanow 2a7b5501f4 Do not generate annotations.txt file if kapt is not used in project 2015-05-27 16:11:08 +03:00
Yan Zhulanow 42ba2860a6 Gradle: Do not save javaTask extract property 2015-05-27 16:11:07 +03:00
Yan Zhulanow b254825427 kapt: fix several annotation processors in AP wrapper 2015-05-27 16:11:06 +03:00
Yan Zhulanow c2dd7d197e APT: Use task qualifiers in annotation file names 2015-05-27 16:11:05 +03:00
Yan Zhulanow cbe435ccef APT: Remove stub Java file after Java compile step 2015-05-27 16:11:04 +03:00
Yan Zhulanow 0a450c1739 Fix compatibility issues with Android Gradle plugin 1.2 2015-05-27 16:11:03 +03:00
Natalia Ukhorskaya 0fbcfddf4a Gradle: debug message prefix added 2015-05-27 10:20:09 +03:00
Ilya Gorbunov 45c82f2844 map(): Take into account size of collection being transformed when allocating ArrayList.
#KT-7832 Fixed.
2015-05-26 23:23:36 +03:00
Ilya Gorbunov 01a0348685 Remove deprecated size property usage from generated code. 2015-05-26 23:23:32 +03:00
Alexander Udalov 49004a8b8e Conform functions to extension functions and vice versa
#KT-5989 Fixed
2015-05-26 15:04:56 +03:00
Alexander Udalov 45c28abfee Keep built-in metadata for reflection interfaces
Reflection interfaces (interfaces in kotlin.reflect.* in core/builtins/) are
now fully considered as built-ins and can be accessed via KotlinBuiltIns. This
increases runtime size by ~20kb, but only because KotlinBuiltIns is static and
is therefore constructed only via resource loading from the compiler classpath
at the moment. As soon as it's possible to inject KotlinBuiltIns to the
particular resolution process, the metadata on JVM will be loaded via standard
annotation mechanism (kotlin.jvm.internal.KotlinClass/KotlinPackage) and wasted
runtime space will be reclaimed
2015-05-26 14:27:38 +03:00
Sergey Mashkov fe26bd22f0 JS stubs: add URL specification 2015-05-25 14:55:47 +03:00
Sergey Mashkov 07a3233569 JS stubs: add CSSOM view specification and GEOMETRY spec 2015-05-25 12:36:42 +03:00
Ilya Gorbunov 33f5158170 Fix deprecated replaceAll and replaceFirst usages in stdlib tests and tools. 2015-05-22 16:13:55 +03:00
Ilya Gorbunov 36fb5b3c49 Use platform independent way to split output to lines. 2015-05-22 16:12:07 +03:00
Yan Zhulanow 89d3a4b623 Move AnnotationProcessingManager to main kotlin-gradle-plugin 2015-05-21 15:48:30 +03:00
Yan Zhulanow 6de79f46e4 More kotlin-annotation-processing parsing tests 2015-05-21 15:48:29 +03:00
Yan Zhulanow 07214c4f35 Platform-agnostic text compare in kotlin-annotation-processing 2015-05-21 15:48:27 +03:00
Yan Zhulanow 692e396ffd Support constructors in kapt wrapper 2015-05-21 15:48:26 +03:00
Yan Zhulanow 62a1f8edf3 Rename kotlinApt/ directories to kapt/ 2015-05-21 15:48:25 +03:00
Yan Zhulanow c414c598ca Minor: fixes in KotlinAnnotationProvider (APT wrapper) 2015-05-21 15:48:24 +03:00
Yan Zhulanow d2e256f470 Output annotation processor fqName if the processor can't be initialized 2015-05-21 15:48:24 +03:00
Yan Zhulanow 0363b6b911 Warn if the generated source destination (for APT) was modified 2015-05-21 15:48:23 +03:00