Commit Graph

91477 Commits

Author SHA1 Message Date
Igor Chevdar 46f448b5d1 [K/N][tests] Fixed ObjC invalid identifiers test
Some identifiers will be invalid in Kotlin 1.7
2022-02-24 15:20:14 +03:00
Igor Chevdar d51eb32c62 [IR] Fixed IrType.classifierOrNull
Supported IrDefinitelyNotNullType explicitly for now
(later it will be better to handle it at the call sites)

Co-authored-by: Svyatoslav Scherbina <svyatoslav.scherbina@jetbrains.com>
2022-02-24 15:20:13 +03:00
Dmitry Petrov 287d988301 JVM minor simplification in CCE 2022-02-24 10:06:48 +00:00
Dmitry Petrov 872b81ac8a JVM prune exception edges in DFA in some cases 2022-02-24 10:06:47 +00:00
Sergey Bogolepov 817f9f13b7 [K/N] Drop androidNativeActivity sample
This sample uses custom API that is not supported and documented.
Thus, it creates wrong impression on how to use Kotlin/Native for NDK.
2022-02-23 17:25:47 +00:00
Sergey Bogolepov 2ecde3e831 [K/N] Enable AndroidProgramType.Standalone by default
^KT-49144 fixed.
2022-02-23 17:25:47 +00:00
Dmitriy Novozhilov faba9c4272 [CLI] Don't register classpath roots twice
There are two ways how content roots are registered in compiler configuration
  in JVM CLI compiler:
1. Directly from arguments
2. From Module, which build from arguments

And there was a problem that both ways used at the same time in some
  circumstances (regular compilation without .xml module file) which
  caused duplication of all content roots.

Ideal solution for this problem is removal of Module usages at all,
  because it looks like redundant abstraction which just complicate
  things, but it's too scary to remove it, because it hove some none
  trivial usages inside compiler. So to fix problem with duplicated
  roots this commit just removes registration of roots from arguments
  if Module is used
