Commit Graph

93164 Commits

Author SHA1 Message Date
Ivan Kochurkin b573532d8c Introduce COMPONENT_FUNCTION_NAME_PREFIX constant 2022-06-17 23:26:15 +00:00
sebastian.sellmair 600b0d7b81 [kpm] kgp-idea-proto: Remove protobuf types from public API surface
^KT-52568 Verification Pending
2022-06-17 22:27:15 +00:00
sebastian.sellmair 443faec30d [kpm] kgp-idea-proto: Create special binaryValidationApiElements configuration
This will be a 'lean' jar file (un-shadowed), which can later
be used by the binary-compatibility-validator to test the
API surface against.

^KT-52568 Verification Pending
2022-06-17 22:27:14 +00:00
sebastian.sellmair 514ea01175 [kpm] Embed protobuf runtime into kgp-idea-proto runtime jar
^KT-52568 Verification Pending
2022-06-17 22:27:13 +00:00
sebastian.sellmair 0eb4551e94 [kpm] kgp-idea: Update testedVersion to "1.7.20-dev-2127"
^KT-52568 Verification Pending
2022-06-17 22:27:12 +00:00
sebastian.sellmair 5caa5c5ab2 [kpm] kgp-idea: Skip unpublishable variants for testFixtures publication
^KT-52568 Verification Pending
2022-06-17 22:27:11 +00:00
sebastian.sellmair d8ac6357a6 [kpm] IdeaKpmProtoSchema: Include message severity for future messages
^KT-52568 Verification Pending
2022-06-17 22:27:11 +00:00
sebastian.sellmair 12b6d32e73 [kpm] kotlin-tooling-core: Move Type into Extras.Type
^KT-52568 Verification Pending
2022-06-17 22:27:10 +00:00
sebastian.sellmair 08bb163021 [kpm] Update kotlin-gradle-plugin-idea API reference
^KT-52568 Verification Pending
2022-06-17 22:27:09 +00:00
sebastian.sellmair 92713bdcb3 [kpm] IdeaKpmContentRoot: Rename SOURCE_TYPE -> SOURCES_TYPE & RESOURCE_TYPE -> RESOURCES_TYPE
^KT-52568 Verification Pending
2022-06-17 22:27:08 +00:00
sebastian.sellmair 70df08c678 [kpm] Rename IdeaKpmSourceDirectory to IdeaKpmContentRoot
^KT-52568 Verification Pending
2022-06-17 22:27:08 +00:00
sebastian.sellmair 19399a60d9 [kpm] Add :kotlin-gradle-plugin-proto to the'kotlinGradlePluginAndItsRequired' array
^KT-52568 Verification Pending
2022-06-17 22:27:07 +00:00
sebastian.sellmair fc3da93625 [kpm] IdeaKpmProjectContainer: Add documentation
^KT-52568 Verification Pending
2022-06-17 22:27:06 +00:00
sebastian.sellmair 0b7c1f42f6 [kpm] IdeaKpmBuildProjectModelTask: Change outputDirectory to IdeaKpmProject
^KT-52568 Verification Pending
2022-06-17 22:27:06 +00:00
sebastian.sellmair 2f6a8551ac [kpm] IdeaKpmBuildProjectModelTask: Add comment to signal that this is an internal task
^KT-52568 Verification Pending
2022-06-17 22:27:05 +00:00
sebastian.sellmair a12c938100 [kpm] Minimize kgp-proto's API surface and add binary compatibility tests
^KT-52568 Verification Pending
2022-06-17 22:27:04 +00:00
sebastian.sellmair 82ab65e689 [kpm] Update public api reference for kotlin-gradle-plugin-idea & kotlin-tooling-core
^KT-52568 Verification Pending
2022-06-17 22:27:04 +00:00
sebastian.sellmair 20d23f7228 [kpm] kgp-kpm-android: Register serialization extension for AndroidDsl
^KT-52568 In Progress
2022-06-17 22:27:03 +00:00
sebastian.sellmair 1034e47a2a [kpm] kgp: functionalTest: Use new kgp-idea testFixtures
^KT-52568 In Progress
2022-06-17 22:27:02 +00:00
sebastian.sellmair 05e3919075 [kpm] kgp-idea: Refactor BackwardsCompatibilityDeserializationTest to run with protobufs
^KT-52568 In Progress
2022-06-17 22:27:02 +00:00
sebastian.sellmair c48ac0cfc1 [kpm] kgp-idea: Implement IdeaKpmProjectBackwardsCompatibilityDeserializationTest
^KT-52568 In Progress
2022-06-17 22:27:01 +00:00
sebastian.sellmair f52b4550d8 [kpm] kgp-idea: Implement CompatibilityTestUtil.kt
^KT-52568 In Progress
2022-06-17 22:27:00 +00:00
sebastian.sellmair faaec4689a [kpm] kgp-idea: Implement IdeaKpmJavaIoSerializableExtrasSerializerTest
^KT-52568 In Progress
2022-06-17 22:26:59 +00:00
sebastian.sellmair b57f5f2742 [kpm] kgp-idea: Implement serialization test fixtures
^KT-52568 In Progress
2022-06-17 22:26:59 +00:00
sebastian.sellmair ca45200e68 [kpm] kgp-idea: Implement TestIdeaKpmInstances
To share some simple objects for testing

