Commit Graph

11107 Commits

Author SHA1 Message Date
Alexander Udalov abaffeddab Remove LocalClassProtoTestGenerated, replace with kotlinp tests
This test uses a hacky mode of the compiler which is not worth it to
support further (especially in K2), `USE_SINGLE_MODULE`, where
everything is compiled in one module. The purpose of the test is just to
check that metadata for local/anonymous classes is written correctly.
So we can replace it with the tests on kotlinp, which uses
kotlinx-metadata-jvm and dumps all loaded metadata to text.

This replacement is not perfect, in particular because it won't check
that the reflection machinery is able to load this metadata, and because
it won't check that annotations are loaded correctly from the bytecode.
But IMHO it's good enough, there are box tests on reflection on local
classes (e.g. `reflection/annotations/localClassLiteral.kt`), so this
way is better than having to support the weird compiler mode for just
one test.
2022-08-31 20:54:50 +02:00
nataliya.valtman d22cccdc4d Add property to protect sensitive data in http reports
#KT-53773 Fixed
2022-08-31 15:33:57 +00:00
Anton Lakotka 2e7a9f737f fixup! Update defFileProperty initialisation and remove empty method from test 2022-08-31 11:06:37 +00:00
Anton Lakotka 073d75179d [Gradle] CInterop Task input should be modifiable through Cinterop DSL
For configuration cache compatibility reasons Project object
was removed from DefaultCInteropSettings and instead
related factory services were used.

^KT-53704 Verification Pending
2022-08-31 11:06:37 +00:00
Anton Lakotka 45581c11fa [Gradle] Add test for KT-53704
CInterop Task input should be modifiable through Cinterop DSL
2022-08-31 11:06:37 +00:00
Nikolay Krasko 01f567a16d Disable yarn and npm tasks from the build when tests are not active
Kotlin build shouldn't depend on npm during while deploy artefacts tasks

^KTI-887 Fixed
^KT-53687 Related
2022-08-30 22:15:16 +00:00
Alexander Likhachev 2a53273f4d [Gradle] Add tests for KT-53686 2022-08-30 14:49:30 +00:00
Alexander Likhachev fa98430a67 [Gradle] Use valid XCFramework name in fat framework configuration
#KT-53686 Fixed
2022-08-30 14:49:30 +00:00
Alexander Likhachev 798f0efcf6 [Gradle] Prevent false positive warning about XCFramework names mismatch
#KT-53686
2022-08-30 14:49:29 +00:00
Alexander Likhachev 3836915012 [Gradle] Skip XCFramework task when there's no input frameworks
#KT-53686
2022-08-30 14:49:29 +00:00
Ilya Gorbunov 8b95257143 Reduce the chance shuffle produces an identical permutation in test (part 2) 2022-08-29 22:14:24 +02:00
Artem Kobzar 8b826a865b [K/JS, K/WASM] feat(Enum.entries): add support of new enum static field for JS and WASM. 2022-08-29 16:04:12 +00:00
Yahor Berdnikau 0d2e9e7013 Change 'KotlinCompile.classpath' task input deprecation level to ERROR
^KT-51679 Fixed
2022-08-29 08:36:17 +00:00
nataliya.valtman 30dd848b43 Add custom_values_limit property to configure build scan report
#KT-53732 Fixed
2022-08-26 15:22:12 +00:00
nataliya.valtman 214586c8ee Fix repeating custom values in build scan. Refactor build statistic 2022-08-26 15:22:12 +00:00
Sergey Bogolepov 2e22a5bd41 [K/N] Update annotations documentation for the new MM 2022-08-26 14:35:05 +00:00
Sebastian Sellmair 979ec77f53 [Gradle][MPP] Implement additional MultiplatformAndroidSourceSetLayoutV2DiagnosticsTest
KT-53709
2022-08-26 13:51:28 +00:00
Sebastian Sellmair 7df34011ec [Gradle][MPP] MultiplatformLayoutV2MultiplatformLayoutV1StyleSourceDirUsageChecker: Don't emit warning on ambiguous SourceSet
^KT-53709 Verification Pending
2022-08-26 13:51:28 +00:00
Sebastian Sellmair 10878e5967 [Gradle][MPP] Implement initial MultiplatformAndroidSourceSetLayoutV2DiagnosticsTest
... to cover KT-53709
2022-08-26 13:51:27 +00:00
Sebastian Sellmair d4bded85cd [Gradle][MPP] Increase .toString() readability for KotlinAndroidSourceSetLayoutChecker.Diagnostic
KT-53709
2022-08-26 13:51:27 +00:00
Sebastian Sellmair 5a447a823f [Gradle][MPP] Introduce DiagnosticReporter and Diagnostic APIs...
... for KotlinAndroidSourceSetLayoutChecker

