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
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
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
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
Ivan Gavrilovic
c93594331b
[Gradle] Move some of the DSL to the API module
...
DSL exposed in the build scripts in effectively
an API, so this change moves it to the kotlin-gradle-plugin-api
subproject.
^KT-50869 In Progress
2022-01-21 16:57:23 +03:00
nataliya.valtman
791762d7ea
Update kotlin report properties
...
-add kotlin.build.report.output to add file/http/build_scan reports
-all reports verbose by default
-verbose reports includes compiler metrics
-fix "custom value exceed length limit"
2022-01-21 09:43:21 +00:00
Ilya Goncharov
72656b49f4
[Gradle, JS] Fix Native test and not consider artifact in path
2022-01-21 09:17:41 +00:00
Ilya Goncharov
443c0bf74f
[Gradle, JS] Fix case with multiple artifacts in module
2022-01-21 09:17:41 +00:00
Yahor Berdnikau
5f22bcd03b
Migrated ExecutionStrategyIT tests to new DSL
...
^KT-45745 In Progress
2022-01-20 14:20:57 +01:00
Yahor Berdnikau
b3fba1faad
Fix empty Android layout directories are not ignored
...
Kotlin Android extensions plugin adds layout directories as input to
KotlinCompile task when experimental flag is enabled. This breaks
cache relocation.
^KT-48849 Fixed
2022-01-19 15:47:33 +01:00