Commit Graph

6680 Commits

Author SHA1 Message Date
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
Ilya Gorbunov efa09cbd80 Update dokka version for building stdlib docs 2022-01-19 17:24:53 +03:00
Alexander Likhachev 5199981d96 [Gradle] Check JVM targets only if mixed Java/Kotlin sources are present
#KT-48408 Verification Pending
2022-01-19 14:16:19 +00:00
Alexander Likhachev b0d7c97ad2 [Gradle] Adjust test for KT-48408 to not fail without Kotlin sources 2022-01-19 14:16:18 +00:00
Alexander Likhachev d9b279e675 Revert "[Gradle, JVM] Validate JVM targets even if compiler isn't called"
This reverts commit aa52a60f
2022-01-19 14:16:18 +00:00
Alexander Korepanov 59173baf5a [JS IR] Pass forward -Xir-property-lazy-initialization option
Pass forward -Xir-property-lazy-initialization option
for the incremental cache.

^KT-50175 Fixed
2022-01-19 13:28:47 +00:00
Yahor Berdnikau be020c588c Clarify the case when a new benchmark project should be added
^KT-49921 Fixed
2022-01-17 14:24:44 +00:00
Yahor Berdnikau 4fe27cce07 Add benchmarks for kotlin-graphql library.
This library uses Spring plus kapt.

^KT-49921 In Progress
2022-01-17 14:24:43 +00:00
Yahor Berdnikau ee9965a139 Add more benchmarks for Duckduckgo app
^KT-49921 In Progress
2022-01-17 14:24:43 +00:00
Yahor Berdnikau 3411012596 Fix changes in Android Java sources prevents incremental compilation
Such sources are attached to kapt generate stubs task to re-trigger it
on Java sources change, but they are not participate in actual stubs
generation.

^KT-50664 Fixed
2022-01-17 09:33:32 +00:00