KT-53709
2022-08-26 13:51:27 +00:00
Ilya Gorbunov 38099e11c3 Remove rangeUntil extensions that are now shadowed by members #KT-52933 2022-08-25 19:24:11 +00:00
Anton Lakotka 564e3b064a [Gradle] Make target lifecycle task depend on classes compilation outputs
Not just on compile task

^KT-31459 Verification Pending
2022-08-25 14:56:35 +00:00
Anton Lakotka 7c083faea7 [Gradle] Test that task jvmMainClasses depends on compileJava
^KT-31459
2022-08-25 14:56:34 +00:00
Alexander Likhachev 3d8d3465d9 [Gradle] Revert removed testAndroidExtensionsIncremental AGP IT
It was disabled because of KT-38622 and then accidentally removed. This commit reverts the removal and makes the test to use the experimental classpath snapshots IC
2022-08-25 15:31:31 +02:00
Yahor Berdnikau e6150f5ef8 Fix test project gradle debug flag is wrongly propagated to the build 2022-08-25 12:43:16 +00:00
Yahor Berdnikau 409a85f552 Split dependency management code into 3 files
^KT-41642 Fixed
2022-08-25 12:43:16 +00:00
Yahor Berdnikau 632009345d Add JS stdlib dependency only when JS target is set
^KT-41642 In Progress
2022-08-25 12:43:16 +00:00
Yahor Berdnikau eaf6177015 Add kotlin-test variant dependency in a lazy way
^KT-41642 In Progress
2022-08-25 12:43:15 +00:00
Yahor Berdnikau 4441033134 Add kotlin-stdlib dependency in a lazy way
^KT-41642 In Progress
2022-08-25 12:43:15 +00:00
Pavel Kunyavskiy 895a8ff149 [K/N] Basic support of Enum.entries for Native
No forward compatibility yet, with old klib IR linker will fail.

