Commit Graph

11371 Commits

Author SHA1 Message Date
Nikolay Krasko 0e44ad6c60 Minor: explicitly use ext.repoUrl 2022-10-12 08:20:25 +00:00
Daniel Santiago 189be2b117 [KAPT] Setup KaptJavaLog writers during initialization.
Migrate KaptJavaLog to not used deprecated constructor in newer JDKs and instead set up the writers during initialization. This enables us to get rid of KaptJavaLog17.

Fixes KT-54030
2022-10-11 23:48:18 +02:00
sebastian.sellmair fd9f542895 [Gradle][MPP] Remove Kotlin Multiplatform stability warning
^KT-54387 Verification Pending
2022-10-11 12:10:44 +00:00
Anton Lakotka 71fe1dae22 [Gradle] Support Configuration Cache for XCFramework task
^KT-54362
^KT-54339 Verification Pending
2022-10-11 11:20:59 +00:00
Anton Lakotka 13dcb9388c [Gradle] Support Configuration Cache for FatFramework task
^KT-54362
^KT-54339 Verification Pending
2022-10-11 11:20:59 +00:00
Anton Lakotka a7f33819fa [Gradle] Add workaround for Configuration Cache deserialization
Gradle Configuration Cache deserializer doesn't support Kotlin's
Objects of a Sealed Class. It creates new instance upon deserialization
and thus breaking equals contract in kotlin when's constructions.

See more info: https://github.com/gradle/gradle/issues/22347

^KT-54362
^KT-54339 Verification Pending
2022-10-11 11:20:58 +00:00
Anton Lakotka 4cda8f35bc [Gradle] Support Configuration Cache for Link task
^KT-54339 Verification Pending
2022-10-11 11:20:58 +00:00
Anton Lakotka 50b892f2f1 [Gradle] Update Configuration Cache test for Native tasks
Exclude Metadata Processing tasks that are not compatible yet

^KT-54339 Verification Pending
2022-10-11 11:20:58 +00:00
nataliya.valtman 512f7b3231 Add property validation for single file report
#KT-54335 Fixed
#KT-54356 Fixed
2022-10-11 09:57:12 +00:00
konstantin.tskhovrebov 5e96bf0795 [KT-54314] Cocoapods: disable signing for all pod dependencies in synthetic project 2022-10-11 09:19:39 +00:00
Abduqodiri Qurbonzoda 71381ec8e2 [K/N] HashMap/HashSet doesn't reclaim storage after removing elements #KT-53310 2022-10-07 11:19:31 +00:00
Dmitriy Novozhilov e290fa5f7b Add workaround for KT-54318 2022-10-07 10:38:52 +00:00
Ilya Goncharov 03bea0dbaa [Gradle, JS] Disable test when difference between ABI 2022-10-07 08:46:50 +00:00
Sebastian Sellmair 127c5120dd Only fail parsing KotlinToolingVersion if parsing major or minor fails
^KT-54301 Verification Pending
2022-10-06 07:54:41 +00:00
Dmitriy Novozhilov 9b63dde1c3 Add error-level OptIn on safeAs, cast and assertedCast functions in addToStdlib
Usage of this function is unsafe because it does not have native compiler
  support. This means that compiler won't report UNCHECKED_CAST,
  CAST_NEVER_SUCCEED or similar diagnostics in case of error cast
  (which can happen immediately or after some refactoring of class hierarchy)
2022-10-06 06:57:07 +00:00
Anton Lakotka e57f9384b9 [Gradle] Use KonanTarget's name instead of calling toString()
^KT-53107
2022-10-05 19:32:04 +00:00
Anton Lakotka eb5a2f65bd [Gradle] Fix tests after adding watchosDeviceArm64 target
^KT-53107
2022-10-05 19:32:04 +00:00
Anton Lakotka fd5c061c0b [Gradle] Use more granular arm64 clang macro's for fat frameworks
After introducing watchOsDeviceArm64 target it conflicted with existing
watchOsArm64 target. Because both having the same Konan Architecture as
Arm64. This is not entirely correct and actual
architectures are different. So it requires more precise macros for
fat framework.

* __ARM64_ARCH_8_32__ for `watchOsArm64` which is based on `arm64_32`
* __ARM64_ARCH_8__ for other arm64 devices including `watchOsDeviceArm64`

^KT-53107
2022-10-05 19:32:03 +00:00
Anton Lakotka 1b7f673e94 [Gradle] Register watchosDeviceArm64 in apple-specific tasks
^KT-53107
2022-10-05 19:32:03 +00:00
Anton Lakotka efa331feed [Gradle] Add arm64 architecture of watchos to AppleSdk object
^KT-53107
2022-10-05 19:32:02 +00:00
Anton Lakotka 640ba1ecfa [Gradle] Add watchosDeviceArm64 to nativeTargetsWithSimulatorTests
^KT-53107
2022-10-05 19:32:02 +00:00
Anton Lakotka 02c9cf74b4 [Gradle] Add watchosDeviceArm64 to KotlinArtifactsExtension
Generate via `generateAbstractKotlinArtifactsExtensionImplementation`

^KT-53107
2022-10-05 19:32:02 +00:00
Anton Lakotka 54d21634aa [Gradle, KPM] Add watchosDeviceArm64 KPM Variant
Generate via `generateKpmNativeVariants`

