Commit Graph

21 Commits

Author SHA1 Message Date
Anna Kozlova
c197e8472b [kotlin]: extract formatter.minimal module for remote-dev
RDCT-828

GitOrigin-RevId: 457b8ebf599c61b852ed0b545664caa7d7eee68e
2023-12-21 19:27:07 +00:00
Anna Kozlova
c1bf96bd02 [kotlin] extract modules in preparation for kotlin specific features on remote-dev client
- `code-insight-minimal` and `highlighting-minimal` added
- `line-indent-provider` removed
- add dependency on `platform.lang.impl` explicitly where needed

RDCT-828

GitOrigin-RevId: 21c2e18e038641dbbeef21ab70c651cfb7c38351
2023-12-13 12:06:59 +00:00
Ilya Kirillov
a2bbe4d318 Remove snapshot kotlin stdlib from Kotlin plugin
^KT-62510
^KTIJ-20529 fixed

GitOrigin-RevId: a49099902566abb23dfb56a578b368b4973e332f
2023-10-20 20:53:09 +00:00
Anna Kozlova
1c0d05d3f3 [kotlin] k2: report formatter statistics (KTIJ-26548)
GitOrigin-RevId: cbf0d7776d78fad3af52ee4aa33223e51a7d1b79
2023-08-07 07:43:16 +00:00
Anna Kozlova
5e067cd8a6 [kotlin] extract frontend independent formatter to formatter module
KTIJ-26147

GitOrigin-RevId: 3712d105faff744c027edee0f192f2cfc2a555b6
2023-08-07 06:57:30 +00:00
Yan Zhulanow
c2dc67b115 [kotlin] Ensure all Kotlin modules are present in meta-modules
There are several meta-modules:
- 'kotlin.all-tests' and 'kotlin.fir.all-tests'. Used as a test classpath on CI.
- 'kotlin.plugin' and 'kotlin.plugin-fir'. Used mainly for XML plugin descriptor resolution.
- 'intellij.kotlin.plugin.community.main' and 'intellij.kotlin.plugin.community.fir.main'. Used for running IDEA from sources.

All relevant Kotlin IDE plugin modules should be present in each of these meta-modules. In addition, there is 'KotlinPluginBuilder', a Groovy script which assembles plugin artifact JARs.

It is easy to forget putting newly created modules in each of these locations, so here is the consistency test.

GitOrigin-RevId: 990dfb1c5447e22ab89fb4aeb2cd3d8e937aa110
2022-06-24 14:36:44 +00:00
Vladimir Krivosheev
a8f6a48409 add jdom to source code to modify and strip to our needs
GitOrigin-RevId: 3e16d0d954aa7bc45c4eadb91164b44e4b2e75d3
2022-03-27 18:52:47 +00:00
Yan Zhulanow
a73802740f Split kotlinc.kotlin-compiler library to common/fe10/fir/ir
GitOrigin-RevId: 6611c04934c6d6623d7a892ed41e957dc90b69fd
2022-02-08 08:51:09 +00:00
Nikita Bobko
098573c57c Split kotlin-stdlib-jdk8 and kotlin-reflect libraries
Some facts:
1. Kotlin plugin bundles own version of kotlin-stdlib and reflect (see KotlinPluginBuilder.groovy).
   We bundle own version of stdlib and reflect (but not use the one which comes with IDEA) because
   otherwise we would have runtime errors in compiler frontend which we depend on
   (kotlinc.kotlin-compiler)
2. Kotlin plugin exists in two release cycles. We have special `kt-xxx-[kotlin_compiler_version]`
   branches (e.g. kt-212-1.5.30 branch) in the repository where we put Kotlin plugin fixes which
   should be delivered in KT release cycle.
   2.1 The fact that we publish Kotlin plugin artifacts to marketplace from special kt-branches
       leads to the fact that stdlib may be different in Kotlin plugin and IntelliJ IDEA. By
       separating `kotlin-stdlib-jdk8` and `kotlinc.kotlin-stdlib` we make it obvious that Kotlin
       plugin has it's own stdlib

This commit fixes broken incremental compilation in kt-212-master
on TeamCity because now we have to bootstrap only kotlinc.kotlin-stdlib.
Previously, we had to bootstrap kotlin-stdlib-jdk8 which caused problems
with incremental compilation because whole monorepo depends on this artifact.

Also now during kotlinc updates in `intellij/master` we don't have to update kotlin-stdlib-jdk8
every time to keep kotlinc version the same among different imls/xmls in the monorepo
https://jetbrains.team/im/code/258iod1xjiFZ?message=BK9Aq0SIM1A&channel=152Z1w0RwrFp

