Commit Graph

11129 Commits

Author SHA1 Message Date
Abduqodiri Qurbonzoda faedd76b32 Remove deprecation from ConcurrentModificationException constructors #KT-53927
The constructors were introduced in jdk7,
thus their usage was prohibited in Common code.
Now that jvmTarget is 1.8 and jdk8+ is used to compile stdlib,
these constructors are available on all platforms.
2022-09-08 14:01:09 +00:00
Abduqodiri Qurbonzoda 2d0e95cea0 Remove StringBuilder functions with nonnull parameter type in K/N and JS #KT-53864 2022-09-08 12:16:55 +00:00
Abduqodiri Qurbonzoda 0208246094 Remove StringBuilder functions with renamed parameters in K/N #KT-53864 2022-09-08 12:02:37 +00:00
Abduqodiri Qurbonzoda 73a65c1bb1 Promote top-level kotlin.math.cbrt() to stable #KT-53277 2022-09-08 12:00:58 +00:00
Abduqodiri Qurbonzoda 0763ab7bc1 Promote DurationUnit.toTimeUnit() and TimeUnit.toDurationUnit() to stable #KT-53277 2022-09-08 11:59:24 +00:00
Yahor Berdnikau 59a052a615 Add '@NormalizeLineEndings' annotation to task inputs
Excluding '@Classpath' inputs due to the bug in Gradle:
https://github.com/gradle/gradle/issues/20708.

Also MacOs only tasks are excluded.

^KT-50673 Fixed
2022-09-07 13:24:25 +00:00
Dmitriy Novozhilov 671083c701 [Serialization] Implement serialization checker for K2 version of plugin
^KT-53178 Fixed
2022-09-07 07:57:38 +00:00
Anton Lakotka b5ff063164 [Gradle] Make jvmMainClasses depend on javaCompile task
^KT-31459 Verification Pending
2022-09-07 05:04:00 +00:00
Anton Lakotka 164d66595c Revert "[Gradle] Make target lifecycle task depend on classes compilation outputs"
This reverts commit 564e3b064a.
2022-09-07 05:03:59 +00:00
Anton Lakotka a4cfb99de4 [Gradle] Add circular dependency check for KT-31459
^KT-31459
2022-09-07 05:03:59 +00:00
Yahor Berdnikau 4861aa3381 Fix typo in file name 2022-09-06 20:07:54 +00:00
Yahor Berdnikau 885cb5f1c8 Update Gradle with android tests setup based on feedback
- Change back 'TestVersions.AGP' to be 'object class' with constants
inside, so they could be referenced inside version annotation
- Fix issue when AGP minimal version could be higher than AGP max
version

^KT-45747 Fixed
2022-09-06 20:07:53 +00:00
Sebastian Sellmair 794c9d16a3 [Gradle] CompilationDetails: Use source set hierarchy instead of compilations to determine common sources
^KKT-50161 Verification Pending
2022-09-06 08:35:54 +00:00
Sebastian Sellmair ab73251af0 [Gradle] Implement KT50161AndroidBuildCacheTest to cover KT-50161 2022-09-06 08:35:53 +00:00
Pavel Mikhailovskii 6a14400342 KT-53804 Restore old and incorrect logic of generating InnerClasses attributes for kotlin-stdlib 2022-09-05 14:02:52 +00:00
nataliya.valtman 57fdfbe860 Fix finish time for build finish event for build statistic 2022-09-05 10:39:53 +00:00
Yahor Berdnikau b8b0b279ee Remove 'kapt.user.worker.api' property
Now Kapt is always run via Gradle workers.

^KT-48827 Fixed
2022-09-02 18:08:41 +00:00
Abduqodiri Qurbonzoda f3e8816dc3 Do not generate JVM 1.8+ annotation targets in stdlib, -jdk7, -jdk8, reflect
See #KT-53712
2022-09-02 14:59:24 +00:00
Matthew Haughton 38d0105e74 Fix typo exists -> exist 2022-09-02 12:59:33 +02:00
Artem Kobzar 0bb0be8703 feat(KT-48814): represent all of the external declarations nullable properties as an optional fields inside d.ts. 2022-09-02 10:50:20 +00:00
Yahor Berdnikau a52d8f0364 Pass path to java source file as-is
Since Kotlin 1.7.0 plugin is tracking each java file individually in
task, rather than java SourceSet root directories. Such approach removes
requirement to pass them via `-Xjava-source-roots` compiler argument.

^KT-53390 Fixed
2022-09-02 10:49:36 +00:00
Ilya Gorbunov 12d3ef41dc Use older JDK toolchains for compiling stdlib and stdlib-jdk7
To prevent using newer JDK API in kotlin sources of these projects.
Note that java sources (of stdlib mainly) are still compiled with JDK 8.

#KT-51907
2022-09-01 16:52:36 +00:00
Alexander Udalov abaffeddab Remove LocalClassProtoTestGenerated, replace with kotlinp tests
This test uses a hacky mode of the compiler which is not worth it to
support further (especially in K2), `USE_SINGLE_MODULE`, where
everything is compiled in one module. The purpose of the test is just to
check that metadata for local/anonymous classes is written correctly.
So we can replace it with the tests on kotlinp, which uses
kotlinx-metadata-jvm and dumps all loaded metadata to text.

