Alexander Korepanov
d584cfc31d
Remove workaround for KT-45620 from NumbersTest.kt.
2022-01-28 17:10:01 +00:00
Pavel Kirpichenkov
a220624769
[Commonizer] move commonizer setting keys to the commonizer-cli module
...
Get rid of `OptionAlias` as unnecessary; keys will be used directly
2022-01-28 12:22:50 +03:00
Pavel Kirpichenkov
2609175d58
[Commonizer] Introduce commonizer settings
...
Add settings for a more fine-grained control over commonizer features
that will be added in the future
Add setting and KGP flag for optimistic number commonization
KT-51011
2022-01-28 12:22:50 +03:00
nataliya.valtman
5e721122e9
Add human readable timestamp in statistic
2022-01-28 09:58:00 +03:00
Pavel Punegov
10ac98b029
[Gradle][test] Fix Cocoapods integration tests
...
The change 782b4f64be added plugin
management to settings that require at least 2 properties to be set.
2022-01-27 12:42:03 +00:00
Sergej Jaskiewicz
d5e46e0607
[JS IR] Introduce intrinsics for slicing array-like objects
2022-01-27 11:06:16 +00:00
Sergej Jaskiewicz
08e6116ecb
[JS IR] Introduce jsArguments() intrinsic function
...
`jsArguments()` is lowered into a reference of the `arguments` object.
This is useful for extracting varargs, when calling Kotlin code from
JavaScript. For a concrete example, see KT-15223.
2022-01-27 11:06:16 +00:00
Sergey Igushkin
62c351874f
KT-49089 Fix using @OptionalExpectation annotations from dependencies
...
Fix the behavior of the common (metadata KLIB) compiler with
hierarchical project structures support as
it analyses usages of annotations from dependencies that are marked
with `@OptionalExpectations`.
The fix on the Kotlin Gradle plugin side is to add the
-Xcommon-sources=... compiler argument to those the invocations of the
compiler, just as it is done with the other compilers.
Issue #KT-49089 Verification Pending
2022-01-27 06:32:08 +00:00
sebastian.sellmair
162dcef73a
[KPM] Mark overwriting custom capabilities as advanced
2022-01-26 21:51:58 +00:00
sebastian.sellmair
252a966cb4
[KPM] Kotlin...CapabilitiesContainer: Remove API to read capabilities
2022-01-26 21:51:58 +00:00
sebastian.sellmair
0ae47fca51
[KPM] KotlinGra..onArtifactsContext: Remove ConfigurationPublications interface
...
This is done to prevent unintentional side effects from Gradle, which
might act hostile against third-party implementations of Gradle public
API interfaces.
2022-01-26 21:51:57 +00:00
sebastian.sellmair
49cfe42914
[KPM] Always set 'KotlinFragmentModuleCapability'
...
If the configuration is not published, it is expected to set
`isCanBeConsumed=false` so the Capability should not affect anything.
2022-01-26 21:51:57 +00:00
sebastian.sellmair
96ec6466c7
[KPM] Implement 'transitiveRuntimeOnly' dependency configuration
2022-01-26 21:51:57 +00:00
sebastian.sellmair
6720742b84
[KPM] Replace 'fun interface' in favor of factory functions
2022-01-26 21:51:56 +00:00
sebastian.sellmair
c684588ebb
[KPM] KotlinFragmentPlatformAttributes: Only set jvm environment on Gradle 7+
2022-01-26 21:51:56 +00:00
sebastian.sellmair
629f7a66d6
[KPM] Implement KotlinFragmentConfigurationDefinitionTest
2022-01-26 21:51:55 +00:00
sebastian.sellmair
2d8bcc11ae
[KPM] Split KotlinFragmentConfigurationDefinition source file
...
... and tweak names of extension functions to make them more coherent
with Gradle APIs
2022-01-26 21:51:55 +00:00
sebastian.sellmair
7aceda94ac
[KPM] Convert noop implementations from 'object' to 'val'
...
This is to avoid leaking the extension function defined
inside those objects to the global namespaces.
Using these extensions on the receiver outside the
noop object makes no sense.
2022-01-26 21:51:55 +00:00
sebastian.sellmair
dfac177d35
[KPM] Rename ConfigurationContextImpl to KotlinGradleFragmentConfigurationContextImpl
2022-01-26 21:51:54 +00:00
sebastian.sellmair
0c579ec9b6
[KPM] variantPublishing: Temporary workaround to only publish .aar
2022-01-26 21:51:54 +00:00
sebastian.sellmair
d5823a5f7b
[KPM] Implement kotlin-gradle-plugin-kpm-android module for prototyping
2022-01-26 21:51:53 +00:00
sebastian.sellmair
590bf6ed9a
[KPM] Implement preliminary 'ExternalVariantApi'
2022-01-26 21:51:53 +00:00
sebastian.sellmair
986cf1ae51
[KPM] Implement *ConfigurationDefinition and Kotlin*VariantConfig APIs
...
Those new APIs shall make it easier for external Variant authors
(Android) to reuse logic from KGP with more clear semantic.
2022-01-26 21:51:53 +00:00
sebastian.sellmair
47a1d2aec6
[Gradle] Fix wrong project path to :kotlin-test:kotlin-test-junit
2022-01-26 21:51:52 +00:00
sebastian.sellmair
84caad7ba2
[Gradle][MPP] Remove duplicated dependencyProjectStructureMetadata input
...
This input is now tracked in the new `ChooseVisibleSourceSetProjection`
KT-50952
2022-01-26 17:18:17 +00:00
sebastian.sellmair
af61ea9cb7
[Gradle][MPP] Correctly rename test for KT-50952
2022-01-26 17:18:16 +00:00
sebastian.sellmair
abed5b98ac
[Gradle][MPP] Implement ChooseVisibleSourceSetProjection as nested task input
...
^KT-50952 Verification Pending
2022-01-26 17:18:16 +00:00
sebastian.sellmair
f7c3ed7888
[Gradle][MPP] Add MppCInteropDependencyTransformationIT test for KT-50952
2022-01-26 17:18:16 +00:00
Mikhail Glukhikh
ad0d0ca47f
Drop redundant Suppress("RemoveExplicitTypeArguments")
2022-01-26 12:19:55 +00:00
Dmitriy Dolovov
3ec4a8d6f3
[IR] Rename LinkageError symbol to IrLinkageError
...
This is needed to 1) avoid ambiguity about the type of linkage used in Kotlin/Native compiler, 2) have the same exception name in JS and Native backends.
^KT-50775
2022-01-26 13:36:24 +03:00
sebastian.sellmair
9c124e9f30
[Gradle][MPP] Add mavenCentral to repositories for KT-50847 test
2022-01-25 16:59:28 +00:00
sebastian.sellmair
5e931a3039
[Gradle][MPP] Implement test ^KT-50847 missing cinterop in supported target
2022-01-25 16:59:26 +00:00
Mads Ager
f5ec168b89
Support namespace Android Gradle Plugin BaseExtension value.
...
This is in addition to supporting the `package` attribute in
AndroidManifest.xml.
In AGP 7 developers can use `namespace` instead of the manifest
attribute. In AGP 8 it will no longer be possible to use the `package`
attribute in AndroidManifest.xml.
^KT-50887 Fixed
2022-01-25 17:16:18 +03:00
Svyatoslav Scherbina
26a970bd1e
[Gradle] Unmute BuildCacheRelocationIT.testRelocationNative on Windows
...
The actual problem was fixed in 4c45f71e
^KT-48283
2022-01-25 09:44:53 +00:00
Yahor Berdnikau
e05f189082
Convert KotlinProjectIT to new test dsl
...
^KT-45745 In Progress
2022-01-24 23:27:28 +01:00
Yahor Berdnikau
1ac579b9b6
Convert SamWithReceiverModelIT to new test dsl
...
^KT-45745 In Progress
2022-01-24 23:27:28 +01:00
Yahor Berdnikau
8486972845
Convert NoArgModelIT to new test dsl
...
^KT-45745 In Progress
2022-01-24 23:27:28 +01:00
Yahor Berdnikau
eba9f697c0
Convert KotlinAndroidExtensionIT to new test dsl
...
^KT-45745 In Progress
2022-01-24 23:27:28 +01:00
Yahor Berdnikau
b07ba5f712
Convert KaptModelIT to new test dsl
...
^KT-45745 In Progress
2022-01-24 23:27:27 +01:00
Yahor Berdnikau
052b5c347e
Convert AllOpenModelIT to new test dsl
...
^KT-45745 In Progress
2022-01-24 23:27:27 +01:00
Yahor Berdnikau
e632189651
Add method to fetch from the project available models
...
^KT-45745 In Progress
2022-01-24 23:27:24 +01:00
Nikolay Krasko
da556452c9
Use project directory as a base for stdlib js build
...
Some sources for kotlin-stdlib-js-ir are not copied to build dir
and used directly from the project.
Modify kotlin.test/js-ir as well, while there's no evidence of the
problem so far.
Should be removed after KT-50876 fix.
^KTI-730 In Progress
2022-01-25 00:58:54 +03:00
Ilya Goncharov
d52fa8dd9b
[Gradle, JS] Add test on JS IR IC case with multiple artifacts
2022-01-24 14:46:50 +00:00
Yahor Berdnikau
35ef8cc6da
Show user-friendly message on OOM compilation error
...
This should provide a hint to user how to mitigate out-of-memory error
on compilation inside Kotlin daemon or in-process.
^KT-47522 Fixed
2022-01-24 10:30:53 +01:00
Yahor Berdnikau
d754c60c32
Migration DukatIntegrationIT tests to new DSL
...
^KT-45745 In Progress
2022-01-21 23:37:25 +03:00
Yahor Berdnikau
883432fbb8
Rename KotlinToolingMetadataIT to be considered as MPP test
...
^KT-45745 In Progress
2022-01-21 23:05:22 +03:00
Yahor Berdnikau
22623016b8
Rename HierarchicalStructureOptOutIT to be considered as MPP test
...
^KT-45745 In Progress
2022-01-21 23:05:21 +03:00
Yahor Berdnikau
8264623e3d
Move AppleFrameworkIT into native tests
...
^KT-45745 In Progress
2022-01-21 23:05:20 +03:00
Yahor Berdnikau
cb081f3752
Move NativeLibraryDslIT into native tests
...
^KT-45745 In Progress
2022-01-21 23:05:18 +03:00
Ivan Gavrilovic
d85be5f259
[Gradle] Add CompilerPluginConfig to API
...
Add a convenient way to specify Kotlin compiler
plugin options with the CompilePluginConfig,
which is added to the -api subproject.
^KT-50869 In Progress
2022-01-21 22:53:54 +03:00