Commit Graph

840 Commits

Author SHA1 Message Date
Vyacheslav Gerasimov 15d797b5b5 Build: Use protobuf from kotlin-dependencies repo
#KTI-892
2022-09-01 19:28:16 +02:00
Nikolay Krasko 01f567a16d Disable yarn and npm tasks from the build when tests are not active
Kotlin build shouldn't depend on npm during while deploy artefacts tasks

^KTI-887 Fixed
^KT-53687 Related
2022-08-30 22:15:16 +00:00
Nikita Bobko a65cb947d6 Check that kotlin-reflect has a correct version during resolution
Review: https://jetbrains.team/p/kt/reviews/6753

After we migrated to the binary reflect in previous commits we want to
make sure that people won't accidentaly depend on wrong reflect in the
future.
2022-08-22 15:44:01 +02:00
Nikita Bobko 0a6dadd04d 4/5 Replace source dependency on kotlin-reflect with binary dependency
Review: https://jetbrains.team/p/kt/reviews/6753

Meaningful semantic change was splitted into 5 commits to simplify the
change review. Sinle commit would be too big.

Why replace source to binary: to get rid of kotlin-reflect in Kotlin
plugin artifact KTIJ-22276
2022-08-22 15:43:53 +02:00
Svyatoslav Scherbina 66a870301c Bump Kotlin/Native version to 1.8.0-dev-1808 2022-08-16 17:18:09 +02:00
Ilya Goncharov 04b8ece673 [Gradle, JS] Add warning reporting about yarn.lock changes
yarn.lock can be changed during the build. It means that gradle plugin contain new versions of npm dependencies and yarn.lock should be updated to be actual. From the other side, we have bootstrap checks, and before bootstrap update following bootstrap gradle plugin can contain following changes in Gradle plugin, and in bootstrap checks yarn.lock is not actual.
So when we update NPM versions, we get one of following situations: yarn.lock is actual either in ordinary build or in bootstrap one, and never is actual in both situation
2022-08-15 08:19:04 +00:00
Dmitriy Novozhilov 6fde784b55 [FE 1.0] Allow generation of nested classes for java classes from plugins 2022-08-11 15:22:35 +03:00
Nikolay Krasko 151944295d Minor: minor code cleanup in build.gradle.kts 2022-08-05 12:50:56 +00:00
Svyatoslav Scherbina 31434550e0 Bump Kotlin/Native version to 1.8.0-dev-1158 2022-08-02 07:25:07 +00:00
Dmitry Gridin 1708b4fe48 [light classes] move light-classes-base module to analysis
^KT-53097
2022-08-01 13:56:34 +00:00
Igor Yakovlev c2d62b37e6 [WASM] Enable stdlib tests 2022-07-29 19:50:31 +02:00
Dmitriy Novozhilov 8b960de76a [KAPT] Add additional test tasks for running tests on JDK 11 2022-07-20 10:12:24 +00:00
Dmitry Gridin 5e36563df6 [light classes] drop light-classes from commonCompilerModules
^KT-53097
2022-07-19 15:42:05 +00:00
Dmitry Gridin f48cb8df1c [light classes] add light-classes-base to commonCompilerModules
^KT-53097
2022-07-19 15:41:38 +00:00
Nikita Bobko 8e9269eee6 Add artifacts into compilerArtifactsForIde task
KTIJ-21822

Those artifacts are needed for `TestKotlinArtifacts` in intellij repo
2022-07-19 11:40:43 +00:00
Svyatoslav Scherbina e63e889a1f Bump Kotlin/Native version to 1.8.0-dev-287 2022-07-11 12:31:52 +00:00
Ilya Gorbunov d825af7a22 Switch language version in Kotlin project to 1.8
Use kotlinx-metadata-jvm:0.5.0 that supports reading 1.8.0 kotlin metadata version
2022-07-01 13:04:03 +00:00
Dmitriy Novozhilov 65e240679e [FE] Move utility of parsing plugin options to :compiler:frontend.common
This is needed to be able to use this utility inside FIR part of IDE plugin
2022-06-29 12:00:00 +00:00
Igor Yakovlev 1e0a705ba1 [WASM] Temporary disable wasm std test (until bootstrap) 2022-06-28 18:00:41 +00:00
Svyatoslav Scherbina bc39727bf1 Bump Kotlin/Native version to 1.7.20-dev-2651 2022-06-28 10:00:28 +00:00
Igor Yakovlev 649910863c [WASM] Enable wasm StdLib tests 2022-06-27 10:40:21 +02:00
Mikhael Bogdanov 41d6f0dca4 Remove ir.tree.impl from build 2022-06-20 11:42:52 +00:00
sebastian.sellmair 252c297112 [kpm] Create new :kotlin-gradle-plugin-proto module 2022-06-17 22:26:51 +00:00
Igor Yakovlev f996278171 [WASM] Support for mjs universal launcher 2022-06-07 20:59:03 +00:00
Nikolay Lunyak ac1fb07102 [FIR JS] Add checkers.js 2022-06-02 13:47:28 +00:00
Nikita Bobko 18feb30569 Introduce kotlin-jps-plugin and deprecate kotlin-jps-plugin-classpath
`kotlin-jps-plugin-classpath` isn't dropped because, in some places, IDE
depends on the old artifact so I want to keep it for a while until I
cleanup IDE completely.

