Commit Graph

86160 Commits

Author SHA1 Message Date
Vyacheslav Gerasimov edea9b0db3 Suppress deprecated ConfigureUtil in mppPresetFunctionsCodegen.kt
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov a5d31fe2e2 Build: Fix warnings in pill
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov 8b5db6473b Fix deprecated ConfigureUtil usages in KGP
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Yahor Berdnikau c1ba586c96 Replace removed Gradle methods with reflection call.
This is required to update Kotlin repo to Gradle 7.1.
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov af541dc6d3 Build: Fix usages of deprecated ConfigureUtil in kotlin-native
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov 2d06cf674b Build: Fix usages of deprecated convention in kotlin-native
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov 8d2fafa3ce Build: Fix various warnings in build files
Required for Gradle 7+ #KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov 5d6e8e42aa Build: Update verification metadata 2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov 10abdbef1c Build: Fix kotlin-native tasks input annotations
Required for Gradle 7+ #KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov d9444da9b5 Build: Fix NativeInteropPlugin for Gradle 7
Required for Gradle 7+ #KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov f91d6958a8 Build: Rework runtimeJar helper and drop redundant configuration
#KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov ab146bd6d4 Build: Fix deprecated Gradle configurations usages
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Vyacheslav Gerasimov dbedff3c62 Build: Move build cache configuration to settings.gradle
#KTI-559
2021-09-26 18:17:54 +03:00
Vyacheslav Gerasimov 997bde056f Build: Upgrade Gradle to 7.1.1
#KTI-559
2021-09-26 18:17:54 +03:00
Dmitriy Novozhilov e483b9b52b Advance bootstrap to 1.6.20-dev-2497 2021-09-24 22:19:43 +03:00
Nikolay Lunyak 1a9f63efeb [FIR] Fix INSTANCE_ACCESS_BEFORE_SUPER_CALL 2021-09-24 16:50:51 +00:00
Nikolay Lunyak 9790b81f38 [FIR] Fix missing REDUNDANT_VISIBILITY_MODIFIER 2021-09-24 16:48:51 +00:00
Ilya Gorbunov 7666377565 Control Duration init block assertions on JVM with -ea option
On other platforms enable them unconditionally
2021-09-24 16:17:54 +00:00
Ilya Gorbunov 21a9198fff Bring back Duration construction extensions KT-46229
Return the extension properties for constructing Duration from numbers,
but this time place them in Duration.Companion rather than on top-level.

- provide the new set of construction extension properties
  in companion of Duration
- leave top-level extension properties experimental,
  increase their deprecation level to ERROR,
  propose the extension properties in companion instead.
- leave Duration companion static factory functions experimental,
  deprecate them and propose the extension properties in companion instead.
2021-09-24 16:17:53 +00:00
Ilya Gorbunov 96611de344 Stabilize Duration, DurationUnit and related top-level functions KT-46784
Co-authored-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
2021-09-24 16:17:53 +00:00
Jinseong Jeon ad18343413 FIR: resolve types in accessors when not resolving accessors 2021-09-24 18:56:23 +03:00
sebastian.sellmair c51d37d65d [Gradle] [MPP] CInteropPropagatedDependencies: Consider associate compilations
^KT-48856 Verification Pending
2021-09-24 13:13:01 +00:00
sebastian.sellmair e7d8804bdf [Gradle] [MPP] Implement integration test to cover ^KT-48856 2021-09-24 13:13:00 +00:00
Dmitry Petrov 9799ad7bd8 Make optimized loop over unsigned array, indices, withIndex JVM-specific 2021-09-24 12:12:43 +03:00
Dmitry Petrov be28b3c74d JVM_IR KT-29822 KT-48669 loop over unsigned array, indices, withIndex 2021-09-24 12:12:42 +03:00
Dmitry Petrov 2cc6b589f3 JVM_IR KT-48640 generate for-in-downTo as a counter loop 2021-09-24 12:12:41 +03:00
Ilya Goncharov 42e8017cc7 [JS IR] Revert removing of safeProperty(Get|Set) 2021-09-24 07:07:12 +00:00
Ilya Goncharov 064744fae7 [JS IR] Remove redundant legacy property access property 2021-09-24 07:07:12 +00:00
sebastian.sellmair 440856f593 [Gradle] [MPP] Add TODO comment for post-commit review ^KT-48885
^KT-46273
2021-09-23 18:48:52 +00:00
sebastian.sellmair 70fde9700f [Gradle] [MPP] Add further explicit check for orphan source sets
^KT-46273 Verification Pending
2021-09-23 18:48:52 +00:00
sebastian.sellmair da361a030e [Gradle] [MPP] Fix 'getDependenciesTransformation' for ^KT-46273
This setup requires a 'jvm like' target and an orphan source set, which
depends on 'commonTest'. This orphan will not participate in any
compilation and therefore will not have any platform.

