Commit Graph

9154 Commits

Author SHA1 Message Date
Anton Lakotka effe902c69 [Gradle] fix functional tests after deprecating API
In KotlinDependencyHandler

^KT-58759 Verification Pending
2023-05-23 09:00:30 +00:00
Anton Lakotka c49f08f427 [Gradle] Test type safe project accessors with KotlinDependencyHandler
KT-58759 Verification Pending
2023-05-23 09:00:30 +00:00
Anton Lakotka b3b0f23a50 [Gradle] Deprecate rare api in KotlinDependencyHandler
Recommend users default `project.dependencies` instead.
Gradle's DependencyHanlder has its own evolution thus
we cannot easily maintain API of KotlinDependencyHandler to look like
Gradle's DependencyHandler. We're going to support only our own
factory methods to create dependencies + `project` dependencies.

KT-58759 Verification Pending
2023-05-23 09:00:30 +00:00
Artem Daugel-Dauge 5700212119 [Gradle] Fix embedAndSign failire when signing is disable
^KT-50837 Verification Pending
2023-05-23 08:13:25 +00:00
Pavel Kargashinsky 322799f823 [FunctionalTests] Fail tests if androidSDK is not available, not ignore
Tests use kotlin/dependencies/android-sdk, androidSDK should be always available
2023-05-23 07:57:49 +00:00
Pavel Kargashinsky 9449e23538 [FunctionalTests] Fix run ExternalAndroidTargetPropertySmokeTest on Windows 2023-05-23 07:57:49 +00:00
Igor Yakovlev 1c716cee9c [Wasm] Update versions of nodejs, d8 and binaryen 2023-05-19 15:50:06 +00:00
Dmitrii Krasnov 8e3469f220 added mpp platform values into AllowedListAnonymizer for statistics
#KT-58104 InProgress
2023-05-19 06:41:52 +00:00
Yahor Berdnikau 37402336d5 [Gradle] Fix compiler plugins options were not passed to KaptGenerateStubs task
^KT-58745 Fixed
2023-05-18 14:55:16 +00:00
Yahor Berdnikau c14bb499e1 [Gradle] Update Duckduckgo regression benchmark 2023-05-17 18:22:47 +00:00
Yahor Berdnikau 7f0ecb0fc1 [Gradle] Update KVision regression benchmark 2023-05-17 18:22:47 +00:00
Yahor Berdnikau 1369183d36 [Gradle] Update graphql-kotlin benchmark 2023-05-17 18:22:46 +00:00
Artem Daugel-Dauge ca0b0e61e8 [Gradle] Add workarounds in CocoaPods plugin for compatibility with Xcode 14.3
Raise deployment target for 3rd-party pods if it's less then minimal supported by the new Xcode

^KT-57539 Verification Pending
2023-05-17 16:02:14 +00:00
Artem Daugel-Dauge f7acbb5252 [Gradle] Explicitly forbid an interop-binding self-dependency in CocoaPods plugin 2023-05-17 15:58:14 +00:00
Sebastian Sellmair 2dcaad2d03 [Gradle] Reshape API surface for setting Android SourceSetTrees
^KT-58710 Verification Pending
2023-05-16 13:19:42 +00:00
Sebastian Sellmair e1d48847dc [Gradle] Rename KotlinTargetHierarchyBuilder.withAndroid to withAndroidTarget
... by deprecating .withAndroid in favor of 'withAndroidTarget' to
make room for the Google maintained 'Android Target'

^KT-58710 Verification Pending
2023-05-16 13:19:42 +00:00
Sebastian Sellmair ff7e4f7986 [Gradle] Implement SourceSetTreeClassifier API
- This new API will be configurable for 'External Kotlin Targets'
- This change also moves targetHierarchy.android {} into the androidTarget
to avoid potential confusion around the KGP managed AndroidTarget vs
the Google implementation.

KT-58710
2023-05-16 13:19:42 +00:00
Sebastian Sellmair dbfa8d4c29 [Gradle] Defer .awaitSourceSets to 'AfterFinaliseRefinesEdges' and awaitFinalValue to 'AfterFinaliseDsl'
KT-58710
2023-05-16 13:19:42 +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
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