Commit Graph

6955 Commits

Author SHA1 Message Date
sebastian.sellmair a87c2ace29 kotlin-tooling-core: Remove plugin jps-compatible 2022-03-17 16:53:41 +00:00
sebastian.sellmair f540b4bc82 KotlinToolingVersion: Evaluate maturity eagerly 2022-03-17 16:53:40 +00:00
sebastian.sellmair 6800475202 KotlinToolingVersion: Support -release in versions 2022-03-17 16:53:40 +00:00
sebastian.sellmair 87c339f637 [Minor] KotlinMetadataCompilationData: Use LinkedHashMap directly
Previously commonCompilationDataPerFragment and
nativeCompilationDataPerFragment were declared as using
`mutableMapOf`, which will not offer the necessary 'compute' function
in IDE analysis.

KT-51386
2022-03-17 15:39:55 +00:00
sebastian.sellmair 85998f8857 [KPM] Consistently use uppercase factory style for idea model builders
KT-51386
2022-03-17 15:39:55 +00:00
sebastian.sellmair 03cf978b77 [KPM] Consistently seal interfaces in :kotlin-gradle-plugin-idea
KT-51386
2022-03-17 15:39:54 +00:00
sebastian.sellmair 1a0d8f777c [KPM] Remove IdeaKotlinModuleIdentifier in favor of consistent IdeaKotlinFragmentCoordinates
KT-51386
2022-03-17 15:39:54 +00:00
sebastian.sellmair ef3a3d71b9 [KPM] Remove duplicate KotlinGradleFragmentInternal.refinesClosure
KT-51386
2022-03-17 15:39:54 +00:00
sebastian.sellmair e1ead6b8bf [KPM] Integrate refines dependencies into IdeaKotlinSourceDependency
KT-51386
2022-03-17 15:39:53 +00:00
sebastian.sellmair 0f8f61c373 [KPM] Introduce separate IdeaKotlinDependencyCoordinates entity
This splits IdeaKotlinSourceCoordinates from the actual
IdeaKotlinSourceDependency

KT-51386
2022-03-17 15:39:52 +00:00
sebastian.sellmair 588ea65d66 [KPM] Replace .containingModule.variantsContainingFragment with .containingVariants
KT-51386
2022-03-17 15:39:52 +00:00
sebastian.sellmair f65c61472b [KPM] Remove now unused IdeFragmentDependencyResolver
KT-51386
2022-03-17 15:39:51 +00:00
sebastian.sellmair edbf5c5cd8 [KPM] Document IdeaKotlinProjectModelBuilder
KT-51386
2022-03-17 15:39:51 +00:00
sebastian.sellmair cf19261173 [KPM] Document IdeaKotlinPlatformDependencyResolver
KT-51386
2022-03-17 15:39:51 +00:00
sebastian.sellmair e2d61e7f94 [KPM] Document IdeaKotlinDependencyTransformer
KT-51386
2022-03-17 15:39:50 +00:00
sebastian.sellmair fce0145753 [KPM] Document IdeaKotlinDependencyEffect
KT-51386
2022-03-17 15:39:50 +00:00
sebastian.sellmair 882c1186f2 [KPM] Document AbstractLightweightIdeaDependencyResolutionTest
KT-51386
2022-03-17 15:39:49 +00:00
sebastian.sellmair d7ce7387f7 [KPM] Implement SimpleProjectToProjectDependencyResolutionTest
KT-51386
2022-03-17 15:39:49 +00:00
sebastian.sellmair e55bba9c4c [KPM] kotlin-gradle-plugin-idea: Bump minimalBackwardsCompatibleVersion
KT-51386
2022-03-17 15:39:48 +00:00
sebastian.sellmair a5a68543c2 [KPM] Update kotlin-gradle-plugin-idea.txt API reference
KT-51386
2022-03-17 15:39:48 +00:00
sebastian.sellmair 235062aeec [KPM] MviKotlinIdeaDependencyResolutionTest: Assume androidSdk for android test
KT-51386
2022-03-17 15:39:48 +00:00
sebastian.sellmair 05d33d9df6 [KPM] MviKotlinIdeaDependencyResolutionTest: Take host into account for platform libaries
KT-51386
2022-03-17 15:39:47 +00:00
sebastian.sellmair a4eb62e317 [KPM] kotlin-gradle-plugin-idea: Use special publication for backwards compatibility tests
KT-51386
2022-03-17 15:39:47 +00:00
sebastian.sellmair 555db121fa [KPM] Ensure local stdlib is resolvable in gradle functionalTest
KT-51386
2022-03-17 15:39:46 +00:00
sebastian.sellmair 1a5fc84080 [KPM] Implement initial kpm/idea dependency resolution
^KT-51386 Verification Pending
2022-03-17 15:39:46 +00:00
sebastian.sellmair 8b84ed4978 [KPM] Suppress unused serialVersionUID in Empty
KT-51386
2022-03-17 15:39:45 +00:00
sebastian.sellmair 207f510cca [KPM] IdeaKotlinProjectModelObjectGraphTest: Implement WriteReplacedModel annotation
KT-51386
2022-03-17 15:39:45 +00:00
sebastian.sellmair 1aa8c11301 [KPM] IdeaKotlinCompilationOutput: Fix missing serialVersionUID
KT-51386
2022-03-17 15:39:44 +00:00
sebastian.sellmair 1e5d398d6e [KPM] IdeaKotlinProjectModelObjectGraphTest: Include subtypes when resolving nodes
KT-51386
2022-03-17 15:39:44 +00:00
Anton Lakotka 2be85610a3 [Gradle] Add reminder to remove kotlinExtension check in consumerApiUsage
The `kotlinExtension` check in consumerApiUsage function can be removed
when legacy MPP plugin `kotlin-platform-common` is also removed from
the code base.
2022-03-17 11:13:02 +00:00
Anton Lakotka c42cedc0d0 [Gradle] Use METADATA attribute when no compatibility variant enabled
Consumer configurations with following set of attributes:

