Commit Graph

10094 Commits

Author SHA1 Message Date
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
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
Nikolay Krasko 87bf6e010e Use relative paths in stdlib klib artifacts
Intentionally use doFirst section to trick gradle and not affect
inputs with absolute path usage.

Old behaviour can be returned by kotlin.build.use.absolute.paths.in.klib
in local.properties

Should be removed after KT-50876 fix.

^KTI-730 In Progress
2022-01-20 21:50:20 +03: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
Igor Yakovlev c76e7bc9d8 [WASM] Any.toString implementation 2022-01-19 17:01:11 +03: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
Sergej Jaskiewicz ceb744b53b Revert "[JS IR] [runtime] Remove valueOf method from Long"
This reverts commit e13b6b2a90.

The significance of the breakage caused by the removal of `valueOf`
was underestimated.

#KT-50202 Open
2022-01-18 10:33:54 +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
Ilya Gorbunov 906a351a81 Regenerate standard library generated code 2022-01-17 15:38:27 +03: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
Mikhail Glukhikh 0f2f6334c2 Fix error message for SUPERTYPE_IS_SUSPEND_FUNCTION_TYPE
#KT-48907 Fixed
2022-01-14 22:20:22 +03:00
Evgeniy.Zhelenskiy e97ca2ada4 [Psi2Ir, Fir2Ir] Generate toString, hashCode, equals methods for MF VC 2022-01-14 13:51:57 +00:00
Yahor Berdnikau ec1c585da4 Fix android debug keystore fix was not applied for library plugin 2022-01-13 18:32:23 +03:00
Dario Seidl 8d8bf6473b Fix typo in description of Float.ulp
Replace `Float.NIN_VALUE` with `Float.MIN_VALUE`.
2022-01-13 17:21:47 +03:00
Yahor Berdnikau 68f4580492 Fix kaptGenerateStubs doesn't ignore empty Android source directories
^KT-48617 Fixed
2022-01-13 13:11:20 +00:00
Yahor Berdnikau a378e1e128 Bump Kotlin stable release to version 1.5.32
^KT-45745 In Progress
2022-01-13 10:30:54 +01:00
Yahor Berdnikau 0f3d7d5ad8 Fix typo in parameter name
^KT-45745 In Progress
2022-01-13 10:30:53 +01:00
Yahor Berdnikau 1c1e8f3c85 Migrate SubpluginsIT to new test DSL
^KT-45745 In Progress
2022-01-13 10:30:50 +01:00
Sergey Igushkin eddf8c9e72 KT-50736: Fix the implementation of whenEvaluated
Re-implement `whenEvaluated` using a constant number of calls to
`withPlugin` per project.

The approach with `plugins.all { ... }` introduced by the fix
of KT-50509 had an issue with Android plugins applied last in the build:
in those cases that implementation didn't dispatch the actions after
Android and instead fired them earlier in `afterEvaluate`, because
`hasPlugin` doesn't return true in the callback when that exact plugin
is applied.

This change preserves the performance similar to that of the previous
implementation.

Issue #KT-50736

Merge-request: KT-MR-5418
2022-01-12 13:13:56 +00:00
Sergey Igushkin 3ac472ceb3 Fix Android unit test tasks not running in allTests
The Android unit test tasks were not created by the Kotlin Gradle
plugin, so the plugin didn't add the
tadk dependencies to its aggregating
`allTests` task.

Issue #KT-38456
Issue #KT-44227
2022-01-11 22:15:14 +00:00
Hung Nguyen 8d298bd25c Fixed possible hanging of metrics collection in KGP
#KT-50719 Fixed
2022-01-11 19:15:42 +03:00