Commit Graph

10330 Commits

Author SHA1 Message Date
Yahor Berdnikau 14dc20186d Migrate IncrementalCompilationMultiProjectIT test to new dsl
^KT-45745 In Progress
2022-02-21 23:49:12 +03:00
Yahor Berdnikau a5c1febf88 Convert IncrementalJavaChangeIT test to new tests dsl
^KT-45745 In Progress
2022-02-21 23:49:11 +03:00
Yahor Berdnikau f8a3b8bf1f Add helper to get paths related to the project dir
^KT-45745 In Progress
2022-02-21 23:49:11 +03:00
Yahor Berdnikau 01d5b92b33 Add additional build options required for incremental tests
^KT-45745 In Progress
2022-02-21 23:49:10 +03:00
Alexander Udalov bb77078362 Do not use embeddable compiler for K/N in testMppBuildWithCompilerPlugins 2022-02-21 19:56:22 +01:00
Ivan Gavrilovic 0074e0209c KT-41456: Incremental KAPT - check compiled sources before running incrementally
Because incremental KAPT tries to reuse .class files produced by kotlinc
and javac, it should check for their existence before starting
an incremental run. Otherwise, annotation processors that perform type
validation will fail to run.

Current check counts the number of declared types in processed .java
sources, and it makes sure the total number of .class files in compiled
sources dirs is equal or higher. Otherwise, KAPT runs non-incrementally.

Tests: KaptIncrementalWithIsolatingApt.testMissingKotlinOutputForcesNonIncrementalRun

^KT-41456 In Progress
2022-02-21 18:10:00 +03:00
Yahor Berdnikau 9943b146e9 Remove 'kotlinPluginVersion' property
^KT-47318 Fixed
2022-02-21 09:46:42 +00:00
Yahor Berdnikau 9d0d26e15d Restore 'KotlinGradleSubplugin' as marker interface.
This avoids build failure in 'buildSrc' module with 'kotlin-dsl' applied
with 'ClassNotFound' exception.

^KT-51378 Fixed
2022-02-21 09:42:23 +00:00
Ilya Goncharov 2173ce77d5 rra/ilgonmic/fork-options-js-test
[Gradle, JS] Environment instead of fork options

[Gradle, JS] Add test on fork options

[Gradle, JS] Add fork options to kotlin js test

Merge-request: KT-MR-5793
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-51414 fixed
2022-02-21 08:41:29 +00:00
Ilya Matveev f7468cf9bc [K/N][stdlib] Support \V, \v, \H, \h, \R in regex engine
Issue #KT-50742 Fixed
2022-02-21 13:20:23 +07:00
Yahor Berdnikau 798a15c450 Fix flaky native test. 2022-02-18 19:37:07 +03:00
sebastian.sellmair 4a02e88df1 [KPM] kotlin-gradle-plugin-idea: Publish sources and javadoc jars
KT-51262
KT-51220
2022-02-18 16:31:06 +00:00
Dmitriy Novozhilov e7e1aa1873 [Build] Add ability to enable rendering of diagnostic names via local.properties 2022-02-18 17:44:45 +03:00
Dmitriy Novozhilov baf300a815 [StdLib] Suppress INVISIBLE_REFERENCE alongside with INVISIBLE_MEMBER
This is needed to successful compilation of stdlib with FIR compiler
2022-02-18 17:44:43 +03:00
Dmitriy Novozhilov aef752a8cb [StdLib] Add -Xbuiltins-from-sources to arguments of stdlib for JVM
This flag is needed to successful compilation of stdlib with FIR compiler
2022-02-18 17:44:42 +03:00
Dmitriy Novozhilov 8993d5d2eb [Build] Detach :liraries:tools:dukat module from root gradle project
This is needed to prevent leaking dependency on `dukat:0.5.8-rc.4` into
  dependency of Kotlin project after import to IDE. This jar contains
  unshaded classes of some outdated compiler version and it confuses
  IDEA tooling (like debugger), so it shows those classes instead of
  real sources from project