2022-02-23 19:33:51 +03:00
Egor 6d1fe3a962 Fixing merge of script fragments + UT 2022-02-23 18:58:29 +03:00
Ivan Kochurkin f751f13c4d [FIR] Fix incompatible KClass<Any> and callable reference Collection::class, ^KT-51272 Fixed 2022-02-23 14:21:59 +03:00
Ivan Kochurkin 31d9313c51 [FIR] Fix "Expected some types" exception, ^KT-51274 Fixed 2022-02-23 14:21:59 +03:00
Ivan Kochurkin 6a3b7a9f91 [FIR] Ignore fake functions in FirExposedVisibilityDeclarationChecker ^KT-51229 Fixed 2022-02-23 14:21:58 +03:00
Ivan Kochurkin 73b45a1254 [FIR] Report UNSUPPORTED on array literals not from annotation classes ^KT-50750 Fixed 2022-02-23 14:21:57 +03:00
Ivan Kochurkin 19285d0569 [FIR] Fix false positive EXPOSED_PARAMETER_TYPE on internal val in constructor of sealed class ^KT-51200 Fixed 2022-02-23 14:21:57 +03:00
Artem Kobzar 9c5c31bdcb build: change the logic for building ts files before js tests run. 2022-02-23 10:28:02 +00:00
Dmitry Gridin 261cac7514 [light classes] avoid resolve in equals
^KTIJ-21209
2022-02-23 11:13:44 +07:00
Ilmir Usmanov 8811f62300 Fix mapping of nullable generic underlying types of inline classes
#KT-32162 Fixed
2022-02-23 01:23:07 +03:00
Mikhail Glukhikh 981f8b1871 FIR: implement resolve of unqualified enum references in when
See KT-16768
2022-02-22 22:13:06 +03:00
Nikolay Krasko f35b4b7515 Update junit to 4.13.1 in kotlin-maven-plugin-test 2022-02-22 21:43:29 +03:00
dependabot[bot] ba45f29959 Bump junit in kotlin-maven-plugin-test
Bumps [junit](https://github.com/junit-team/junit4) from 4.9 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.9...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 21:43:29 +03:00
Nikolay Krasko 82e3ec2eaa Update junit 4.12 -> 4.13.1 in js archetype 2022-02-22 21:43:28 +03:00
dependabot[bot] b5e258b3cf Bump junit 4.12 -> 4.13.1 in maven jvm archetype
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 21:43:27 +03:00
Nikolay Krasko a2cef5c930 Update shadow plugin to 7.1.2
^KTI-728 Fixed
2022-02-22 21:43:27 +03:00
Nikolay Krasko 40482229bd Minor: add md5 signatures 2022-02-22 21:43:26 +03:00
Nikolay Krasko cd08b26518 Drop KannotatorJpsTest.java 2022-02-22 21:43:25 +03:00
Yahor Berdnikau d0ee0d8c38 Migrate KotlinJsLibraryGradlePluginIT tests to new dsl
^KT-45745 In Progress
2022-02-22 18:59:19 +01:00
Ilya Goncharov 637d45c539 [IR] Disable rename of inline symbols
Merge-request: KT-MR-5801
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>
2022-02-22 15:59:02 +00:00
Sergey Bogolepov f010c33958 [K/N] Fix compilation of static libraries for Android
^KT-49145 fixed
2022-02-22 15:37:41 +00:00
Yahor Berdnikau bd6480e7e5 Removed plugin api dependency from 'android-test-fixes' plugin
^KT-49227 In progress
2022-02-22 12:35:06 +00:00
Yahor Berdnikau b87075c344 Add separate test project for warn on different classloaders test
After this update  to have different classpath hash in subprojects,
they should have different sets of plugins applied. But KGP could be
in all of them.

^KT-49227 In Progress
2022-02-22 12:35:06 +00:00
Yahor Berdnikau 9f0df8f6b5 Migrate sam-with-receiver plugin configuration
This change should also trigger proper publishing of this plugin to
Gradle plugin portal.

^KT-49227 In Progress
2022-02-22 12:35:05 +00:00
Yahor Berdnikau d7122bc52a Move kotlinGradleFragmentConsistencyChecker to be a part of class
Fixes 'NoSuchMethodException' on running
'KpmCompilerPluginIT.testTransientPluginOptions' test.

^KT-49227 In Progress
2022-02-22 12:35:05 +00:00
Yahor Berdnikau d0790bb2cb Gradle plugin will publish shadowed jar.
^KT-49227 In Progress
2022-02-22 12:35:05 +00:00
Yahor Berdnikau ab564d371e Remove old code used to configure Gradle plugin publication.
^KT-49227 In Progress
2022-02-22 12:35:04 +00:00
Yahor Berdnikau 4c2434ecf0 Migrate kotlin-lombok configuration
^KT-49227 In Progress
2022-02-22 12:35:04 +00:00
Yahor Berdnikau f8ec91f549 Migrate atomicfu plugin configuration
^KT-49227 In Progress
2022-02-22 12:35:03 +00:00
Yahor Berdnikau 572285cb3b Migrate kotlin-allopen configuration
^KT-49227 In Progress
2022-02-22 12:35:03 +00:00
Yahor Berdnikau 0488924edb Migrate kotlin-noarg configuration
^KT-49227 In Progress
2022-02-22 12:35:02 +00:00
Yahor Berdnikau 539826e611 Migrate kotlin-serialization configuration
^KT-49227 In Progress
2022-02-22 12:35:02 +00:00
Yahor Berdnikau 0af5b34921 Move some Gradle libraries to use common-dependency configuration
^KT-49227 In Progress
2022-02-22 12:35:02 +00:00
Yahor Berdnikau 1d2796d491 Update Gradle plugins publishing setup
Simplifies and make it aligned with official documentation, which
removes some old workarounds. Additionally, it enables publication of
Gradle metadata file, which is required for plugin variants feature
support.

Instead of using 'gradleApi()' as Gradle API dependency, which provides
build current Gradle version api, now setup is using
"dev.gradleplugins:gradle-api" artifacts with specific Gradle version.
This allows to have more fine-grained Gradle support for removed apis.

^KT-49227 In Progress
2022-02-22 12:35:01 +00:00
Yahor Berdnikau e4610d9df6 Update Gradle plugin publish plugin to 0.20.0 version.
^KT-49227 In Progress
2022-02-22 12:35:01 +00:00
Yahor Berdnikau 764dd84803 Update dokka plugin to 1.6.10 version
Move it into 'buildSrc' dependency, so it will be available to
precompiled script plugins.

^KT-49227 In Progress
2022-02-22 12:35:00 +00:00
Svyatoslav Scherbina 0c24f67c21 Native: fix location offsets in SuspendFunctionN implementations
When generating synthetic Function{N+1}.invoke implementations for
SuspendFunction{N} subclasses, use SYNTHETIC_OFFSET instead of
suspend invoke function location offsets.

This location is more suitable for generated synthetic functions.
Additionally, this fixes the case when suspend invoke is fake override:
fake overrides use UNDEFINED_OFFSET, so the generated function was
getting UNDEFINED_OFFSET as well, leading to incorrect debug
information.

Fix suspendFunctionAsSupertype.kt and suspendFunctionAsSupertypeCall.kt
2022-02-22 11:34:28 +00:00
Alexander Shabalin 964edbaf91 [K/N] Reuse mark queue ^KT-51436
Merge-request: KT-MR-5819
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-02-22 11:01:15 +00:00
Yahor Berdnikau 14dc20186d Migrate IncrementalCompilationMultiProjectIT test to new dsl
^KT-45745 In Progress
2022-02-21 23:49:12 +03:00
Yahor Berdnikau a5c1febf88 Convert IncrementalJavaChangeIT test to new tests dsl
^KT-45745 In Progress
2022-02-21 23:49:11 +03:00
Yahor Berdnikau f8a3b8bf1f Add helper to get paths related to the project dir
^KT-45745 In Progress
2022-02-21 23:49:11 +03:00
Yahor Berdnikau 01d5b92b33 Add additional build options required for incremental tests
^KT-45745 In Progress
2022-02-21 23:49:10 +03:00
Mikhail Glukhikh 8274c43ee6 Make useExperimental non-CLI argument 2022-02-21 22:32:53 +03:00
Alexander Udalov 96ba4bb201 Add test to check that KT-30172 is fixed 2022-02-21 20:31:05 +01:00