^KT-52568 In Progress
2022-06-17 22:26:58 +00:00
sebastian.sellmair d73d36ef2c [kpm] kgp-idea: Refactor testFixtures
- Consistently prefix entities with 'TestIdeaKpm'

^KT-52568 In Progress
2022-06-17 22:26:57 +00:00
sebastian.sellmair 01a4045c04 [kpm] Implement generic 'kotlin.debug' extra
^KT-52568 In Progress
2022-06-17 22:26:57 +00:00
sebastian.sellmair da288d926b [kpm] Adapt ideaKpmFragmentBuilder.kt for new IdeaKpmSourceDirectory design
^KT-52568 In Progress
2022-06-17 22:26:56 +00:00
sebastian.sellmair a380d15828 [kpm] IdeaKpmBuildProjectModelTask: Add protobuf binary and measure times
This task is still just used for troubleshooting and debugging.
It does not serve any real production use-case

^KT-52568 In Progress
2022-06-17 22:26:55 +00:00
sebastian.sellmair 2d04d4f06e [kpm] kgp: Integrate IdeaKpm.* protobuf serialization into IdeaKpmProjectModelBuilder
- Rename IdeaKpmProjectModelBuildingContext to IdeaKpmProjectBuildingContext
- Support building IdeaKpmProjectContainer
- Implement IdeaKpmSerializationContext on Gradle side

^KT-52568 In Progress
2022-06-17 22:26:54 +00:00
sebastian.sellmair 2a5457f59d [kpm] kgp-idea-proto: Implement simple serialization tests
^KT-52568 In Progress
2022-06-17 22:26:54 +00:00
sebastian.sellmair d78fb1d4d2 [kpm] kgp-idea-proto: Add conversion from IdeaKpm.* to IdeaKpm.*Proto
^KT-52568 In Progress
2022-06-17 22:26:53 +00:00
sebastian.sellmair 2ecfd76bbb [kpm] kgp-idea-proto: Add generated code for protobufs
This code was generated by libprotoc 3.19.4

^KT-52568 In Progress
2022-06-17 22:26:52 +00:00
sebastian.sellmair 6a520246e5 [kpm] kgp-idea-proto: Add .proto definitions for IdeaKpm models
^KT-52568 In Progress
2022-06-17 22:26:52 +00:00
sebastian.sellmair 252c297112 [kpm] Create new :kotlin-gradle-plugin-proto module 2022-06-17 22:26:51 +00:00
sebastian.sellmair 58e2f6d5d7 [kpm] kotlin-tooling-core: Expose 'Type' in Extras.Key
This type can later be used for extension points to register
serializers for certain known types.