2022-02-18 07:30:50 +00:00
Andrey Uskov 4bd61c75d0 Fixed collection of performance metrics if file output is not enabled 2022-02-18 10:11:28 +03:00
sebastian.sellmair 5ef90b4279 [KPM] kotlin-gradle-plugin-idea: bump minimalBackwardsCompatibleVersion
KT-51262
KT-51220
2022-02-17 20:19:34 +00:00
sebastian.sellmair 06625f63df [KPM] Mark IdeaKotlinFragmentDependencyImpl.Companion as internal
KT-51262
KT-51220
2022-02-17 20:19:33 +00:00
sebastian.sellmair 21d6c11bbb [KPM] Implement test to check if data classes are marked as internal
KT-51262
KT-51220
2022-02-17 20:19:32 +00:00
sebastian.sellmair fa13e38e91 [KPM] Reformat IdeaKotlinProjectModelObjectGraphTest
KT-51262
KT-51220
2022-02-17 20:19:32 +00:00
sebastian.sellmair 18d3854097 [KPM] Implement IdeaKotlinProjectModelObjectGraphTest
KT-51262
KT-51220
2022-02-17 20:19:32 +00:00
sebastian.sellmair 7a2eaa5101 [KPM] IdeaKotlinVariantImpl: Set serialVersionUID to 0
KT-51262
KT-51220
2022-02-17 20:19:31 +00:00
sebastian.sellmair 669c23dbb6 [KPM] Implement test - empty containers are equal
KT-51262
KT-51220
2022-02-17 20:19:31 +00:00
sebastian.sellmair 522915b6dc [KPM] kotlin-gradle-plugin-idea: Remove deepCopy functions
KT-51262
KT-51220
2022-02-17 20:19:30 +00:00
sebastian.sellmair 63578b701f [KPM] WIP deepCopy
KT-51262
KT-51220
2022-02-17 20:19:30 +00:00
sebastian.sellmair c56bf6b0e3 [KPM] IdeaKotlinFragment: Add moduleIdentifier
KT-51262
KT-51220
2022-02-17 20:19:29 +00:00
sebastian.sellmair ed1036a358 [KPM] Remove unused toKotlinIdeaVariant function
KT-51262
KT-51220
2022-02-17 20:19:29 +00:00
sebastian.sellmair 05259ddfa1 [KPM] Move Idea* models to Set/List over Collection
KT-51262
KT-51220
2022-02-17 20:19:28 +00:00
sebastian.sellmair 11d408f71e [KPM] Implement IdeaKotlinVariant
KT-51262
KT-51220
2022-02-17 20:19:27 +00:00
sebastian.sellmair 851303e62a [KPM] Make KotlinSerializableExternalModelSerializer private
KT-51262
KT-51220
2022-02-17 20:19:27 +00:00
sebastian.sellmair fc8d991058 [KPM] KotlinExternalModelId: Make type private
KT-51262
KT-51220
2022-02-17 20:19:27 +00:00
sebastian.sellmair 17c6274bf0 [KPM] kotlin-gradle-plugin-idea: bump minimalBackwardsCompatibleVersion
KT-51262
KT-51220
2022-02-17 20:19:26 +00:00
sebastian.sellmair 06b2f83774 [KPM] kotlin-gradle-plugin-idea: Improve testing with snapshots
KT-51262
KT-51220
2022-02-17 20:19:26 +00:00
sebastian.sellmair 969222c372 [KPM] kotlin-gradle-plugin: Remove default optIn for ExternalVariantApi
KT-51262
KT-51220
2022-02-17 20:19:25 +00:00
sebastian.sellmair 4371f0fad9 [KPM] kotlin-gradle-plugin-idea: bump minimalBackwardsCompatibleVersion
KT-51262
KT-51220
2022-02-17 20:19:25 +00:00
sebastian.sellmair 8a2b6f7884 [KPM] KotlinExternalModelContainerImpl: Fix corrupt container after access without deserializer
KT-51262
KT-51220
2022-02-17 20:19:24 +00:00
sebastian.sellmair 82ec54aead [KPM] kotlin-gradle-plugin-idea: Implement -Psnapshot property
When set, the backwards compatibility test will run against
a locally installed snapshot version

KT-51262
KT-51220
2022-02-17 20:19:24 +00:00
sebastian.sellmair 5ad1292b67 [KPM] IdeaKotlinProjectModel: Add gradlePluginVersion
KT-51262
KT-51220
2022-02-17 20:19:23 +00:00
sebastian.sellmair 0284bf8cea [KPM] Seal KotlinExternalModelContainer
KT-51262
KT-51220
2022-02-17 20:19:23 +00:00
sebastian.sellmair 37ea991978 [KPM] Update kotlin-gradle-plugin-idea API reference
KT-51262
KT-51220
2022-02-17 20:19:22 +00:00
sebastian.sellmair abd21a6956 [KPM] kotlin-gradle-plugin-idea: bump minimalBackwardsCompatibleVersion
KT-51262
KT-51220
2022-02-17 20:19:22 +00:00
sebastian.sellmair 40cd480d90 [KPM] kotlin-gradle-plugin-idea: Implement ProxyUtil.kt
KT-51262
KT-51220
2022-02-17 20:19:21 +00:00
sebastian.sellmair bbd1176ca3 [KPM] KotlinExternalModelContainerImpl: Use carrier class for serialization
Without this carrier the `SerializedKotlinExternalModelContainer`
itself would fail serialization if values got accessed.

KT-51262
KT-51220
2022-02-17 20:19:21 +00:00
sebastian.sellmair 45d8ec4ad3 [KPM] kotlin-gradle-plugin-idea: Update api reference
KT-51262
KT-51220
2022-02-17 20:19:21 +00:00
sebastian.sellmair 956337ad87 [KPM] IdeaKotlinProjectModelSerializableTest compare by string representation
KT-51262
KT-51220
2022-02-17 20:19:20 +00:00
sebastian.sellmair fdcdd8e247 [KPM] Implement simple KotlinExternalModelContainerTest
KT-51262
KT-51220
2022-02-17 20:19:20 +00:00
sebastian.sellmair c88e122e94 [KPM] kotlin-gradle-plugin-idea: Update api reference
KT-51262
KT-51220
2022-02-17 20:19:19 +00:00
sebastian.sellmair 9e19e3efa7 [KPM] Implement test - attaching serializable models
KT-51262
KT-51220
2022-02-17 20:19:19 +00:00
sebastian.sellmair 1787d18faa [KPM] Make example androidDslKey public
KT-51262
KT-51220
2022-02-17 20:19:19 +00:00