The code expected at least one test task for this source set
and therefore at least one test framework.

^KT-46273 Verification Pending
2021-09-23 18:48:51 +00:00
Ilya Gorbunov 1960fe65b8 Minor: more reliable empty range check in RangeIterationTest 2021-09-23 21:06:35 +03:00
Ilya Gorbunov 0fb25ccc2b Minor: update copyright year in Native stdlib generated sources 2021-09-23 21:06:17 +03:00
Ilya Gorbunov b9f78d002a Do not duplicate Range/Progression sources in Native runtime 2021-09-23 21:06:17 +03:00
Denis.Zharkov 586dcae141 FIR: Avoid loading symbols when mapping Java type arguments 2021-09-23 16:58:26 +03:00
Denis.Zharkov 38fa900e56 FIR: Optimize case with no annotations on package 2021-09-23 16:58:26 +03:00
Denis.Zharkov 37785eb244 FIR: Rename KotlinDeserializedJvmSymbolsProvider -> JvmClassFileBasedSymbolProvider 2021-09-23 16:58:25 +03:00
Denis.Zharkov 0aa8181960 FIR: Rename AbstractFirDeserializedSymbolsProvider -> AbstractFirDeserializedSymbolProvider 2021-09-23 16:58:25 +03:00
Denis.Zharkov 54a97a860a FIR: Minor. Rename JavaClassConverter -> FirJavaFacade 2021-09-23 16:58:24 +03:00
Denis.Zharkov 9902d36d57 FIR: Minor. Rename 2021-09-23 16:58:24 +03:00
Denis.Zharkov 1fc2f13a35 FIR: Pull creation of JavaClassConverter to session factory 2021-09-23 16:58:22 +03:00
Vyacheslav Gerasimov b6e3399cbd Build: Add missing verification metadata for httpcore 4.2.1
We apply prepareSonatypeStaging.gradle conditionally which brings some
additional dependencies only during release publishing to maven central

 #KTI-650

(cherry picked from commit 3f1c3ea6707210c2bcc0d9209682e45a6efceef3)
2021-09-23 15:10:50 +02:00
Alexander Shabalin da25e1bf21 [K/N] Enable a missing test 2021-09-23 12:57:29 +00:00
Hung Nguyen aea693e309 KT-45777: Ignore faulty groovy-2.5.11 jar
Test: The following should pass
    - Step 1: ./gradlew publish
    - Step 2: ./gradlew publish compileTestKotlin -Pbootstrap.local=true
        -Pbootstrap.local.path=/path/to/kotlin/build/repo
        -Pkotlin.incremental.useClasspathSnapshot=true
2021-09-23 12:51:06 +03:00
Hung Nguyen a6d0fcc676 KT-45777: Support compile avoidance
Test: Updated existing incremental compilation integration tests
2021-09-23 12:51:03 +03:00
Hung Nguyen f400305cc6 KT-45777: Handle problematic classes when taking snapshots
There are certain classes that we are not yet able to take snapshots of,
either because the class is faulty, or there is a bug in our code.

For these classes, we will use a special snapshot and fall back to the
existing approach to compute classpath changes.

In the short run, we will update this list of cases as they arise. In
the long run, we will:
  - Fix all cases that are caused by bugs in our code.
  - Decide what to with the faulty jars in general and remove the list.

Test: The following should pass
  - Step 1: ./gradlew publish
  - Step 2: ./gradlew publish -Pbootstrap.local=true
              -Pbootstrap.local.path=/path/to/kotlin/build/repo
              -Pkotlin.incremental.useClasspathSnapshot=true
2021-09-23 12:47:51 +03:00
Pavel Kunyavskiy fb875c484d [K/N] Implement instantiating of annotation class 2021-09-23 06:59:34 +00:00
Pavel Kunyavskiy a40022efcd Generate IR for annotation class constructors. 2021-09-23 06:59:33 +00:00
Pavel Kunyavskiy 773c82ae48 Refactor AnnotationImplementationLowering
- Replaced UNDEFINED_OFFSET with SYNTHETIC_OFFSET, it's required by
  Native backend codegen
- Fixed missing overridden symbols
- Enforce adding fakeoverrides for members not overridden by backend
- Support more points for platform customisation
2021-09-23 06:59:32 +00:00
Jinseong Jeon d9424fa092 FIR IDE/LC: rename origin of constant values 2021-09-23 00:11:26 +02:00