Commit Graph

14372 Commits

Author SHA1 Message Date
Andrey Yastrebov db27e29c08 fixup! KT-63592 Create setupLLDBScript task 2024-01-12 16:27:19 +00:00
Ilya Goncharov 459a8368a6 [Gradle, JS] NodeJsExec.create with KotlinJsCompilation left for kotlinx-benchmark compatibility
^KT-63714 fixed
2024-01-12 11:27:40 +00:00
Yahor Berdnikau e2a06c66cc [Gradle] Fix warnings in KotlinCompilationSourceSetsContainerFactories
^KT-56904 In Progress
2024-01-11 16:32:43 +00:00
Leonid Startsev 4c7a79f8b9 Provided changelog for kotlinx-metadata-jvm 0.9.0 2024-01-11 14:10:20 +00:00
Artem Daugel-Dauge b70c50cd1f [Gradle] Add integration tests for building through xcode with embedAndSign task
Including checks:
* running embedAndSign through a build phase
* running embedAndSign through a scheme pre-action script
* running embedAndSign through a scheme pre-action script and using Kotlin framework in local SPM package
* absense of explicit '-framework' linker flag

^KT-62376
^KT-63819
2024-01-11 08:23:50 +00:00
Artem Daugel-Dauge af4d5605ca [Gradle] Copy framework to BUILT_PRODUCTS_DIR in the embedAndSign task
^KT-63821 Verification Pending
2024-01-11 08:23:50 +00:00
Yahor Berdnikau 2a55aa782d Revert "[Gradle] Add dsl marker to KotlinSourceSet"
This reverts commit eb663117c7.
2024-01-10 22:10:59 +00:00
Yahor Berdnikau e8704cc556 Revert "[Gradle] Add deprecated accessor to sourceSets inside KotlinSourceSet"
This reverts commit 5fba2962b9.
2024-01-10 22:10:59 +00:00
Artem Kobzar 48f8f8af5f [K/JS] Fix useEsModules and useCommonJs DSL-functions ^KT-64561 Fixed 2024-01-10 18:22:08 +00:00
Artem Kobzar 300702a7e7 [K/JS] Create JavaScript Simple Object plugin that helps create typed JS objects 2024-01-10 16:30:02 +00:00
Ilya Goncharov b645997dc4 [Gradle, JS] Use dev server not as property in KotlinWebpackConfig 2024-01-10 12:41:53 +00:00
Dmitrii Krasnov 7e61f9cb42 [Gradle] Validation for definitionFile and packageName in cinterop
^KT-62800 Fixed
2024-01-10 08:50:24 +00:00
Dmitrii Krasnov cef46a9dd1 [Gradle Native] Made definitionFile Optional for cinterop task
^KT-62800 Fixed
2024-01-10 08:50:24 +00:00
Nataliya.Valtman cf3672314a Remove JMX bean invocation for internal build FUS metrics
#KT-58768 In Progress
2024-01-09 16:48:11 +00:00
Evgenii Mazhukin de4953adf6 [IC] Baseline fix for common sources getting access to platform declarations
K2-only issue. In an incremental build, sourceSet boundary isn't
preserved in certain conditions:

SourceSet A depends on SourceSet B
A and B overload a function, for example:

A -> fun foo(p: Parent) // (1)
B -> fun foo(c: Child) // (2)

If some source file in A is calling foo(..), only (1) is supposed to be visible
for that call site.

However, if

a) it is an incremental build,
b) the declaration of (1) is not a part of the compilation set, and
c) call to foo(c: Child) is applicable,

then (2) would be called from the generated code. So, the build result is not
consistent between the full build and an incremental build.

As a workaround, we fallback to a non-incremental build, if any source from A
needs to be compiled.

To enable "risky" incremental builds, use Gradle property
kotlin.internal.incremental.enableUnsafeOptimizationsForMultiplatform=true

^KT-62686
^KT-63837 Fixed


Merge-request: KT-MR-13695
Merged-by: Evgenii Mazhukin <evgenii.mazhukin@jetbrains.com>
2024-01-08 20:03:08 +00:00
Yahor Berdnikau ad6513e247 [Gradle] Fix warnings in KotlinPluginWrapper
^KT-56904 In Progress
2024-01-08 19:18:32 +00:00
Yahor Berdnikau 5fba2962b9 [Gradle] Add deprecated accessor to sourceSets inside KotlinSourceSet
Apparently, using such an approach is a popular case especially for
configuring 'dependsOn' parameter. And we should simplify user migration
 to more restricted DSL.

^KT-64722 Verification Pending
2024-01-08 14:07:50 +00:00
Yahor Berdnikau eb663117c7 [Gradle] Add dsl marker to KotlinSourceSet
We also need users to distinguish KotlinSourceSet DSL from other levels
of DSL, specifically extension one.

^KT-64722 In Progress
2024-01-08 14:07:50 +00:00
Dmitriy Dolovov e92017f64e [KLIB Resolver] Deprecate Logger.fatal()
Invocation of Logger.fatal() may cause severe side effects such as
throwing an exception or even terminating the current JVM process
(check various implementations of this function for details).

The code that uses Logger.fatal() sometimes expects a particular kind
of side effect. This is totally a design flaw. And it's definitely not
a responsibility of Logger to influence the execution flow of
the program.
2024-01-08 13:26:24 +00:00
Dmitrii Krasnov 36e8f9e3ac [Gradle Native] Provided default value for produceUnpackedKlib
^KT-64573 Fixed
2024-01-08 12:24:23 +00:00
Filipp Zhinkin 940c3c81ad KT-64361 delegate Int/Long::sign to methods from Java stdlib
Merge-request: KT-MR-13708
Merged-by: Filipp Zhinkin <filipp.zhinkin@jetbrains.com>
2024-01-05 17:13:37 +00:00
strangepleasures 894df8f641 KT-64719 K2 KAPT stub generation should fail on syntax errors 2024-01-05 15:58:41 +00:00
Dmitrii Gridin b6d373d8e5 Update copyright to 2024 2024-01-05 13:43:17 +00:00
Yahor Berdnikau 41003732b1 [Gradle] Add JVM toolchain configure method to Kotlin target
These methods are only added to provide more user-friendly error
when user tries to configure JVM toolchain in Kotlin target DSL.