(cherry picked from commit 23b2a70604c5c578983b0d76cb8634b9ed301a59)

GitOrigin-RevId: 773c01c405f2eb9db8d88ce3c58e4bdcee66c085
2021-11-10 13:52:22 +00:00
Vladimir Dolzhenko
6272fecae7 [kotlin] i18n
GitOrigin-RevId: 85c7d71e4ba18fb9c61e8733a5840d1aa44a4f49
2021-08-12 15:08:48 +00:00
Nikolay Chashnikov
b683746735 get rid of unnecessary Kotlin facets in intellij project
KotlinPluginInternalApi annotation was replaced by generic IntellijInternalApi, which can be used in other plugins as well. So it becomes possible to use Kotlin compiler settings from the project configuration in almost all modules from Kotlin plugin, making Kotlin facets in these modules unnecessary. Removal of Kotlin facets simplifies project configuration and makes it easier to change settings of Kotlin compiler.

GitOrigin-RevId: 17590fab5769e3b79f47adb2af41b1dbcebf6e0a
2021-08-06 12:41:49 +00:00
Yan Zhulanow
d2e1b4ddfb [kotlin] Allow using @KotlinPluginInternalApi-marked declarations from all Kotlin modules
GitOrigin-RevId: fb56194efbddfba539db6bb33689dbf25d3fcb49
2021-07-16 10:33:22 +00:00
Nikolay Chashnikov
24a1844984 [IntelliJ project configuration] adapt settings of Kotlin facet to Kotlin 1.5 plugin
Kotlin 1.5 doesn't write tag for 'jvmTarget' option if its value is '1.8', and does write it if its value is '1.6', so this change is needed to avoid modified iml files if the project is opened with Kotlin plugin 1.5 (see KTIJ-19019).

GitOrigin-RevId: 8fc21bf185ac8c23675123b904f25af5defcc98e
2021-07-07 10:52:45 +00:00
Dmitry Gridin
38221a7967 [kotlin] replace kotlinc.kotlin-stdlib-jdk8 with kotlin-stdlib-jdk8
^KTIJ-10035

GitOrigin-RevId: 93f6f0e9c0d24459068ae65b4d1263df5e617390
2021-04-23 12:58:37 +03:00
Nikita Bobko
f3f4fbd1f9 Convert all kotlinc-delegator.* modules to kotlinc.* libraries
Cooperative compilation plans changed and we don't need delegator modules anymore

GitOrigin-RevId: c8b8ca7a8bea68ce1bf5fb0425956f5cc0f61d18
2021-04-19 13:39:10 +03:00
Nikita Bobko
6e29578615 Replace dependency on 'kotlinc.kotlin-stdlib-jdk8' with dependency on 'kotlinc-delegator.kotlin-stdlib-jdk8' module delegator
This commit is part of series of project model refactoring commits, look at neighborhood commits.
Check out last commits in this sequence.

These commit are done for sake of unification and making it easier to write cooperative compilation
prototype.

GitOrigin-RevId: 4ec18be4192e6ea9fe93f14e3e9fac83cec68c91
2020-11-16 14:55:23 +03:00
Nikita Bobko
ab0fa50fcd Replace 'kotlinc.kotlin-compiler' project library with 'kotlinc-delegator.kotlin-compiler' module delegator
This commit is part of series of project model refactoring commits, look at neighborhood commits.
Check out last commits in this sequence.

These commit are done for sake of unification and making it easier to write cooperative compilation
prototype.

GitOrigin-RevId: 341fbb8bc02ad28a7e2113b859fba87756af5c37
2020-11-16 14:55:20 +03:00
Yan Zhulanow
3a0beb7a21 Revert "fix compilation: explicitly set Java 8 language level"
This reverts commit fcbc8b79

GitOrigin-RevId: f1f7a858b0e12dc16bf84b2a003279c847c3cc1a
2020-08-12 13:02:43 +03:00
Dmitry Gridin
b6eeb7cd28 fix compilation: explicitly set Java 8 language level
GitOrigin-RevId: 2807fc4a4fa13899d7b89de5e0422234b2f9c39b
2020-08-12 09:05:02 +03:00
Yan Zhulanow
f4cf9520c3 Replace stdlib/reflect library usages in Kotlin modules to Kotlin-specific ones
GitOrigin-RevId: 12edd441517af8c0665ff682c9a61f77742d34f4
2020-06-24 23:17:38 +03:00
Yan Zhulanow
7ee9feb28a Migrate project to JPS
GitOrigin-RevId: d427a3c45fc6cc9033e28b220a98bb1b60ccf8c8
2021-02-07 21:43:29 +03:00