^KT-53324
2022-08-25 12:40:30 +00:00
Ilya Gorbunov 64a11c555f Suppress extension shadowing member for rangeUntil extensions #KT-52933
Until the next bootstrap where they can be removed entirely
2022-08-24 22:22:53 +00:00
Ilya Gorbunov 203a00151d rangeUntil member operator in builtins #KT-52933 2022-08-24 22:22:53 +00:00
konstantin.tskhovrebov f3fc5cbc42 [KT-53695] Cocoapods: use special task for framework copying. 2022-08-24 14:28:23 +00:00
Martynas Petuška c96e1f70fb KT-52951 (#4881)
* KT-52951

Configurable js test browser target

* Update KotlinKarma.kt

Comma separated multiple browser support

* Update KotlinKarma.kt

* Use PropertiesProvider
2022-08-24 13:33:02 +03:00
Yahor Berdnikau 55e1061862 Mark testFixtures dependencies as optional in published pom
Same as Gradle does by default.

^KT-53670 Fixed
2022-08-24 11:19:09 +02:00
konstantin.tskhovrebov 45fc5fb76b [KT-47355] Fix sym link paths in macos fat framework. 2022-08-23 17:06:33 +02:00
Yahor Berdnikau 55cfb3af20 Remove deprecated GFileUtils usage
^KT-53615 Fixed
2022-08-23 12:24:04 +00:00
Alexander Likhachev 3a1d83e7c5 [Gradle, K/N] Add test for KT-52303 2022-08-22 21:10:38 +00:00
Alexander Likhachev d7c1f6765e [Gradle, K/N] Compute binaries output dir lazily
#KT-52303 Fixed
2022-08-22 21:10:38 +00:00
Vsevolod Tolstopyatov 5054e301be [stdlib] Improve EnumEntries
* Provide short-circuit methods for contract "EnumEntries contains all
  enum entries"
* Make EnumEntries serializable
* Introduce more convenient overload for other backends

#KT-53152


Merge-request: KT-MR-6867
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
2022-08-22 16:50:28 +00:00
Dmitriy Novozhilov cc00dcc038 [Serialization] Reorganize module structure 2022-08-22 17:23:18 +03:00
Rick Clephas 6ae517a2df [Native] Add HiddenFromObjC and ShouldRefineInSwift annotations 2022-08-22 16:10:44 +02:00
Nikita Bobko e2cda2a272 3/5 Replace source dependency on kotlin-reflect with binary dependency
Review: https://jetbrains.team/p/kt/reviews/6753

Meaningful semantic change was splitted into 5 commits to simplify the
change review. Sinle commit would be too big.

Why replace source to binary: to get rid of kotlin-reflect in Kotlin
plugin artifact KTIJ-22276

Other pom.xml in libraries/tools:
* libraries/tools/kotlin-bom/pom.xml
    * Used to align user project deps. Should be a SNAPSHOT version
* kotlin-osgi-bundle/pom.xml
    * Used by users for OSGI Java modular system. Should be a SNAPSHOT
      version
* kotlin-maven-plugin-test/pom.xml
    * I don't know what this it but we stopped publishing it to the
      Maven central, so I will skip it
2022-08-22 15:43:52 +02:00
Nikita Bobko 2a4f3f41aa 2/5 Replace source dependency on kotlin-reflect with binary dependency
Review: https://jetbrains.team/p/kt/reviews/6753

Meaningful semantic change was splitted into 5 commits to simplify the
change review. Sinle commit would be too big.

Why replace source to binary: to get rid of kotlin-reflect in Kotlin
plugin artifact KTIJ-22276

Note: Kotlin Maven artifacts (./gradlew publish) changed their
dependency on kotlin-reflect
2022-08-22 15:43:49 +02:00
Nikita Bobko 0874fb71c6 Replace all kotlin-reflect-api dependencies with kotlin-reflect
Review: https://jetbrains.team/p/kt/reviews/6753

Why: I'm going to replace source dependency on kotlin-reflect with
binary dependency. Normalize reflect dependency before global
processing.
2022-08-22 15:43:11 +02:00
Nikita Bobko 8f79e833a8 Drop all redundant kotlin-reflect, kotlin-reflect-api dependencies
Review: https://jetbrains.team/p/kt/reviews/6753

All redundant I managed to find, of course.

Why: I'm going to process all reflect dependencies in the next commits.
Cleanup reflect dependency before processing.

They are redundant because:
1. if `compileOnly` then compilation didn't break after dropping the
   dependency
2. if `test*` then tests didn't break after dropping the dependency.
3. `analysis/analysis-api-fir/analysis-api-fir-generator/build.gradle.kts`
   `compiler/fir/checkers/checkers-component-generator/build.gradle.kts`
   Drop `implementation(project(":kotlin-reflect-api"))` because the
   module already depends on
   `implementation(project(":kotlin-reflect"))`
4. `compiler/daemon/daemon-client/build.gradle.kts`. Drop `runtimeOnly`
   because after dropping `compileOnly` compilation didn't break (so
   `runtimeOnly` looks suspicious). Less safe than 1-3
2022-08-22 15:42:57 +02:00
Nikita Bobko e3bf7698a9 kotlin-scripting-dependencies-maven: fix reflect dependency
Review: https://jetbrains.team/p/kt/reviews/6753

Use the same reflect dependency as in the rest of the project.

Why: I'm going to process all reflect dependencies in the next commits.
Normalize reflect dependency before processing.

This weird reflect dependency style was introduced in
83087291df. I think it was a simple
mistake.
2022-08-22 15:42:45 +02:00
nataliya.valtman 6e2202ad5a Fix repeating custom values in build scan. Refactor build statistic 2022-08-22 09:29:44 +02:00
Alexander Likhachev c8a48473e2 [Gradle] Add test for KT-53617 2022-08-18 02:35:03 +02:00