Ilya Gorbunov
eb2db85c46
Rewrite Filtering.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
d8455ba765
Rewrite Elements.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
012d3804f0
Rewrite Aggregates.kt to the new template DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
dd0e04edd5
Switch production generated stdlib sources to the new DSL and remove old DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
db049c0ab6
Introduce deprecated helpers to ease migration
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
9f57a2c0d5
Make generated code ordered same as before
...
Allow to fix signature for sorting when overriding it
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
31e00efa8f
Legacy mode for non-multiplatform stdlib sources
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
4404257329
Improve new stdlib generator DSL
...
- Add Kotlin/Native platform.
- Rename classes.
- Introduce TemplateGroup and TemplateGroupBase to group template values.
- MemberBuilder: add support for more properties.
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
e68a6651d2
Prototype new version of stdlib generator template DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
9e34e20338
Refactor stdlib generator: extract common types to be reused in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
dcd0a94d76
Minor: fix extra space in return type of chunked and windowed
2017-11-15 09:17:42 +03:00
Pavel V. Talanov
cdfdc1d19b
Refactor script definitions loading
...
Make ScriptDefinitionProvider an interface
and provide different implementation for cli and IDEA
Rework ide extension point to a simpler interface (ScriptDefinitionContributor)
Move template loading logic into a top level function
Allow script definitions to be reloaded in IDE
2017-11-14 16:30:33 +03:00
Alexander Udalov
208e68a968
Move strip-kotlin-annotations script to buildSrc
...
... and invoke it directly in kotlin-reflect's build file, instead of
running another instance of compiler to evaluate a script. Also only
strip kotlin.Metadata, since it's the only annotation with heavy
metadata on Kotlin-generated class files
2017-11-10 18:58:32 +01:00
Alexander Udalov
38bee07fd0
Remove obsolete protobuf-lite building scripts
...
This logic is now present in
custom-dependencies/protobuf-lite/build.gradle
2017-11-10 18:58:31 +01:00
Alexander Udalov
02981038f3
Split core into descriptors, descriptors.jvm, deserialization, descriptors.runtime
2017-11-10 18:58:31 +01:00
Alexander Udalov
328e906b57
Rename source set "descriptor.loader.java" -> "descriptors.jvm"
...
The new name is more convenient and precise because this module is no
longer only about loading declarations from Java, it also contains
implementation of loading Kotlin declarations from .class files, as well
as type mapping abstractions, JVM ABI specifications, etc.
2017-11-10 18:58:31 +01:00
Ilya Gorbunov
9305903e6c
Remove deprecated pairwise function
...
It was replaced with zipWithNext.
2017-11-07 18:59:33 +03:00
Alexander Udalov
3ead2e9cd4
Use KotlinCoreEnvironment.createForTests in test code
...
createForProduction creates and caches JavaCoreApplicationEnvironment
instance, which can alter behavior of subsequent tests
2017-11-03 14:03:02 +01:00
Ilmir Usmanov
817f79520a
Implement coroutineContext intrinsic
...
This intrinsic allows coroutine to access its context without suspention
and, furthermore, disabling tail-call optimization.
KT-17609: Fixed
2017-11-02 12:45:24 +03:00
Alexey Tsvetkov
313cd4f7bc
Turn off IC for multiplatform projects by default
...
Multiplatform IC is enabled when a corresponding platform property is enabled
and 'kotlin.incremental.multiplatform' is set to `true`.
See KT-20840
2017-10-25 01:12:34 +03:00
Ilya Chernikov
caca7c67f4
Fix "base" jar and "public" jar tasks archive name conflict
...
fixes KT-20877
2017-10-24 20:28:54 +02:00
Ilya Gorbunov
40574949c7
Postpone some task configuration to execution phase
2017-10-24 19:59:45 +03:00
Alexey Tsvetkov
e83f1b138b
Perform non-IC build when JS lib is changed
2017-10-24 16:28:57 +03:00
Alexey Sedunov
87f3d24f9b
Misc: Protect freeArgs with FreezableVar
2017-10-24 15:43:51 +03:00
Ilya Gorbunov
75c8b787c2
Fix maven tests
...
- Add required extra dependencies to install to local repo before test.
- Remove expected warning about runtime bundled into compiler because it is no more.
- Fix basedir reference in kapt-allopen test.
- Fix reflection tests after deprecated members removal.
2017-10-23 21:23:36 +03:00
Ilya Gorbunov
25feb23cfa
Update maven-invoker-plugin to deal with missing mvn.bat in maven 3.3
2017-10-23 21:23:13 +03:00
Alexey Andreev
e0eea15a4c
Fix JS tests failing on Windows
2017-10-23 17:19:51 +03:00
Sergey Igushkin
b921eb5cc9
Fix null returned from listFiles and not handled correctly.
...
(cherry picked from commit 8147ae8)
2017-10-19 23:30:15 +03:00
Ilya Gorbunov
eaa3b3ccf0
Enable publishing for kotlin-annotations-android
2017-10-17 17:32:22 +03:00
Sergey Igushkin
d453a2fc92
Use runtimeJar configuration instead of default for plugin markers.
2017-10-17 14:37:11 +03:00
Sergey Igushkin
0a808528b7
Fix missing ReflectUtil, call the ctor through reflection manually.
2017-10-16 21:48:38 +02:00
Ilya Chernikov
431d47a605
Fix dependencies rewriting and gradle integration tests after applying rewriting
2017-10-16 21:48:36 +02:00
Ilya Chernikov
050403d15b
Use rewriteDeps task on the projects with runtime dependency on embeddable compiler...
...
which are using shaded dependencies
2017-10-16 21:48:35 +02:00
Yan Zhulanow
fed5bddde2
Android Extensions: Initial IC support (KT-14125)
2017-10-16 21:25:42 +03:00
Yan Zhulanow
50ab054883
Kapt: Preserve kapt plugin options if there are also options from compiler plugins (KT-20257)
2017-10-16 21:25:32 +03:00
Ilya Gorbunov
3bea095618
Remove maven poms that are no longer submodules of the main project
2017-10-16 18:48:09 +03:00
Ilya Gorbunov
93efc51843
Fix the obsolete form of -Xdump-declarations-to argument
2017-10-16 18:48:09 +03:00
Ilya Gorbunov
3ab7946c4d
Introduce apiVersionIsAtLeast function to branch in inlines
...
#KT-16028
2017-10-13 18:56:05 +03:00
Sergey Igushkin
260244fa09
(minor) Fix bad file content replacement in a test.
2017-10-12 15:14:07 +03:00
Sergey Igushkin
bd75a47a07
Update Android license string for Gradle tests
...
(cherry picked from commit 2697445)
2017-10-12 14:23:32 +03:00
Dmitry Petrov
75ad20f823
Build compiler, plugin & stdlib with constructor call normalization
...
Required as a workaround for Proguard bug
https://sourceforge.net/p/proguard/bugs/664/
When processing bytecode generated by Kotlin compiler for constructor
call with stack spilling during arguments evaluation, ProGuard performs
an equivalent transformation for the bytecode, but emits invalid stack
frame information.
In JVM 1.6, such invalid stack frames are ignored and re-evaluated by
JVM during bytecode verification.
In JVM 1.8, such invalid stack frames cause VerifyError.
2017-10-12 10:59:57 +03:00
Leonid Stashevsky
13880b18ea
Rename android-annotations -> kotlin-annotations-android
...
also rewrite it's buildscript in kts and add to compiler tests dependencies
2017-10-12 09:11:33 +03:00
Ilya Gorbunov
6fc87c532e
Restore dependency to build kotlin-runtime before BCV tests
2017-10-12 06:06:12 +03:00
Sergey Igushkin
873994545c
Clear Java srcDirs in JS and multiplatform projects.
...
Issue #KT-20217 Fixed
(cherry picked from commit a4f8a5e)
2017-10-11 20:32:59 +03:00
Sergey Igushkin
dff15a3d59
Fix multiplatform projects communication broken if the plugin is loaded
...
more than once in different class loaders.
Issue #KT-20634 Fixed
(cherry picked from commit c65f210)
2017-10-11 20:32:11 +03:00
Sergey Igushkin
f211985332
Re-generate Gradle options to have allWarningsAsErrors updated.
...
Issue #KT-20553 Fixed
2017-10-11 20:31:23 +03:00
Ilya Gorbunov
71e97e32e0
Regenerate gradle options to include warningsAsErrors
2017-10-11 19:23:57 +03:00
Alexander Udalov
5cbcbe4a9c
Support -Werror CLI argument to treat warnings as errors
...
The option is named "warningsAsErrors" in the Gradle plugin
#KT-10563 Fixed
2017-10-11 19:23:46 +03:00
Alexander Udalov
d41c1d572b
Remove deprecated API from package kotlin.reflect
...
This is needed to avoid the split package problem on Java 9 (KT-19258):
both kotlin-stdlib.jar and kotlin-reflect.jar export the package
kotlin.reflect
2017-10-11 19:23:40 +03:00
Alexander Udalov
537a0ce315
Restore kotlin-stdlib-jre7/8 libraries
2017-10-11 19:23:30 +03:00