Commit Graph

12991 Commits

Author SHA1 Message Date
Sebastian Sellmair dbfa8d4c29 [Gradle] Defer .awaitSourceSets to 'AfterFinaliseRefinesEdges' and awaitFinalValue to 'AfterFinaliseDsl'
KT-58710
2023-05-16 13:19:42 +00:00
Ilya Gorbunov bbb36ce501 KT-58046 Promote time sources, time marks, measureTime to stable 2023-05-16 11:42:32 +00:00
Nataliya.Valtman f87fdb43fa KT-57224: Add kotlin language version to file report 2023-05-15 16:23:59 +00:00
Sebastian Sellmair 08f3d56d9b [Gradle] KotlinCompilationAssociator: Restore 1.8.10 behaviour for KotlinWithJavaTarget
^KT-58280 Verification Pending
2023-05-15 12:11:00 +00:00
Sebastian Sellmair 3196981799 [Gradle] Implement KT58280JvmWithJavaTestCompileClasspath to cover KT-58280 2023-05-15 12:10:59 +00:00
Yahor Berdnikau a2c874572a [Gradle] Fix adding additional res dirs to KotlinSourceSet does not work
In case of "org.jetbrains.kotlin.jvm" plugin Java SourceSet will create
ProcessResources task copying all registered resources.

^KT-36904  Fixed
2023-05-15 11:59:57 +00:00
Dmitrii Krasnov 958b0e6ebc refactored CommandLineArguments assertions functions
#KT-51553 In Progress
2023-05-15 11:02:20 +00:00
Ilya Goncharov 1b9ed568bb [Gradle, JS] Default stdOutput and errOutput on dry run with JS tests 2023-05-15 09:29:42 +00:00
Alexander Udalov 98fb4f1f45 Stdlib tests: annotate serialized lambdas explicitly
Behavior is going to change in KT-45375 and lambdas will no longer be
serializable by default.
2023-05-12 19:55:25 +00:00
Dmitrii Krasnov 606ffa7273 fixed test, which started to fail on WINDOWS env after test migration 2023-05-12 14:35:37 +00:00
Pavel Kargashinsky 603e30965b [MPP] Mute ExternalAndroidTargetPrototypeSmokeTest on Windows. 2023-05-12 13:26:40 +00:00
Pavel Kargashinsky 4b6ed128a2 [MPP] Use android.sdk from kotlin/dependencies for functionalTests 2023-05-12 13:26:40 +00:00
Alexander.Likhachev 44d9a2136b Bump language version for Gradle plugins' dependencies to 1.5
#KT-58569 Fixed
2023-05-12 12:59:39 +00:00
Yahor Berdnikau 2b27fe4e65 [Gradle] Fix moduleName is not possible to set in MPP project
^KT-57959 Fixed
2023-05-12 10:50:38 +00:00
Yahor Berdnikau 111243f215 Restore shadowing compiler plugins into related maven plugins
This is required for backward compatibility for older versions of
Kotlin/IDEA plugin.

^KT-58530 Fixed
2023-05-12 09:31:41 +00:00
Yahor Berdnikau eef7c3e834 Publish serialization plugin as kotlin-serialization-compiler-plugin
With this change it will have consistent naming with other compiler plugins.

'-embeddable' was also renamed.

'dist' should contain two identical jar files:
- 'serialization-compiler-plugin.jar'
- 'kotlinx-serialization-compiler-plugin.jar'

^KT-58530 In Progress
2023-05-12 09:31:41 +00:00
Sebastian Sellmair 352fd5356e [Gradle] Document IllegalStateException thrown in ExternalKotlinTargetDescriptor {}
KT-58601
2023-05-12 08:14:47 +00:00
Sebastian Sellmair ca2a5a8ebf [Gradle] Remove .configure property from External.*Descriptors
KT-58601
2023-05-12 08:14:47 +00:00
Sebastian Sellmair 74fd66202b [Gradle] Remove unnecessary Deprecated ExternalKotlinTargetApis
KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair d9f572bc0b [Gradle] Remove old ExternalTargetApiExtensions
KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair f588b06ca5 [Gradle] Remove .configure duplication in ExternalKotlinTargetDescriptorBuilder
KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair e1e2c04044 [Gradle] Replace IdeMultiplatformImport.*Level enums with simpler IdeMultiplatformImport.Priority
KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair d4e1321c65 [Gradle] Add documentation on IdeMultiplatformImport.serialize
KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair 82ac61e306 [Gradle] Remove IdeDependencyResolver and IdeDependencyTransformer .plus methods
KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair 68814ccd67 [Gradle] IdeDependencyResolver.WithBuildDependencies: Add example to doc
KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair ca38f3192c [Gradle] IdeAdditionalArtifactResolver, IdeDependencyResolver: Replace object Empty with companion val empty
... to remove the type from the API surface.

KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair df8b098cc0 [Gradle] Document IdeAdditionalArtifactResolver.resolve...
... providing the contract of the function as well as further clarifying
on the term 'additional artifact'