^KT-53107
2022-10-05 19:32:01 +00:00
Anton Lakotka 3fe5601a70 [Gradle] Add watchosDeviceArm64 target preset
Generate via `generateMppTargetContainerWithPresets`

^KT-53107 Verification Pending
2022-10-05 19:32:01 +00:00
Sebastian Sellmair cda28da09d [kotlin-tooling-core] KotlinToolingVersionOrNull: return null on bad classifier argument
^KT-54301 Verification Pending
2022-10-05 12:19:16 +00:00
Nikolay Krasko b5b58f40d6 Workaround instability of Gradle builds caused by the default encoding
The encoding setting from org.gradle.jvmargs is not applied
(https://github.com/gradle/gradle/issues/22292) during
the :kotlin-stdlib-js:compileJs, causing instability in kotlin.js.map
(https://youtrack.jetbrains.com/issue/KT-50589) on machines where
default encoding is not UTF-8.

This reverts commit d7ef5efa6a.

KTI-932
2022-10-05 10:57:46 +00:00
Artem Kobzar eb2326eabb [K/JS] Add ability to exclude declarations from export by a new annotation @JsExport.Ignore. 2022-10-03 11:07:25 +00:00
Abduqodiri Qurbonzoda 917c8606f5 Document @Synchronized behavior on extension functions #KT-32469 2022-10-03 10:16:37 +00:00
Ilya Gorbunov 607f15b55b Sycnhronize docs of primitives in JS-IR, Wasm, Native sources 2022-10-02 19:04:37 +00:00
Ilya Gorbunov 34de2d9155 Trim trailing spaces in generated docs of builtins 2022-10-02 19:04:36 +00:00
Paŭlo Ebermann 418c530820 docs: mod/rem: clarify who is dividend and divisor 2022-09-30 15:41:55 +03:00
konstantin.tskhovrebov dffdc26208 Fix gradle configuration cache in KotlinNativeLinkArtifactTask. 2022-09-30 09:54:36 +00:00
konstantin.tskhovrebov c83286ef7e Set Xcode test device ID only if Xcode is available. 2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov 0ffb370579 Make Xcode utils public for gradle integration tests. 2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov 239a1a4bab Make Xcode utils nullable for non Apple hosts. 2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov 321e436132 Make KotlinNativeLinkArtifactTask configuration lazy with gradle properties.
It is needed for lazy configuration the 'embedBitcode' mode for example.
Because it requires Xcode invocation.
2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov 7ca5750255 Make 'Framework.embedBitcodeMode' lazy provider. 2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov 8c2b2eb278 Make 'KotlinNativeSimulatorTest.device' lazy property 2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov 10947e2c45 Change a hardcoded Xcode test device to getting from the device list. 2022-09-30 09:54:33 +00:00
konstantin.tskhovrebov afa8a577cc [KT-54060] Disable bitcode embedding to frameworks for Xcode >= 14. 2022-09-30 09:54:33 +00:00
Ilya Goncharov c726360ad2 Change policy with legacy compiler backend
[JS] Remove incremental js jps test

[JS] Remove test of maven js archetype

[JS] Fix another one test

[JS] Fix tests for jps

[JS] Try to fix maven test data

[JS] Fix test data

[JS] Fix test data for ant

[JS] Fix jsExtraHelp test

[JS] Fix test run from not-Gradle build tools

[JS] Set flag without compiler error

[JS] Disable warnings and errors in legacy compiler called from Gradle

[JS] Proofread messages

[JS] Not proofread messages

KT-42326
2022-09-29 13:56:30 +00:00
Alexander Likhachev a3ad0a6e88 [Gradle, K/N] Fix deprecation message for endorsed libraries
#KT-54177
2022-09-29 13:37:11 +02:00
konstantin.tskhovrebov 5ca9d3d706 [KT-53191] Fix header dirs inputs for CInteropProcess task. 2022-09-29 07:19:45 +00:00
Nikolay Krasko 8517249776 Update plexus-component-metadata plugin 1.7.1 -> 2.1.0
There's an unstable order of components in plexus/components.xml

KTI-729
2022-09-28 15:26:41 +00:00
Yahor Berdnikau 1967c49914 Fix wrong jitpack.io repository url in test project 2022-09-28 14:34:54 +02:00
Alexander Likhachev daf14d0931 [Gradle, K/N] Deprecate endorsed libraries
#KT-54177 Fixed
2022-09-28 10:23:12 +00:00
Yahor Berdnikau 5924a80ec8 Use Task.doNotTrackState api
This api is faster replacement for 'task.outputs.upToDateWhen { false }'
 approach.

^KT-52624 Fixed
2022-09-28 09:07:27 +00:00
Yahor Berdnikau 037f41526f Run Gradle integration tests against Gradle 7.3.3
^KT-52624 In Progress
2022-09-28 09:07:27 +00:00
Sebastian Sellmair 05700e09f4 [Gradle] Fix CInteropCommonizerTask.CInteropCommonizerDependencies.dependencies resolving to early
^KT-54202 Verification Pending
2022-09-27 20:21:31 +00:00
Yahor Berdnikau c198d4d90d Simplify cache-redirector script apply method
Now it could be only be applied inside settings file pluginManagement
block. This will update both settings repositories and all projects in
the repo with cache redirection settings.
2022-09-27 14:04:43 +00:00