^KT-64629 Verification Pending
2024-01-05 12:34:27 +00:00
Alexander Udalov a9f85d75f4 Kapt: remove support for old JVM backend
#KT-64680 Fixed
2024-01-03 19:37:40 +00:00
Alexander Udalov e4a608c6e7 Kapt: remove tests on old JVM backend
#KT-64680
2024-01-03 19:37:40 +00:00
Yahor Berdnikau 3eb86ede96 [Gradle] Fix warnings in KotlinBaseApiPlugin
^KT-56904 In Progress
2024-01-03 12:40:39 +00:00
Evgenii Mazhukin 0c647d6fec [Tests] Double-check the Native incremental builds in Gradle IT
Couldn't reproduce the issue in tests or with the reproducer. Most likely the problem was on my side.

^KT-63970 Can't Reproduce


Merge-request: KT-MR-13673
Merged-by: Evgenii Mazhukin <evgenii.mazhukin@jetbrains.com>
2024-01-03 12:08:04 +00:00
Andrey Yastrebov c6bf5b8ef1 KT-63592 Add testGenerateLLDBInitFile test 2024-01-03 10:29:18 +00:00
Andrey Yastrebov 4176c50107 KT-63592 Create setupLLDBScript task 2024-01-03 10:29:18 +00:00
Dmitriy Novozhilov d3c03325c9 [Build] Properly setup the version of Apache commons-text dependency
Versions of external libraries should be listed in version catalog, not
  directly in a build file
2024-01-02 15:07:44 +00:00
Dmitriy Novozhilov 3cf9a6f687 [Build] Fix JPS import of :libraries:tools:abi-comparator 2024-01-02 15:07:44 +00:00
Andrey Yastrebov 175dd40d45 KT-57650 Add outdated repo test 2024-01-02 13:54:00 +00:00
Andrey Yastrebov 4cdb9301ed KT-57650 run pod install --repo-update if repo is out of date 2024-01-02 13:54:00 +00:00
Yahor Berdnikau c4fc0b919d [Gradle] Fix warnings in KotlinWithJavaCompilation
^KT-56904 In Progress
2023-12-29 10:11:45 +00:00
Yahor Berdnikau 09a6f95a15 [Gradle] Fix warnings in KotlinJvmCompilation
^KT-56904 In Progress
2023-12-29 10:11:45 +00:00
Yahor Berdnikau ffefe99e20 [Gradle] Fix warnings in KotlinJvmAndroidCompilationFactory
^KT-56904 In Progress
2023-12-29 10:11:45 +00:00
Yahor Berdnikau 77830cc46a [Gradle] Fix warnings in KotlinJvmAndroidCompilation
^KT-56904 In Progress
2023-12-29 10:11:45 +00:00
Nataliya.Valtman 3fd9e22f37 Remove KotlinBuildStatsService.getInstance() calls
#KT-58768 In Progress
2023-12-28 13:35:19 +00:00
Yahor Berdnikau 969e1957d2 [Gradle] Fix warnings in AndroidSubplugin.kt
^KT-56904 In Progress
2023-12-28 09:16:07 +00:00
Dmitrii Krasnov 5dcc853df3 [Gradle] Fixed warnings in KotlinNativeTasks.kt
^KT-56904
2023-12-28 09:07:22 +00:00
Evgenii Mazhukin ee3119e9d2 [KGP] Introduce Incremental Compilation Feature Toggles
Makes it easier to introduce a Gradle property for configuring
IncrementalCompilerRunner.

^KT-64513 Fixed
^KT-63837 In Progress


Merge-request: KT-MR-13671
Merged-by: Evgenii Mazhukin <evgenii.mazhukin@jetbrains.com>
2023-12-27 13:43:54 +00:00
Evgenii Mazhukin 97f8f7a734 [KGP] Fix warnings related to inheritance of @Deprecated annotation
Merge-request: KT-MR-13675
Merged-by: Evgenii Mazhukin <evgenii.mazhukin@jetbrains.com>
2023-12-27 13:23:23 +00:00
Yahor Berdnikau bffdece8da [Gradle] Fix warnings in AndroidVariantType.kt file
^KT-56904 In Progress
2023-12-27 12:37:28 +00:00
vladislav.grechko 34bac48541 Add JVM ABI K1/K2 consistency tests 2023-12-26 10:18:19 +00:00
cristiangarcia 5a1fb78fcd Declare generated SourceSets correctly
Allow Gradle to keep the track of the task generating the sources
KTI-1502 Fixed
2023-12-24 00:01:59 +00:00
Dmitrii Krasnov b90ff94451 [Gradle] Suppressed GradleExecutionContext.fromProject
^KT-56904
2023-12-21 18:43:01 +00:00
Yahor Berdnikau 5b6363b0df [Gradle] Fix warnings in KotlinAndroidTarget
^KT-56904 In Progress
2023-12-21 15:26:02 +00:00
Dmitrii Krasnov 672fea9be4 [Gradle] Changed buildDir to buildDirectory in KotlinNativeLink
^KT-62527
2023-12-21 14:31:14 +00:00
Artem Kobzar 053bc08626 [K/Wasm] Add Binaryen sizes to Wasm size tests 2023-12-21 14:19:09 +00:00