KT-58601
2023-05-12 08:14:46 +00:00
Sebastian Sellmair 85059ced93 [Gradle] Split KotlinPluginLifecycle and KotlinPluginLifecycleImpl
^KT-58255 Verification Pending
2023-05-11 14:13:10 +00:00
Sebastian Sellmair 7910e0d32c [Gradle] KotlinPluginLifecycle: Demote .enqueue to implementation
As .launch shall be the only entry point for running code
within the context of the KotlinPluginLifecycle

^KT-58255 Verification Pending
2023-05-11 14:13:10 +00:00
Sebastian Sellmair b53bf4b148 [Gradle][Minor] runLifecycleAwareTest: Prefer re-throwing AssertionError
^KT-58255 Verification Pending
2023-05-11 14:13:10 +00:00
Sebastian Sellmair 0ab0788763 [Gradle] Lifecycle: Remove LifecycleAwareProperty
Replaced by just keeping the 'awaitFinalValue()' function

^KT-58255 Verification Pending
2023-05-11 14:13:10 +00:00
Sebastian Sellmair 42109725ed [Gradle] Implement AndroidSourceSetLayoutV1SourceSetsNotFoundErrorTest
... to cover KT-58488
2023-05-11 12:05:13 +00:00
Sebastian Sellmair 484863d8c6 [Gradle] Implement AndroidSourceSetLayoutV1SourceSetsNotFoundChecker...
... in order to provide better guidance for projects
migrating to Multiplatform/SourceSetLayout v2 which will suffer from
`UnknownDomainObjectException` when requesting old Android source sets
like

```
sourceSets.getByName("androidTest") // renamed to androidUnitTest
sourceSets.getByName("androidAndroidTest") // renamed to androidInstrumentedTest
```

^KT-58488 Verification Pending
2023-05-11 12:05:13 +00:00
Yahor Berdnikau bdad2e5c88 [Gradle] Fix Kotlin native compilation exposed compiler options type
^KT-57815 Fixed
2023-05-11 10:51:40 +00:00
Yahor Berdnikau cc9325eb5b [Gradle] Stop using flow control to locate Gradle task
^KT-57052 Fixed
2023-05-11 10:39:53 +00:00
Vsevolod Tolstopyatov 5b474bc5d3 Stabilize EnumEntries stdlib signature
* Also, mention implementation details of EnumEntries to enable safe uses of a 'EnumEntries' as a set
* Fix testdata for opt-in marker in enum entries

^KT-58548 fixed

Merge-request: KT-MR-10037
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
2023-05-11 09:18:44 +00:00
Yahor Berdnikau ccbca7a019 [Gradle] Move pm20 interfaces from plugin/api into plugin codebase
^KT-58619 Fixed
2023-05-10 23:27:14 +02:00
Yahor Berdnikau ac2d00916c Fix toolchain does not configure project level jvm target convention
Now JDK toolchain configures project level compiler options jvm target
convention and does not override convention for task.

For use case when toolchain is configured via task DSL jvm target
convention overrides project level convention.

^KT-57393 Fixed
2023-05-10 20:54:03 +00:00
Yahor Berdnikau 04b39ba2e1 Don't add explicitApi mode for test sources
^KT-58571 Fixed
2023-05-10 15:41:14 +00:00
Alexander.Likhachev d9927214e1 [Gradle, MPP] Register the kotlin source set convention only for Gradle <= 8.1
#KT-52976 Fixed
2023-05-10 12:21:06 +00:00
Alexander.Likhachev 4ec48cfb82 [Gradle] Add Gradle 8.1+ plugin variant 2023-05-10 12:21:06 +00:00
Alexander.Likhachev 6c5061a19f [Gradle, MPP] Remove the fromPreset convention
#KT-52976 In Progress
2023-05-10 12:21:06 +00:00
Igor Chevdar c129e91bd6 [K/N][gradle] Supported IC for caches 2023-05-10 08:37:32 +00:00
Artem Daugel-Dauge f659b63aef [Tests] Add missing experimental cinterop optins (after KT-57728) in various Gradle IT 2023-05-09 12:47:32 +00:00
Nataliya.Valtman 59f9d0afd9 Fix FusStatisticsIT test 2023-05-09 12:33:36 +00:00
Ilya Goncharov 14653799b5 [Gradle, JS] Depends umbrella packageJson task onto publicPackageJson task 2023-05-09 09:29:35 +00:00
Bogdan Mukvich dccb7a221c Add SBOM plugin and configuration 2023-05-09 08:46:06 +00:00
Sebastian Sellmair c2970c4dda [Gradle] Add initial samples into KotlinPluginLifecycleSample
KT-58275
2023-05-09 07:32:38 +00:00
Sebastian Sellmair c05b86dc7c [Gradle] KotlinPluginLifecycle: Do not enter AfterBuildscriptEvaluate stage on failures
KT-58275
2023-05-09 07:32:38 +00:00
Sebastian Sellmair b437c3e0e9 [Gradle] KotlinPluginLifecycle: Rename .configured to .configurationResult
^KT-58255 Verification Pending
2023-05-09 07:32:38 +00:00