Commit Graph

13062 Commits

Author SHA1 Message Date
Ilya Goncharov b585d7c392 [Gradle, JS] Add test with nested composite build 2023-06-02 08:43:09 +00:00
Abduqodiri Qurbonzoda 7d9ea28604 Deprecate lazy() that synchronizes on a given lock in non-JVM platforms
Because the overload has a meaningful implementation only in JVM.
In other platforms the specified lock object is ignored.
In K/N it throws UnsupportedOperationException.
2023-06-01 19:40:02 +00:00
Pavel Punegov 6d06f29326 [K/N][test] Fix Native downloading test
Use a newer version of the compiler with changes to archive name
(contains arch). Also, remove obsolete test for the old version.

Merge-request: KT-MR-10399
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2023-06-01 15:09:51 +00:00
Dmitrii Krasnov b19decc00a fixed NativeXcodeSimulatorTestsIT 2023-06-01 14:45:26 +00:00
Dmitrii Krasnov 19f1d4e3e3 fixed native compiler downloader repoUrl building
#KT-51553 In Progress
2023-06-01 14:45:26 +00:00
Yahor Berdnikau 9e5346407e [Gradle] Restore public visibility for constants with configuration names
Apparently users are using these constants in their build script
configurations. Until we will provide proper public API we should keep
such constants as public.

^KT-58916 Fixed
2023-06-01 14:41:00 +00:00
Abduqodiri Qurbonzoda 7acaf6e473 [K/N] String.indexOf matches byte sequences not on the char boundary #KT-56637
If the found index is odd, retry search from index + 1.

Merge-request: KT-MR-10364
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
2023-06-01 12:56:32 +00:00
Nikita Bobko 4be7ac930b Update KClass.isData KDoc to include info about data objects
^KT-58985 Fixed
Review: https://jetbrains.team/p/kt/reviews/10385

`isData` returns `true` for `data object`s even if kotlin-reflect
version is old (1.2.0), so it looks like we got correct `KClass.isData`
behaviour for "free". That's why this behaviour was never covered with
tests.

This commit updates the documentation and covers the behaviour described
in the KDoc with tests.
2023-06-01 12:09:15 +00:00
Vyacheslav Gerasimov 5e39bb97a0 Download d8 using configuration to make use of Gradle dependency caching
#KTI-72
2023-06-01 09:28:11 +00:00
Anton Lakotka dfae730d0f [Gradle] Update kotlin-gradle-plugin.api after removing
unused defaultConfigurationName

^KT-55201 Verification Pending
2023-05-31 15:45:26 +00:00
Anton Lakotka b96e5a2a93 [Gradle] Remove defaultConfiguration from ExternalKotlinTargetImpl
^KT-55201 Verification Pending
2023-05-31 15:45:25 +00:00
Anton Lakotka 67a511544c [Gradle] Remove defaultConfigurationName
^KT-55201 Verification Pending
2023-05-31 15:45:25 +00:00
Igor Yakovlev c71a2c6dd3 Codereview 2023-05-31 10:46:24 +00:00
Igor Yakovlev 78b72efd32 [Wasm] Make Arrays' constructors with size and lambda inline
Fixed #KT-58746
2023-05-31 10:46:24 +00:00
Ilya Gorbunov e11ebcadb4 Test refactor: extract big duration adjustment to a separate test 2023-05-31 04:45:15 +00:00
Ilya Gorbunov f8f3862f0c Make TimeMark adjustment test more stable 2023-05-31 04:45:15 +00:00
Alexander Udalov 60016d3e5b Remove obsolete compiler flag -Xuse-ir 2023-05-30 14:46:09 +00:00
Alexander Udalov bb4bb58453 Remove tests on -Xuse-ir compiler flag
This flag is going to be removed because old backend is not supported
anymore, therefore there's no need to test it.
2023-05-30 14:46:09 +00:00
Leonid Startsev 22096cec3c Make changelog for kotlinx-metadata-jvm 0.6.1 release
Note: actual release is done from 1.8.20 branch (commit 0043ae4390c8555b03428a014b660f395b924695)
2023-05-30 14:27:45 +02:00
Yahor Berdnikau 4b643480d6 [Gradle] Fix spelling errors in tryK2 report
^KT-58869 Fixed
2023-05-30 11:24:16 +00:00
Alexander Shabalin 4ddc94bc8d [Gradle][MPP] DEPRECATE_ERROR for deprecated targets in tests ^KT-58822 2023-05-26 14:47:45 +00:00
Alexander Shabalin 1ef198ead4 [Gradle][MPP] Promote several K/N targets deprecation level to error 2023-05-26 14:47:45 +00:00
Yahor Berdnikau 9f12dae117 [repo] fix KGP pom has multiple dependencies on KGP-api 2023-05-26 13:20:41 +00:00
Yahor Berdnikau 8c8f1718b9 [repo] KGP: more fine-grained AGP dependency
Removed unneeded transitive dependencies
2023-05-26 13:20:40 +00:00
Yahor Berdnikau e2801c366b [repo] KGP: remove compiler dependencies coming transitively 2023-05-26 13:20:40 +00:00
Yahor Berdnikau ec01e037f3 [repo] KGP: depend on :kotlin-compiler-runner-unshaded for compileOnly 2023-05-26 13:20:40 +00:00
Yahor Berdnikau 6ddc7ce23f [repo] KGP: remove kotlin-project-model dependency
It is coming transitively from KGP-api
2023-05-26 13:20:40 +00:00
Yahor Berdnikau 83a3e7f8a1 [repo] KGP: drop some android dependencies 2023-05-26 13:20:40 +00:00
Yahor Berdnikau 4ee0a97ddd [repo] KGP: drop guava dependency
It was unused.
2023-05-26 13:20:40 +00:00
Yahor Berdnikau f7e2b8b516 [repo] KGP: drop groovy-all dependency
Add ported from Groovy escapeJavaStyleString method into our
codebase.
2023-05-26 13:20:40 +00:00
Yahor Berdnikau 99dd2517c4 [repo] KGP: remove transitive dependencies coming from KGP-API 2023-05-26 13:20:40 +00:00
Yahor Berdnikau 2de4495711 [repo] migrate KGP to compiler options DSL 2023-05-26 13:20:40 +00:00
Nataliya.Valtman 06ac8a10cd Use FlowParameter for buildFinish event
Support build scan report for Gradle 8.1

