Commit Graph

7731 Commits

Author SHA1 Message Date
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
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
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
Nikolay Krasko 8af5ade2f4 Fix regular expressions in testHostSpecificSourceSetsInTransitiveDependencies
Test is now flaky because sometimes the expected names has checksum with
the `-` char.
`published-dependency-1.0-commonMain-Q-PvLQ.klib`
2022-09-27 13:15:05 +00:00
Nikolay Krasko 7da7c4e0bb Distinguishable output and failure reports for gradle integrations tests 2022-09-26 12:48:28 +00:00
Nicklas Ansman Giertz 1cc46ab7fa KAPT: allow setting aptMode in the maven plugin
This fixes KT-41129
2022-09-26 12:20:33 +02:00
Sebastian Sellmair 2845929bc0 [Gradle][MPP] Add documentation to CompositeMetadataArtifactContent
^KT-54135 Verification Pending
2022-09-26 08:18:19 +00:00
Yahor Berdnikau 309c57f860 Update Gradle plugins common Gradle API version to 7.5
^KT-54142 Fixed
2022-09-23 15:36:53 +00:00
Pavel Kargashinsky 221043a74d kargashinsky/mute-unresolved-target-tests-mac
[Gradle][Tests] Fix CommonNativeIT testData

[Gradle][Tests] Mute 2 native tests on Mac host

- Since 1.7.20 kotlinVersion Mac host can compile all native targets,
so tests with "unsupported targets" on Mac are obsolete.

Merge-request: KT-MR-7133
Merged-by: Pavel Kargashinsky <Pavel.Kargashinsky@jetbrains.com>
2022-09-23 09:59:18 +00:00
konstantin.tskhovrebov dfbdafeb3c [KT-51517] Mute ConfigurationCacheIT.testCommonizer due configuration cache issue. 2022-09-23 08:06:53 +00:00
konstantin.tskhovrebov c9184c6781 [KT-51517] Pass external cinterop dependencies to Commonizer. 2022-09-23 08:06:53 +00:00