Commit Graph

13078 Commits

Author SHA1 Message Date
Bogdan Mukvich 303b01b89b Add SBOM configuration for all published artifacts by default 2023-06-06 13:27:26 +00:00
Vyacheslav Gerasimov e0a477f16d Build: Refactor sbom configuration & wire it with main publication 2023-06-06 13:27:25 +00:00
Bogdan Mukvich 18f52832f5 Configure SBOM maven publishing for stdlib 2023-06-06 13:27:25 +00:00
Bogdan Mukvich 02de693a12 Configure SBOM should return artifact 2023-06-06 13:27:25 +00:00
Dmitrii Krasnov 65aa5fc02e migrated cocoapods test with xcodebuild to new test dsl (junit 5 and gradle test kit)
#KT-51553 In Progress
2023-06-06 11:26:15 +00:00
Dmitrii Krasnov 7f70ac73fd Fixed k/n it tests after removing deprecated targets iosArm32 and watchosX86
^KT-51553
^KT-56533
2023-06-06 06:28:16 +00:00
Nataliya.Valtman 833b5c12a1 KT-59034 Remove variant factory usage from OperationCompletionListener 2023-06-05 16:25:06 +00:00
Ilya Goncharov d1b775f157 [Gradle, JS] Fix uname system call for configuration cache compatibility
[Gradle, JS] Fix problem with configuration cache in KotlinKarma

^KT-58969 fixed
^KT-58970 fixed
2023-06-05 15:21:34 +00:00
Pavel Punegov d81084f66f [K/N][test] Add test for ^KT-58537 2023-06-05 14:40:11 +00:00
Yahor Berdnikau b2212b9275 [Gradle] Add compatibility fix to explicit api import in MPP projects
MPP projects import relies that `-Xexplicit-api` flag is present in
DefaultLanguageSettingsBuilder.freeCompilerArgs property to enable
related inspections.

^KT-59063 Fixed
2023-06-02 20:06:14 +00:00
Sebastian Sellmair 75ab2ce4e7 [Gradle] KotlinJvmRun: Configure jvm toolchain
^KT-59055 Verification Pending
2023-06-02 16:32:01 +00:00
Artem Kobzar bfd57fd2df [K/JS, K/Wasm] Optimize simple objects declaration and usage ^Fixed KT-58797 2023-06-02 14:23:40 +00:00
Dmitrii Krasnov 1dee01474c Added kotlin-gradle-statistics versioning. test that checks any changes in kotlin-gradle-statistics src folder and fails if there were no VERSION increased
#KTIJ-25581 In Progress

Merge-request: KT-MR-10349
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2023-06-02 13:56:43 +00:00
Sebastian Sellmair b60f478b92 [Gradle] MPP: Update max tested AGP version to 8.2
^KT-58703 Verification Pending
2023-06-02 13:03:05 +00:00
Dmitrii Krasnov f8a540f4cf migrated podspec tests from CocoaPodsIT to new test DSL (gradle test kit + JUnit 5)
#KT-51553 In Progress
2023-06-02 11:42:40 +00:00
Leonid Startsev a0819e4163 Make changelog for kotlinx-metadata-jvm 0.6.2 release
Note: actual release is done from a separate branch of 1.8.20 with proper fix
(4a9e6f7b2b458ea0ee524afb52f42f3e45dc9ad7)
2023-06-02 11:35:50 +00:00
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