#KT-55740: Fixed
#KT-58251: Fixed
2023-05-25 14:24:16 +00:00
Anton Lakotka 9456872bbe [Gradle] Remove unnecessary participatingSourceSetsLazy
The `withDependsOnClosure` is live object, it is ok to request it early
as long as other properties will read data from it at the end of the
configuration.

^KT-58471 Verification Pending
2023-05-25 10:25:17 +00:00
Anton Lakotka 731d3bf602 [Gradle] Remove legacy participatingSourceSets logic
It is unknown why we would need to include commonMain source set
explicitly from kotlinExtension.sourceSets.

Few assumptions:
* common main source set loaded somehow from different classloader
* compatibility with legacy multipaltform plugins

^KT-58471 Verification Pending
2023-05-25 10:25:16 +00:00
Anton Lakotka 60939a8fe6 [Gradle] Change skipProjectDependencies to transformProjectDependencies
For better code readability

^KT-58471 Verification Pending
2023-05-25 10:25:16 +00:00
Anton Lakotka 792c08ec7d [Gradle] Test CInterop commonization doesn't trigger configuration resolution
...before taskGraph is ready

KT-56858 Verification Pending
2023-05-25 10:25:16 +00:00
Anton Lakotka fc33892e70 [Gradle] Test cinterop dependency from composite build
KT-58471 Verification Pending
2023-05-25 10:25:16 +00:00
Anton Lakotka 7c47ff0819 [Gradle] Introduce isProjectComponentIdentifierInCurrentBuild
KT-58471 Verification Pending
2023-05-25 10:25:16 +00:00
Anton Lakotka 9ead1d84b1 [Gradle] Fix CInterop commonization for included builds
KT-58471 Verification Pending
2023-05-25 10:25:16 +00:00
Anton Lakotka b6a3a60f36 [Gradle] Update UP-TO-DATE checks in MppCInteropDependencyTransformationIT
CInteropDependencyTransformation task now is executed also for project
dependencies.

KT-58471 Verification Pending
2023-05-25 10:25:16 +00:00
Anton Lakotka e937f0739b [Gradle] Process project dependencies in CLI version of CInterop[MDT]Task
If MetadataDependencyTransformation is triggered it will resolve related
metadata dependency configuration. Which is not recommended from gradle
performance point of view.
Update CInterop[MDT]Task to work as regular [MDT]Task i.e. it will
process project dependencies during task execution but keep the original
functionality for IDE. Since during IDE import it is expected to resolve
configurations during gradle configuration phase.

^KT-58471 Verification Pending
2023-05-25 10:25:16 +00:00
Anton Lakotka 72c7d15be8 [Gradle] Share Cinterop and regular [MDT]Tasks inputs
These tasks are essentially operating on the same inputs but produces
different ouputs. Therefore, it makes sense to extract their Task Inputs
into a separate container and let these tasks share it.

KT-58471 Verification Pending
2023-05-25 10:25:16 +00:00
Sebastian Sellmair d8ed7a2820 [Gradle] Run functionalTests in parallel 2023-05-25 09:33:44 +00:00
Sebastian Sellmair e0389a0a87 [Gradle] Implement KotlinJvmTarget.mainRun (KotlinJvmRun)
This task will also automatically support the use case of
a 'carrier' task for the IDE. The IDE can use this task
to execute generic main methods, providing a -P<taskName>.mainClass
property

^KT-58661 Verification Pending
2023-05-24 15:00:07 +00:00
Sebastian Sellmair 3b1a7c3ac1 [Gradle] CInteropConfigurations: Support lazy configuration
Using 'whenEvaluated' (aka 'afterEvaluate') is not supported
when using lazy APIs (like register). In order to safely
copy user configuration in both use-cases,
'launchInStage(AfterFinaliseDsl)' is used as this will be safe
either way.

^KT-58838 Verification Pending
2023-05-24 11:45:21 +00:00
Sebastian Sellmair dafe24a3a9 [Gradle] Implement KT58838LazyCinteropConfiguration to cover KT-58838 2023-05-24 11:45:21 +00:00
Dmitrii Krasnov 548ebbaf90 refactored OsCondition behavior with multiple same annotations on the same target
#KT-51553 In Progress
2023-05-24 06:58:01 +00:00
Nikolay Lunyak 87cab95713 [FIR] KT-58444: Ensure the compiler crashes 2023-05-23 15:59:41 +00:00
Anton Lakotka effe902c69 [Gradle] fix functional tests after deprecating API
In KotlinDependencyHandler

^KT-58759 Verification Pending
2023-05-23 09:00:30 +00:00