Alexander Likhachev
feccc5785f
[Build] Revert workaround introduced in 2f39a656
2022-04-20 14:27:18 +00:00
Alexander Likhachev
41daf39000
[Build] Fix deprecation warnings in KGP integration tests
2022-04-20 14:27:17 +00:00
Alexander Likhachev
19a76fa16d
[Build] Update Gradle to 7.3.3
2022-04-20 14:27:17 +00:00
Yaroslav Chernyshev
36564c8f3a
Revert "Publish modules required for Kotlin Gradle Tooling in IDE"
...
This reverts commit 20f9861264 .
2022-04-20 15:16:58 +02:00
Yaroslav Chernyshev
20f9861264
Publish modules required for Kotlin Gradle Tooling in IDE
...
Modules to be published are: kotlin-gradle-plugin-idea and
kotlin-gradle-plugin-kpm-android
2022-04-20 14:57:18 +02: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
Artem Kobzar
333440dfc6
fix: function inlining without blocks for else statement.
2022-04-20 09:28:45 +00:00
Ilya Kirillov
207f2c7981
[symbol fir] add small performance optimization for checkIsInheritor
2022-04-19 23:58:12 +02:00
Ilya Kirillov
cff576844e
[symbol fir] fix checkIsInheritor in LC
...
^KT-51240 fixed
2022-04-19 23:58:11 +02:00
Alexander Udalov
2e515f3945
Prohibit JVM target 1.6
...
But still compile stdlib, reflect, kotlin.test and scripting runtimes
with JVM target 1.6 to simplify migration from Kotlin 1.6 to 1.7.
#KT-45165 Fixed
2022-04-19 22:54:40 +02:00
Alexander Udalov
1e800b8e18
Advance JVM target to 1.8 for kotlinx-metadata-jvm
2022-04-19 22:54:40 +02:00
Alexander Udalov
45f87bc71a
Advance JVM target to 1.8 for kapt, AE, parcelize runtimes
2022-04-19 22:54:40 +02:00
Alexander Udalov
04cba8d767
Remove usage of JVM target 1.6 from HierarchicalMppIT
...
#KT-45165
2022-04-19 22:54:40 +02:00
Alexander Udalov
ef6d30dd51
Remove usages of JVM target 1.6 from compiler tests
...
#KT-45165
2022-04-19 22:54:40 +02:00
Alexander Udalov
f134575b86
Gradle: remove setJvmTargetFromAndroidCompileOptions
...
This flag was introduced for KT-21030 (see also KT-31027), to change JVM
target 1.6 to 1.8 if Android options declare source/target compatibility
with JDK 1.8.
After JVM target 1.8 became the default for Kotlin (KT-29405), the logic
was changed in e9436da858 to the reverse: if Android options declare
source/target compatibility 1.6, then also use JVM target 1.6. Note that
at that point, the problem with usages of default interface methods
described in KT-21030 became obsolete, because it described a runtime
crash when Kotlin tooling failed to recognized that JVM target >= 1.8
should be used -- which was now always the case, unless you explicitly
opted in with `-jvm-target 1.6` (which would make little sense).
Now that we're removing support for JVM target 1.6 in KT-45165, there is
no use in this flag anymore. Even if Android options declare
source/target compatibility 1.6, Kotlin should still use the minimal
supported version for the JVM target, which is now 1.8. And since 1.8
is the default, no changes to the compiler options are needed.
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
Ilya Kirillov
ee8de63497
[low level api] fix creating libraries session with non-jvm libraries
2022-04-19 19:42:11 +02:00
Ilya Kirillov
3b4eb2d788
[kotlin fir] fix creating symbol not in analysis scope
...
^KTIJ-21504 fixed
2022-04-19 19:34:21 +02:00
Yahor Berdnikau
25d6439471
Update AGP version in 'android-test-fixes' plugin
...
This aligns version with other Gradle plugins.
2022-04-19 18:15:05 +02:00
Mikhail Glukhikh
16d5c28622
Unmute FIR spec tests muted for KT-38340
2022-04-19 15:56:00 +00:00
Sergey Bogolepov
21399b4edd
[K/N] Update documentation on building and using LLVM
2022-04-19 14:27:33 +00:00
Sergey Bogolepov
404cc54bd4
[K/N] Update on code coverage status.
2022-04-19 14:27:32 +00:00
Yahor Berdnikau
6ed0efedd3
Add workaround for Gradle dependency resolution error
...
Gradle throws unexpected error on dependency resolution without
this workaround.
Related to KT-51837
2022-04-19 15:38:33 +02:00
Nikolay Krasko
f7a53a1b24
Force using 2.8.9+ gson version as a dependency
...
Mitigate https://github.com/google/gson/pull/1991
^KT-51837 Fixed
2022-04-19 15:38:30 +02:00
Artem Kobzar
315ff0beeb
fix(KT-38262): add ability to create classes with methods that have reserved keyword as an identifier.
2022-04-19 13:20:13 +00:00
Artem Kobzar
9d0c7a55b1
chore: rename method and remove FIXME comment.
2022-04-19 13:14:22 +00:00
Artem Kobzar
93dcc48512
fix(KT-50157): prevent boxing for char comparison.
2022-04-19 13:14:22 +00:00
Dmitriy Dolovov
c1a3bf1343
[Native][tests] Update testing information in HACKING.md
2022-04-19 16:02:46 +03:00
Ilya Kirillov
3525ddaf12
[analysis api fir] fix resolving of compiled type alias
...
^KT-50868 fixed
2022-04-19 12:57:28 +00:00
Svyatoslav Scherbina
57fe6721e3
Bump Kotlin/Native version to 1.7.20-dev-260
2022-04-19 12:08:33 +00:00
Victor Petukhov
baedd285e8
[FE] Postpone enabling io.reactivex.rxjava3.annotations in the strict mode by default till 1.8
...
^KT-50845 Fixed
2022-04-19 11:58:37 +00:00
Vyacheslav Gerasimov
bfe8306f62
Don't finalize gradle tests with cleanTestKitCacheTask on Teamcity
...
It may fail on Windows because of locked files and not really necessary
because TeamCity can clean up checkout directories when space needed
2022-04-19 11:45:23 +00:00
Vyacheslav Gerasimov
202347865d
Move gradle testKit cache to the build directory
2022-04-19 11:45:23 +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
cae3d8a672
[Build] Add ability to disable Javadoc publishing on CI
2022-04-19 11:30:37 +00:00
Dmitriy Novozhilov
77b3823f78
[Build] Keep some asm classes in proguard rules
...
Those classes are needed for test framework
2022-04-19 10:49:46 +00:00
Dmitriy Novozhilov
5ebac4c6ed
[Build] Add publication of source of test framework
2022-04-19 10:49:46 +00:00
Dmitriy Novozhilov
4e4c4c8d39
[FE] Make ContextReceivers feature not unstable
...
It's already impossible to use declarations with context receivers
if this feature is not enabled, so there is no need to additionally
poison binaries with prerelease flag if this feature is enabled
2022-04-19 10:49:45 +00:00
Ilya Kirillov
9a562a0293
[analysis api] optimize search for declarations in IDE
2022-04-19 12:37:49 +02:00
Ilya Kirillov
9088da7b33
[fir] use correct session for supertype symbol search
...
During supertype resolution we may encount a supeclass came from other source session.
In this case, we should search for it containing FirFile inside that session
2022-04-19 12:37:49 +02:00
Ilya Kirillov
7420933bff
[low level api] remove unused code
2022-04-19 12:37:48 +02:00
Ilya Kirillov
9a18598606
[low level api] rework components structure, add ScopeSession caches
2022-04-19 12:37:47 +02:00
Alexander Likhachev
079400796a
[Build] Validate Gradle plugins on install
2022-04-19 00:39:25 +03: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
64aae756d1
[Build] Avoid project usages in jdk6 tests
...
#KT-44611 In Progress
2022-04-19 00:39:24 +03:00
Alexander Likhachev
20560d6101
[Build] Update test-distribution-plugin to 2.2.3
...
#KT-44611 In Progress
2022-04-19 00:39:23 +03:00
Alexander Likhachev
be48035917
[Build] Avoid project usage in DexMethodCountStats
...
#KT-44611 In Progress
2022-04-19 00:39:23 +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
Alexander Likhachev
e42bed07fa
[Build] Temporary disable hmpp metadata tasks with CoCa
...
Should be reverted when KT-49933 is resolved
#KT-44611 In Progress
2022-04-19 00:35:35 +03:00
Alexander Likhachev
df55745b61
[Build] Do not use project at execution time in jar tasks
...
#KT-44611 In Progress
2022-04-19 00:35:35 +03:00