^KT-52568 In Progress
2022-06-17 22:26:50 +00:00
sebastian.sellmair 9a8832a241 [kpm] kgp-idea: Implement IdeaKpmProjectContainer
This container serves the purpose of transferring a already
serialized binary form of IdeaKpmProject to the IDE.

^KT-52568 In Progress
2022-06-17 22:26:50 +00:00
sebastian.sellmair 486c18bc21 [kpm] kgp-idea: Remove IdeaKpmPlatformDetails in favor of IdeaKpmPlatform
^KT-52568 In Progress
2022-06-17 22:26:49 +00:00
sebastian.sellmair 5f61b55abc [kpm] kgp-idea: Remove IdeaKpmResourceDirectory in favor of a morge generic IdeaKpmSourceDirectory
^KT-52568 In Progress
2022-06-17 22:26:48 +00:00
sebastian.sellmair 7db9a4b0b1 [kpm] kgp-idea: Implement IdeaKpmSerializationContext
This context shall be used to register extension points like
IdeaKpmSerializationLogger or IdeaKpmExtrasSerializationExtension

^KT-52568 In Progress
2022-06-17 22:26:47 +00:00
sebastian.sellmair 132743cb7a [kpm] kgp-idea: Publish testFixtures
^KT-52568 In Progress
2022-06-17 22:26:47 +00:00
Pavel Kunyavskiy 3932143ed0 [K/N] Fix copy-paste error in cbrtf signature
^KT-48232
2022-06-17 17:55:27 +00:00
Pavel Kunyavskiy e4fede9067 [K/N] Add cbrt functions to state checker ignore list
^KT-48232
2022-06-17 17:55:26 +00:00
Alexander Udalov a52017a130 Rewrite light analysis mode test class filter
Instead of filtering local/synthetic classes based on ClassDescriptor
instances, do it by interpreting kotlin.Metadata. This is needed to
enable these tests for JVM IR, where descriptors are not available in
this way.
2022-06-17 16:51:06 +02:00
Alexander Udalov 448cba07bb Psi2ir: do not generate init block body in kapt mode 2022-06-17 16:51:06 +02:00
Alexander Udalov 7e9d7c895a Kapt: add flag kapt.use.jvm.ir for enabling JVM IR support
#KT-49682
2022-06-17 16:51:06 +02:00
Alexander Udalov 65c7a7f939 Minor, remove obsolete abstract test classes 2022-06-17 16:51:05 +02:00
Mikhail Glukhikh 6a3be0d8ac Add test for KT-52338 (fixed together with KT-49507) 2022-06-17 13:45:57 +00:00
sebastian.sellmair 66d344975b [Gradle] KotlinToolRunner: Capture System.getProperties() as List
This is done to avoid a potential `ConcurrentModificationException`:

```
Caused by: java.util.ConcurrentModificationException
  at java.util.Hashtable$Enumerator.next(Hashtable.java:1387)
  at org.gradle.internal.classpath.Instrumented$DecoratingEntrySet$1.computeNext(Instrumented.java:349)
  at org.gradle.internal.classpath.Instrumented$DecoratingEntrySet$1.computeNext(Instrumented.java:343)
  at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)
  at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)
  at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:176)
  at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:131)
  at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
  at kotlin.collections.MapsKt__MapsKt.putAll(Maps.kt:419)
  at kotlin.collections.MapsKt__MapsKt.toMap(Maps.kt:587)
  at kotlin.collections.MapsKt__MapsKt.toMap(Maps.kt:581)
  at org.jetbrains.kotlin.compilerRunner.KotlinToolRunner.runViaExec(KotlinToolRunner.kt:95)
  at org.jetbrains.kotlin.compilerRunner.KotlinToolRunner.run(KotlinToolRunner.kt:85)
```
2022-06-17 13:11:44 +00:00
Philipp Smorygo 642b403232 Rename COCOAPODS_SKIP_KOTLIN_BUILD to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED 2022-06-17 13:01:38 +00:00