* org.gradle.usage = 'kotlin-api'
* org.jetbrains.kotlin.platform.type = 'common'

are supposed to consume legacy `*.kotlin_metadata` artifacts.
And can be consumed by HMPP project with
"Compatibility Metadata Variant Enabled" flag. For such purpose
`metadataCompileClasspath` configuration is configured with attributes
mentioned above.
There is no sense to consume such artifacts in HMPP projects without
compatibility metadata variant. And in order to prevent
breaking changes in KGP ecosystem, legacy configurations are
reconfigured to consume new KLIB metadata artifacts. Instead of failing
on resolution.

^KT-50925 Verification Pending
2022-03-17 11:13:02 +00:00
Anton Lakotka 9d754d7631 [Gradle][test] Unignore test that fails due to the ^KT-50925
This reverts commit 74ac51a4cb.
2022-03-17 11:13:01 +00:00
Anton Lakotka 32f01999b1 [Gradle] Add test for KT-50925 2022-03-17 11:13:01 +00:00
Yahor Berdnikau b5a5f25b99 Distribute SimpleKotlinGradleIT test to other tags
^KT-45745 In Progress
2022-03-15 15:19:18 +01:00
Yahor Berdnikau f5d200e295 Add fake old test
This will allow CI job to not fail with "no tests found" error.

^KT-45745 In Progress
2022-03-15 16:08:44 +03:00
Yahor Berdnikau c4149c2404 Migrate KotlinSpecificDependenciesIT to new test dsl
^KT-45745 In Progress
2022-03-15 16:08:44 +03:00
Ilya Goncharov c8237cb5e2 rra/ilgonmic/mocha-fail
[Gradle, JS] Use empty adapter to just dry run

[Gradle, JS] Not dry run, but full run

[Gradle, JS] Fix test to be failed without dry run

[Gradle, JS] Not use client twice

[Gradle, JS] Add test on mocha failing

[Gradle, JS] Fail mocha in case of infrastructure problems

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

^KT-51623 fixed
2022-03-15 11:18:35 +00:00
nataliya.valtman c38dd1c004 Fix unstable testIncrementalCompilationAfterCacheHit test 2022-03-14 20:08:14 +03:00
Hung Nguyen 5f1cf34c79 KT-45777: Take coarse-grained snapshots of external libraries
to reduce the size of the snapshots.

- Track metrics for Gradle classpath snapshot artifact transform
- Format size metrics so it's more readable

^KT-45777 In Progress
2022-03-11 17:44:25 +01:00
Yahor Berdnikau 76fc4328d1 Migrate KotlinGradlePluginIT to new test dsl
Moved some tests to another test suites

^KT-45745 In Progress
2022-03-11 16:27:09 +03:00
Yahor Berdnikau f11ae83a3d Add method to include other project as included build
^KT-45745 In Progress
2022-03-11 16:27:09 +03:00
Yahor Berdnikau ca76c00b6c Also provide BuildResult in assert block
^KT-45745 In Progress
2022-03-11 16:27:08 +03:00
Yahor Berdnikau 8844f81a92 Move PublishingIT tests to use JVM tag
^KT-45745 In Progress
2022-03-11 16:27:08 +03:00
Yahor Berdnikau 8ef0bbb279 Rename KpmCompilerPluginIT
Make name of test suite to be considered as MPP test.

^KT-45745 In Progress
2022-03-11 16:27:07 +03:00
Yahor Berdnikau 4c2c7d9e5e Rename VariantAwareDependenciesIT
Make name of test suite to be considered as MPP test.

^KT-45745 In Progress
2022-03-11 16:27:06 +03:00
sebastian.sellmair c2ab23ed70 kotlin-tooling-core: Update api reference 2022-03-09 13:17:08 +00:00
sebastian.sellmair 6d87fbddf4 kotlin-tooling-core: Rename singleClosure to linearClosure 2022-03-09 13:17:07 +00:00
sebastian.sellmair 6a96b6ec3f kotlin-tooling-core: Setup binary compatibility tests 2022-03-09 13:17:07 +00:00
sebastian.sellmair 93e04c0b33 kotlin-tooling-core: Implement KotlinToolingVersion API 2022-03-09 13:17:06 +00:00
sebastian.sellmair 14046b81ff Replace transitiveClosure (commonizer-api) with closure (tooling-core) 2022-03-09 13:17:06 +00:00