Commit Graph
13030 Commits
Author SHA1 Message Date
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
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
cristiangarcia d32d5346a2 Fix gradle deprecations in Kotlin Native
Merge-request: KT-MR-10267
Merged-by: Cristian Garcia <Cristian.Garcia-Marin@jetbrains.com>
2023-05-22 12:39:57 +00:00
Igor Yakovlev 1749bafc30 [Wasm] Rename dateref to structref 2023-05-19 15:50:07 +00:00
Igor Yakovlev 1c716cee9c [Wasm] Update versions of nodejs, d8 and binaryen 2023-05-19 15:50:06 +00:00
Igor Yakovlev ed1c15b64b [Wasm] Remove redundant code 2023-05-19 15:50:06 +00:00
Igor Yakovlev 6437d0919c [Wasm] Replace deprecated cast instructions 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
Igor Yakovlev a224feefd2 [Wasm] Fix invalid rounding for reminder calculation
#Fixed KT-58681
2023-05-16 15:53:01 +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
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