This replacement is not perfect, in particular because it won't check
that the reflection machinery is able to load this metadata, and because
it won't check that annotations are loaded correctly from the bytecode.
But IMHO it's good enough, there are box tests on reflection on local
classes (e.g. `reflection/annotations/localClassLiteral.kt`), so this
way is better than having to support the weird compiler mode for just
one test.
2022-08-31 20:54:50 +02:00
nataliya.valtman d22cccdc4d Add property to protect sensitive data in http reports
#KT-53773 Fixed
2022-08-31 15:33:57 +00:00
Anton Lakotka 2e7a9f737f fixup! Update defFileProperty initialisation and remove empty method from test 2022-08-31 11:06:37 +00:00
Anton Lakotka 073d75179d [Gradle] CInterop Task input should be modifiable through Cinterop DSL
For configuration cache compatibility reasons Project object
was removed from DefaultCInteropSettings and instead
related factory services were used.

^KT-53704 Verification Pending
2022-08-31 11:06:37 +00:00
Anton Lakotka 45581c11fa [Gradle] Add test for KT-53704
CInterop Task input should be modifiable through Cinterop DSL
2022-08-31 11:06:37 +00:00
Nikolay Krasko 01f567a16d Disable yarn and npm tasks from the build when tests are not active
Kotlin build shouldn't depend on npm during while deploy artefacts tasks

^KTI-887 Fixed
^KT-53687 Related
2022-08-30 22:15:16 +00:00
Alexander Likhachev 2a53273f4d [Gradle] Add tests for KT-53686 2022-08-30 14:49:30 +00:00
Alexander Likhachev fa98430a67 [Gradle] Use valid XCFramework name in fat framework configuration
#KT-53686 Fixed
2022-08-30 14:49:30 +00:00
Alexander Likhachev 798f0efcf6 [Gradle] Prevent false positive warning about XCFramework names mismatch
#KT-53686
2022-08-30 14:49:29 +00:00
Alexander Likhachev 3836915012 [Gradle] Skip XCFramework task when there's no input frameworks
#KT-53686
2022-08-30 14:49:29 +00:00
Ilya Gorbunov 8b95257143 Reduce the chance shuffle produces an identical permutation in test (part 2) 2022-08-29 22:14:24 +02:00
Artem Kobzar 8b826a865b [K/JS, K/WASM] feat(Enum.entries): add support of new enum static field for JS and WASM. 2022-08-29 16:04:12 +00:00
Yahor Berdnikau 0d2e9e7013 Change 'KotlinCompile.classpath' task input deprecation level to ERROR
^KT-51679 Fixed
2022-08-29 08:36:17 +00:00
nataliya.valtman 30dd848b43 Add custom_values_limit property to configure build scan report
#KT-53732 Fixed
2022-08-26 15:22:12 +00:00
nataliya.valtman 214586c8ee Fix repeating custom values in build scan. Refactor build statistic 2022-08-26 15:22:12 +00:00
Sergey Bogolepov 2e22a5bd41 [K/N] Update annotations documentation for the new MM 2022-08-26 14:35:05 +00:00
Sebastian Sellmair 979ec77f53 [Gradle][MPP] Implement additional MultiplatformAndroidSourceSetLayoutV2DiagnosticsTest
KT-53709
2022-08-26 13:51:28 +00:00
Sebastian Sellmair 7df34011ec [Gradle][MPP] MultiplatformLayoutV2MultiplatformLayoutV1StyleSourceDirUsageChecker: Don't emit warning on ambiguous SourceSet
^KT-53709 Verification Pending
2022-08-26 13:51:28 +00:00
Sebastian Sellmair 10878e5967 [Gradle][MPP] Implement initial MultiplatformAndroidSourceSetLayoutV2DiagnosticsTest
... to cover KT-53709
2022-08-26 13:51:27 +00:00
Sebastian Sellmair d4bded85cd [Gradle][MPP] Increase .toString() readability for KotlinAndroidSourceSetLayoutChecker.Diagnostic
KT-53709
2022-08-26 13:51:27 +00:00
Sebastian Sellmair 5a447a823f [Gradle][MPP] Introduce DiagnosticReporter and Diagnostic APIs...
... for KotlinAndroidSourceSetLayoutChecker

KT-53709
2022-08-26 13:51:27 +00:00
Ilya Gorbunov 38099e11c3 Remove rangeUntil extensions that are now shadowed by members #KT-52933 2022-08-25 19:24:11 +00:00
Anton Lakotka 564e3b064a [Gradle] Make target lifecycle task depend on classes compilation outputs
Not just on compile task

^KT-31459 Verification Pending
2022-08-25 14:56:35 +00:00
Anton Lakotka 7c083faea7 [Gradle] Test that task jvmMainClasses depends on compileJava
^KT-31459
2022-08-25 14:56:34 +00:00
Alexander Likhachev 3d8d3465d9 [Gradle] Revert removed testAndroidExtensionsIncremental AGP IT
It was disabled because of KT-38622 and then accidentally removed. This commit reverts the removal and makes the test to use the experimental classpath snapshots IC
2022-08-25 15:31:31 +02:00
Yahor Berdnikau e6150f5ef8 Fix test project gradle debug flag is wrongly propagated to the build 2022-08-25 12:43:16 +00:00
Yahor Berdnikau 409a85f552 Split dependency management code into 3 files
^KT-41642 Fixed
2022-08-25 12:43:16 +00:00
Yahor Berdnikau 632009345d Add JS stdlib dependency only when JS target is set
^KT-41642 In Progress
2022-08-25 12:43:16 +00:00