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
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
Matthew Haughton
38d0105e74
Fix typo exists -> exist
2022-09-02 12:59:33 +02: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
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
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
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
Yahor Berdnikau
eaf6177015
Add kotlin-test variant dependency in a lazy way
...
^KT-41642 In Progress
2022-08-25 12:43:15 +00:00
Yahor Berdnikau
4441033134
Add kotlin-stdlib dependency in a lazy way
...
^KT-41642 In Progress
2022-08-25 12:43:15 +00:00
Ilya Gorbunov
64a11c555f
Suppress extension shadowing member for rangeUntil extensions #KT-52933
...
Until the next bootstrap where they can be removed entirely
2022-08-24 22:22:53 +00:00
konstantin.tskhovrebov
f3fc5cbc42
[KT-53695] Cocoapods: use special task for framework copying.
2022-08-24 14:28:23 +00:00
Martynas Petuška
c96e1f70fb
KT-52951 ( #4881 )
...
* KT-52951
Configurable js test browser target
* Update KotlinKarma.kt
Comma separated multiple browser support
* Update KotlinKarma.kt
* Use PropertiesProvider
2022-08-24 13:33:02 +03:00
Yahor Berdnikau
55e1061862
Mark testFixtures dependencies as optional in published pom
...
Same as Gradle does by default.
^KT-53670 Fixed
2022-08-24 11:19:09 +02:00
konstantin.tskhovrebov
45fc5fb76b
[KT-47355] Fix sym link paths in macos fat framework.
2022-08-23 17:06:33 +02:00
Yahor Berdnikau
55cfb3af20
Remove deprecated GFileUtils usage
...
^KT-53615 Fixed
2022-08-23 12:24:04 +00:00
Alexander Likhachev
3a1d83e7c5
[Gradle, K/N] Add test for KT-52303
2022-08-22 21:10:38 +00:00
Alexander Likhachev
d7c1f6765e
[Gradle, K/N] Compute binaries output dir lazily
...
#KT-52303 Fixed
2022-08-22 21:10:38 +00:00
Vsevolod Tolstopyatov
5054e301be
[stdlib] Improve EnumEntries
...
* Provide short-circuit methods for contract "EnumEntries contains all
enum entries"
* Make EnumEntries serializable
* Introduce more convenient overload for other backends
#KT-53152
Merge-request: KT-MR-6867
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2022-08-22 16:50:28 +00:00
Dmitriy Novozhilov
cc00dcc038
[Serialization] Reorganize module structure
2022-08-22 17:23:18 +03:00