Commit Graph

10442 Commits

Author SHA1 Message Date
Yahor Berdnikau 2c5d817633 Revert "Drop tasks inheritance from 'AbstractCompile' and 'SourceTask'"
This reverts commit e9498c8978.
2022-03-23 19:03:32 +01:00
Yahor Berdnikau d5e5513dfd Revert "AbstractKotlinCompileTool class now also implements PatternFilterable"
This reverts commit 0025bf9ed3.
2022-03-23 19:03:17 +01:00
Yahor Berdnikau 46f44763ac Revert "Remove sourceFileExtensions input"
This reverts commit f81e49f210.
2022-03-23 19:02:56 +01:00
Yahor Berdnikau 69b4b80dff Revert "Add KotlinCompile.androidLayoutResources input"
This reverts commit 6ee503f2b2.
2022-03-23 19:02:41 +01:00
Yahor Berdnikau 46d3f96f0b Revert "Simplify scripting configurations setup"
This reverts commit f4078b0940.
2022-03-23 19:02:23 +01:00
Yahor Berdnikau 47a9fb725e Revert "Rename 'classpath' input into 'libraries'"
This reverts commit c7e594fc7f.
2022-03-23 19:01:18 +01:00
Viacheslav Kormushkin cc30d99f6f Remove dependency on the cocoapods-generate plugin
#KT-50622
2022-03-23 11:46:19 +00:00
sebastian.sellmair 310ab12a92 kotlin-gradle-plugin-idea: Replace special -for-compatibility-tests publication
... with separate module intended to download and prepare
the `kotlin-gradle-plugin-idea` classpath used for testing
backwards compatibility.
2022-03-22 18:45:57 +01:00
Yahor Berdnikau c7e594fc7f Rename 'classpath' input into 'libraries'
'classpath' makes sense only in case of Kotlin/Jvm, but not for
Kotlin/Js or Kotlin/Native. 'libraries' is common ground for a name.

For 'KotlinCompile' task 'getClasspath' and 'setClasspath' methods
are left with deprecation note.

^KT-32805 Fixed
2022-03-22 15:29:08 +00:00
Yahor Berdnikau f4078b0940 Simplify scripting configurations setup
Make it more clear what is resolving from what.

^KT-32805 In Progress
2022-03-22 15:29:07 +00:00
Yahor Berdnikau 6ee503f2b2 Add KotlinCompile.androidLayoutResources input
This input is used by 'android-extensions' subplugin to track changed
Android layout resource files.

^KT-32805 In Progress
2022-03-22 15:29:07 +00:00
Yahor Berdnikau f81e49f210 Remove sourceFileExtensions input
This and new KotlinCompile task inputs dedicated for scripting
allowed providing proper Kotlin scripts compilation support without
eager configuration dependencies resolve.

^KT-32805 In Progress
2022-03-22 15:29:06 +00:00
Yahor Berdnikau 0025bf9ed3 AbstractKotlinCompileTool class now also implements PatternFilterable
This allows to drop SourceRoots intermediate container and replace it
with normal Gradle inputs. This inputs will use ant-style
patterns for filtering allowing Gradle to apply better caching
between builds.

KaptTask replaces ConventionTask parent with DefaultTask.

^KT-32805 In Progress.
2022-03-22 15:29:05 +00:00
Yahor Berdnikau e9498c8978 Drop tasks inheritance from 'AbstractCompile' and 'SourceTask'
'AbstractCompile' task has inputs that are related only to Java
compilation and should not used for Kotlin compile tasks.

'SourceTask' most probably will be deprecated in future Gradle releases
- https://github.com/gradle/gradle/issues/9040. Plus it has
old 'sources' with 'FileTree' type which is not stable
for task inputs snapshotting.

Another breaking change - 'destinationDir' task property is not longer
available. It is replaced by 'destinationDirectory' which uses Gradle
Provider API type.

^KT-32805 In Progress
2022-03-22 15:29:05 +00:00
Yahor Berdnikau f70b477fa7 Add @NativeGradlePluginTests annotation
And related Gradle tasks to run it.

^KT-51553 In Progress
2022-03-22 15:14:51 +00:00
Yahor Berdnikau 10fdc399c4 Remove @SimpleGradlePluginTests annotation
And related Gradle tasks to run it.

^KT-45745 Fixed
2022-03-22 15:14:50 +00:00
Victor Petukhov 25a06bdc56 [Compiler CLI] Make language version description not in capital letters
^KT-51673 Fixed
2022-03-22 13:41:46 +00:00
Artem Kobzar 0153f5d92a chore: set isComplete flag also for interfaces that do not contain constructor fields. 2022-03-21 18:53:04 +00:00
Igor Yakovlev d881f0d2a6 [WASM] Replace String storage type from CharArray to WasmCharArray 2022-03-21 17:24:38 +00:00
Alexander Dudinsky fb0819d490 Implement OsCondition test annotation
With this annotation we can configure specific tests for
running on different platforms on TC and locally.
`supportedOn` shows the platform where the test should pass.
`enabledOnCI` configures on which platform test should be run on CI.
2022-03-21 15:35:05 +00:00
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