I tried to put as much libraries into `kotlinJpsPluginMavenDependencies`
as possible in the previous commit. Right now,
`kotlin-jps-plugin-classpath` is 33Mb, `kotlin-jps-plugin` is 20Mb (all
are not compresed)
2022-05-30 17:13:56 +02:00
Nikita Bobko 540164a691 Refactoring: Split compilerModulesForJps into "embedded" and "maven"
This small refactoring is needed for the next commit.

This commit doesn't change any semantic.
2022-05-30 17:13:56 +02:00
Nikita Bobko 4059b010f8 compilerModulesForJps: remove duplicated ":jps:jps-common"
It was duplicated in the only usage of `compilerModulesForJps` --
`prepare/ide-plugin-dependencies/kotlin-jps-plugin-classpath/build.gradle.kts`

This commit doesn't change any logic.
2022-05-30 17:13:56 +02:00
Nikita Bobko 6bbd007560 Refactoring: "suck in" kotlin-reflect and kotlin-daemon-client into compilerModulesForJps
This commit places all dependencies of JPS plugin into a single place --
`compilerModulesForJps`. I will need this small refactoring for the next
commits.

This commit doesn't change any logic because
`prepare/ide-plugin-dependencies/kotlin-jps-plugin-classpath/build.gradle.kts`
is the only `compilerModulesForJps` user right now.
2022-05-30 17:13:56 +02:00
Nikita Bobko b06aae229a Drop compiler-components-for-jps maven artifact
It actualy isn't used for a long time already in IDE
2022-05-30 17:13:56 +02:00
Igor Yakovlev 6efd6f9346 Revert "[Wasm] Temporary disable wasm stdlib tests"
This reverts commit 68ef2f3242.
2022-05-28 13:26:29 +02:00
Pavel Kunyavskiy 76da9df102 Bump klib ABI version
KLIB forward compatibility was broken during work related to
definitely not-null types, but version was not changed. This led to
exceptions in compiler instead of meaningful error.

^KT-52518
2022-05-28 07:30:54 +00:00
Tianyu Geng 010431e9e7 [Analysis API] Make a separate module for kt-reference-fe10 2022-05-27 15:37:37 +02:00
Yahor Berdnikau cf2d03b914 Move common configuration from /build.gradle.kts into plugin
Move all common to all projects configuration from root build.gradle.kts
into common-configuration convention plugin.
2022-05-24 07:58:36 +00:00
Yahor Berdnikau 3e82661d80 Introduce 'common-configuration' convention plugin
This plugin should do project common configuration in the Kotlin repo.
As a first thing I moved gson version constraint into it, because
current approach has Gradle bug:
https://github.com/gradle/gradle/issues/20548
2022-05-24 07:58:35 +00:00
Dmitriy Novozhilov f5b581db00 [Build] Enable context receivers feature in :compiler:fir:fir2rir 2022-05-20 13:33:05 +00:00
Svyatoslav Kuzmich 68ef2f3242 [Wasm] Temporary disable wasm stdlib tests
Due to incompatible bootstrap compiler.
2022-05-20 12:22:43 +03:00
Igor Yakovlev 9519d7998b [WASM] Run all std tests with d8 2022-05-20 12:22:43 +03:00
Svyatoslav Scherbina e39fb807a7 Bump Kotlin/Native version to 1.7.20-dev-1094 2022-05-13 16:10:14 +00:00
Vyacheslav Gerasimov e9346a7f2c Build: fix disable.verification.tasks property 2022-05-10 15:07:31 +04:00
Zalim Bashorov 92d4c1c275 [Build, JS] Remove redundant setting nodeVersion to 16.13.0
Node.js support already use 16.13.0.

Probably it's useful to use default version for dogfooding propose,
Likely it's cover small cases, but at least could help to catch some
platform dependent issues.
If we need some specific (likely newer) version of node somewhere
in the project it's better to specify it for specific parts and
consider updating version of node inside gradle support and revert
a change.
2022-05-05 15:47:54 +00:00
Svyatoslav Scherbina 84b0e0b934 Bump Kotlin/Native version to 1.7.20-dev-853 2022-05-05 10:51:41 +00:00
Dmitry Gridin 2100afd122 [jps] extract testdata to separate artifact
^KTIJ-20456
2022-04-28 12:21:33 +07:00
Nkolay Krasko c38985c93e Remove findShadowJarsInClasspath logic from the build 2022-04-26 19:47:23 +00:00
Nkolay Krasko 5f0fce115c Remove zipPlugin task as we don't have a plugin in the repository anymore 2022-04-26 19:47:23 +00:00
Nkolay Krasko b428b5c1b8 Remove kaptIdeTest, kaptTests task is used instead 2022-04-26 19:47:22 +00:00
Alexander Likhachev a02fe31fd5 [Build] Revert workaround introduced in ca2051e1 2022-04-20 14:27:19 +00:00
Yaroslav Chernyshev 36564c8f3a Revert "Publish modules required for Kotlin Gradle Tooling in IDE"
This reverts commit 20f9861264.
2022-04-20 15:16:58 +02:00
Yaroslav Chernyshev 20f9861264 Publish modules required for Kotlin Gradle Tooling in IDE
Modules to be published are: kotlin-gradle-plugin-idea and
kotlin-gradle-plugin-kpm-android
2022-04-20 14:57:18 +02:00
Nikolay Krasko f7a53a1b24 Force using 2.8.9+ gson version as a dependency
Mitigate https://github.com/google/gson/pull/1991

^KT-51837 Fixed
2022-04-19 15:38:30 +02:00