Sergey.Shanshin
facde26371
Added serialization support for the kotlin.time.Duration class as built-in
2022-06-07 20:37:05 +00:00
Dmitriy Novozhilov
f5637e5077
[FIR] Look for jar with plugin annotations in system property and by direct path in tests
...
This is needed to make those tests work in JPS, because corresponding
system property is set only by gradle
2022-06-07 14:12:27 +00:00
Dmitriy Novozhilov
66c2679673
[Plugins] Extract parts of cli modules which were used from IDE into common modules
...
This is needed to avoid IDE dependencies on cli modules, because they
include FIR classes, which are inaccessible in regular Kotlin IDE plugin
2022-06-07 14:12:26 +00:00
Dmitriy Novozhilov
83d0a3e7a3
[FIR] Extract FirPluginKey into :core:compiler.common and rename it to GeneratedDeclarationKey
...
This is needed to avoid dependency on :compiler:fir:fir2ir module in
backend parts of compiler plugins. It will allow to publish those
parts into jars for IDE, where they are needed for working of debugger
and bytecode toolwindow
2022-06-07 14:12:25 +00:00
Dmitriy Novozhilov
a84ece7233
[Lombok] Add implementation of plugin for FIR
2022-06-07 14:12:25 +00:00
Dmitriy Novozhilov
e58e86932c
[FIR] Pass declared member scope to methods of declaration generation extension
2022-06-07 14:12:24 +00:00
Dmitriy Novozhilov
430ea414a9
[Lombok] Convert tests with compilation errors to diagnostic tests
2022-06-07 14:12:23 +00:00
Dmitriy Novozhilov
23c69f8d17
[FIR] Add to new types of annotation predicates
...
- `ParentAnnotatedWith` matches declarations, which parent is annotated
- `HasAnnotatedWith` matches declarations, which have at least one
direct child with annotation
Also, `DeclarationPredicate.Any` is removed, because there is no
intention to support lookup for all declarations in module
^KT-52486 Fixed
2022-06-07 14:12:22 +00:00
Dmitriy Novozhilov
7c19f3b1ca
[Lombok] Migrate tests to new test infrastructure
2022-06-07 14:12:21 +00:00
Dmitriy Novozhilov
c9c24d27d7
[Lombok] Fix style of FILE directive in testdata
2022-06-07 14:12:21 +00:00
Dmitriy Novozhilov
dcd96932aa
[Lombok] Adapt format of codegen tests to standard box() style
2022-06-07 14:12:20 +00:00
Dmitriy Novozhilov
f34061acc1
[FIR] Fix resolution of plugin annotations annotated with meta annotations
...
There was a problem, that after founding of new annotation with meta
annotation we did not come back to previous files, which may contain
declarations with this new annotation
2022-06-07 14:12:19 +00:00
Dmitriy Novozhilov
c2bf68c9d3
[Lombok] Reorganize module structure of Lombok compiler plugin
...
Also rename its jar to `kotlin-lombok-compiler-plugin`
^KT-52468 Fixed
2022-06-07 14:12:19 +00:00
Dmitriy Novozhilov
5d0655247f
[NoArg] Add implementation of plugin for FIR
2022-06-07 14:12:18 +00:00
Dmitriy Novozhilov
8acb8aa043
[FIR] Introduce utility service for plugins for matching common predicate pattern
2022-06-07 14:12:17 +00:00
Dmitriy Novozhilov
60df531c02
[NoArg] Migrate NoArg tests to new test infrastructure
2022-06-07 14:12:16 +00:00
Dmitriy Novozhilov
8fc4962213
[NoArg] Reorganize module structure of NoArg plugin
2022-06-07 14:12:16 +00:00
Dmitriy Novozhilov
0f757c300a
[Atomicfu] Make Atomicfu compatible with K2
...
Atomicfu is backend-only plugin, so it compatible with both frontends
2022-06-07 14:12:15 +00:00
Dmitriy Novozhilov
259862d294
[Parcelize] Reorganize module structure of Parcelize plugin
...
Also mark parcelize as compatible with K2
2022-06-07 14:12:15 +00:00
Dmitriy Novozhilov
2a7dc1cc0c
[AllOpen] Reorganize module structure of AllOpen plugin
...
This scheme will be common for all compiler plugins with K1 and K2 support:
- `plugin-common` contains classes shared with K1 and K2 implementations (if any)
- `plugin-k1` contains implementation for K1 compiler
- `plugin-k2` contains implementation for K2 compiler
- `plugin-backend` contains implementation for backend extensions (if any)
- `plugin-cli` is module for registration of plugin in CLI compiler
- `plugin` is a root module with tests and all submodules embedded
This structure is needed to distinguish parts related to different frontends,
which is needed for proper dependencies settings for Kotlin IDE plugins
2022-06-07 14:12:15 +00:00
Dmitriy Novozhilov
22ebea8174
[FIR] Support FIR version of all-open plugin
2022-06-07 14:12:14 +00:00
Dmitriy Novozhilov
4003ca0691
[FE] Add ability to set compatibility of plugin with K2 in ComponentRegistrar
2022-06-07 14:12:14 +00:00
Dmitriy Novozhilov
b0c2332b4c
[AllOpen] Fix package structure
2022-06-07 14:12:11 +00:00
Dmitriy Novozhilov
01664da0a3
[AllOpen] Migrate AllOpen tests to new test infrastructure
2022-06-07 14:12:11 +00:00
Nikolay Lunyak
ac1fb07102
[FIR JS] Add checkers.js
2022-06-02 13:47:28 +00:00
Nikita Bobko
69cf454747
Drop org.jline and org.fusesource.jansi redundant dependencies
...
Reasons:
1. Those modules don't use this dependency
2. Unbundled JPS feature in IDE downloads all transitive dependencies of
kotlin-dist-for-jps-meta => downloads org.jline and puts it into dist
which is not needed
2022-05-30 17:09:28 +02:00
Mads Ager
5147a9e42d
Remove code that was migrated to android studio repo.
2022-05-24 14:52:01 +02:00
Yahor Berdnikau
e25778a719
Fix ConcurrentModificationException
...
This exception is happening on build configuration trying to remove
default jar task artifacts from published one. I've set 'jar' task
to be always disabled instead and just add shadow jar to artifacts.
2022-05-24 07:58:36 +00:00
Ivan Kylchik
f3252334b2
Move most of ir utils from backend.common to ir.tree
2022-05-18 21:20:03 +03:00
Ivan Kylchik
51ccc32a3f
Update test data after introducing IntrinsicConstEvaluation annotation
2022-05-18 21:19:57 +03:00
Ilya Muradyan
00819c421f
[REPL] Report script codegen errors in advance
2022-05-18 10:02:58 +03:00
Vladimir Dolzhenko
efd5beb49b
IJ file type optimizations based on extension
...
#KTIJ-21668
Merge-request: KT-MR-6288
Merged-by: Vladimir Dolzhenko <Vladimir.Dolzhenko@jetbrains.com >
2022-05-17 14:46:00 +00:00
Vyacheslav Gerasimov
6bb36bc5e1
Fix flaky android robolectric tests
...
#KTI-842
2022-05-10 23:42:55 +04:00
Vyacheslav Gerasimov
7157a54155
Fix unnecessary usages of Locale.getDefault()
2022-05-06 22:08:25 +00:00
Simon Ogorodnik
0b88748623
KT-52284 Kapt. Report error for kapt run with K2
2022-05-06 15:25:41 +00:00
Vyacheslav Gerasimov
dcd17e41a4
Fix capitalization related deprecation warnings
2022-05-04 19:15:01 +00:00
Yahor Berdnikau
e38ca74927
Fix compilation warnings in 'pill-importer' project
...
These warnings have fail compilation with bootstrap.
2022-05-03 11:47:30 +00:00
Ilya Chernikov
49902bb851
IR Scripting: allow to specify nullable types for provided props...
...
but only explicitly. This does not fix a breaking change described in
#KT-52120, because it seems the correct behavior, but it allows
to "workaround" the problem by specifying nullability explicitly.
Also improve handling of nullable bindings in JSR-223.
#KT-49173 fixed
#KT-51213 fixed
2022-04-29 11:03:11 +00:00
Simon Ogorodnik
58885a1b07
KT-52217 Rename 'use-fir' to 'use-k2', update message
2022-04-28 15:42:42 +00:00
Simon Ogorodnik
1c90d8a960
KT-52038 Kapt. Disable FIR for kapt run automatically
2022-04-28 15:42:41 +00:00
Victor Petukhov
8e834fc7bb
[FIR] Move subtyping helpers into TypeUtils.kt
2022-04-27 19:50:17 +00:00
Zalim Bashorov
64bcd8c91e
[JS, atomicfu] Stop applying unused node plugin
2022-04-23 14:06:24 +02:00
Ilya Chernikov
af933b9d3d
Switch to FastJarFS for scripting
...
#KT-51731 fixed
2022-04-20 19:15:12 +00:00
Vyacheslav Gerasimov
c8f2872a07
Fix flaky FIR tests
...
failing with 'Jar with annotations does not exist. Please run
:plugins:fir-plugin-prototype:plugin-annotations:jar'
2022-04-20 12:54:08 +03:00
Alexander Udalov
45f87bc71a
Advance JVM target to 1.8 for kapt, AE, parcelize runtimes
2022-04-19 22:54:40 +02:00
Aleksei.Cherepanov
3d8f140d6b
[JPS] Fix incremental build after changing Java enum used in Kotlin when
...
EnumWhenTracker implemented for tracking changed java enum class items, that used in kotlin when expression.
#KT-47824 Fixed
2022-04-19 18:39:41 +00:00
Vyacheslav Gerasimov
d9e8f0c180
Build: Rework test workers calculation with respect to available memory
...
#KTI-787
2022-04-19 11:45:23 +00:00
Alexander Likhachev
eda759ba31
[Build] Avoid buildscript root capture into task action
...
#KT-44611 In Progress
2022-04-19 00:39:24 +03:00
Alexander Likhachev
899964ba30
[Build] Update gradle-node-plugin to 3.2.1
...
#KT-44611 In Progress
2022-04-19 00:39:21 +03:00
Ivan Kochurkin
8c7fad9a5e
[FIR] Support of type arguments in annotations ^KT-48444 Fixed
2022-04-18 15:36:19 +00:00