Commit Graph

12351 Commits

Author SHA1 Message Date
Nikita Bobko f620eb920f Drop redundant suppress
Review: https://jetbrains.team/p/kt/reviews/8933

The suppress was needed in https://jetbrains.team/p/kt/reviews/8308

But it's not needed anymore
2023-02-24 17:05:33 +00:00
Yahor Berdnikau 473a2dc87c Fix KaptGenerateStubsTask freeCompilerArgs duplication
Now this task uses configured freeCompilerArgs both from itself and from
 linked KotlinCompile task. When these tasks are configured with the
 same value this leads to freeCompilerArgs duplication.

Added workaround is to use linked KotlinCompile freeCompilerArgs as
convention value for KaptGenerateStubsTask. Proper fix will be done via
KT-54468.

^KT-55452 Fixed
^KT-55565 Fixed
2023-02-24 09:20:23 +00:00
Yahor Berdnikau a49906f4e4 Bump AGP dependency version to 4.2.2
^KT-56454 Fixed
2023-02-24 09:17:47 +00:00
Yahor Berdnikau db5589121d Bump minimal supported AGP version to 4.2.2
^KT-56454 In Progress
2023-02-24 09:17:47 +00:00
Anton Lakotka fa4bbdf6d6 [Gradle] Avoid configuration resolution in MPP projects
Add `getResolvedArtifactsCompat` for compatibility with gradle <7.4
However configurations are still resolved in these gradle versions

^KT-51940 Verification Pending
2023-02-23 17:59:56 +00:00
Simon Ogorodnik 253cdb1b8f KT-56789: Fix memory leak in CoreJrtFileSystem
CoreJrtFileSystem uses JrtFileSystemProvider provider to read contents
of jrt-fs from JDK
Implementation of FileSystems.newFileSystem causes metaspace memory leak
that wasn't fixed until JDK 17, see
https://bugs.openjdk.java.net/browse/JDK-8260621

When FileSystems.newFileSystem used to create jrt-fs on JDK9 with
provided java.home value it creates new ClassLoader under-the-hood,
which subsequently leaks due to aforementioned bug

Remove conditional usage of `java.home` + FileSystems.newFileSystem and
switch to use jrt-fs classloader cache regardless of
compiler runtime JDK to reduce classloader leaks

^KT-56789
2023-02-23 15:55:24 +00:00
Aleksei.Cherepanov 25b6eb3114 [Maven] Add tests for K2
#KT-56903 Fixed

Co-authored-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com>

Merge-request: KT-MR-8922
Merged-by: Aleksei Cherepanov <aleksei.cherepanov@jetbrains.com>
2023-02-23 11:24:20 +00:00
Ilya Gorbunov 69b90e107c Fix missing native-wasm source set in legacy docs build 2023-02-22 23:52:43 +00:00
Ilya Gorbunov 5a2d557839 docs: specialize build for latest version
- leave only the latest version in versions list
- remove conditions for previous versions
- merge JVM7/8 source sets into JVM
2023-02-22 23:52:43 +00:00
Ilya Gorbunov ba6732ac17 Render kotlin-reflect library documentation in a separate module 2023-02-22 23:52:42 +00:00
Ilya Gorbunov d695b0eac4 Setup multi-module docs build task 2023-02-22 23:52:42 +00:00
Ilya Gorbunov 6236a1fe64 Determine snapshot version automatically from root gradle.properties 2023-02-22 23:52:42 +00:00
Ilya Gorbunov e3cfed8ced Allow to specify target and templates directory with Gradle properties 2023-02-22 23:52:41 +00:00
Ilya Gorbunov 6d3ddb999f Migrate to Gradle KTS, step 3: extract more common extension helpers 2023-02-22 23:52:41 +00:00
Ilya Gorbunov 65dbc1c98a Migrate to Gradle KTS, step 2: fix syntax 2023-02-22 23:52:41 +00:00
Ilya Gorbunov 63eaf3f86f Migrate to Gradle KTS, step 1: rename 2023-02-22 23:52:40 +00:00
Ilya Gorbunov ef02b47348 Update Dokka to 1.8.0-dev-195
- Build dokka plugins with Kotlin 1.8 (required to compile with Dokka 1.8)
2023-02-22 23:52:40 +00:00
Ilya Gorbunov e8139043b2 Remove workaround for removing SinceKotlin from enums
No longer needed with the modern Dokka
2023-02-22 23:52:40 +00:00
Ilya Gorbunov 95f21075fe Inline project with kotlin-native path settings 2023-02-22 23:52:40 +00:00
Ilya Gorbunov 2cfbbb185d Change docs artifacts directory layout for easier publishing
Change module names of libraries to be consistent
2023-02-22 23:52:39 +00:00
Ilya Gorbunov e105d11a2b Documentation source sets configuration tuning
- consistent naming of source sets
- register JDK7/8 docs source sets only since 1.2
- source set dependencies in kotlin-test module
- classpath tuning
  - Enumerate classpath jars in library directories:
    compiler can't use just directory as a classpath
  - No need to pass classpaths for stdlib docs build:
    it's analyzed from sources and doesn't have other dependencies
2023-02-22 23:52:39 +00:00
vmishenev a758e0bae7 Disable ignoreCommonBuiltIns in kotlin.test 2023-02-22 23:52:39 +00:00
Ilya Gorbunov fbe1aff961 Extract repeating parts of configuration 2023-02-22 23:52:38 +00:00
Ilya Gorbunov e94ca37bd6 Rectify docs task dependencies
Introduce kotlin-test->stdlib doc task dependency due to package-list and fix package-list local path
2023-02-22 23:52:38 +00:00
vmishenev e94818a1cb Setup project for docs build with new Dokka
- Update Dokka to 1.6.20-M1
- Update Dokka to 1.6.20
- Update Dokka to 1.7.0-dev
- Update Dokka to 1.7.20-dev-187

Co-authored-by: ilya.gorbunov@jetbrains.com
2023-02-22 23:52:38 +00:00
Ilya Gorbunov 9bceb6cd0a Move/copy legacy docs build to a separate directory 2023-02-22 23:52:37 +00:00
Ilya Goncharov 4ccad00c11 [Gradle, JS] Force enabled js compiler legacy to prevent problems in daemon 2023-02-22 13:56:15 +00:00
Yahor Berdnikau 40a4845541 Use KotlinNativeCompilerOptions in KotlinNativeCompile task
^KT-53108 Fixed
2023-02-22 13:03:00 +00:00
Yahor Berdnikau 96316a4016 Generate KotlinNativeCompilerOptions Gradle DSL
^KT-53108 In Progress
2023-02-22 13:02:59 +00:00
Ilya Goncharov 1b7ea022e6 [Gradle, JS] Fix test with not included stdlib dependency with disabled dom-api-compat 2023-02-22 11:00:14 +00:00
Ilya Goncharov 9073a7b6b0 [Gradle, JS] Not add dom-api-compat if stdlib default dependency is disabled 2023-02-22 11:00:14 +00:00
Ilya Goncharov a391db3127 [Gradle, JS] Fix hierarchical module test 2023-02-22 11:00:14 +00:00
Ilya Goncharov afda1669d7 [Gradle, JS] Error warning mode 2023-02-22 11:00:13 +00:00
Ilya Goncharov f510bb77c8 [Gradle, JS] Fix incremental backend test 2023-02-22 11:00:13 +00:00
Ilya Goncharov d1768029b4 [Gradle, JS] Add test on dom-api-compat 2023-02-22 11:00:13 +00:00
Ilya Goncharov 67346f7913 [Gradle, JS] Revert Gradle integration tests about dom-api-compat 2023-02-22 11:00:12 +00:00
Ilya Goncharov b9cf47858d [Gradle, JS] Add module kotlin-dom-compat-api as dependency with opt-out
This reverts commit c73b6ac352.
2023-02-22 11:00:12 +00:00
Ilya Goncharov 229fd73b38 [Gradle, JS] Regenerate API stdlib
This reverts commit b4c0cab22a.
2023-02-22 11:00:11 +00:00
Ilya Goncharov 9b4821be28 [Gradle, JS] Add module dom-api-compat
This reverts commit ba8cc877fd.
2023-02-22 11:00:11 +00:00
Ilya Goncharov 6ac562a19d [Gradle, JS] Remove redundant runtime attribute to compileClasspath in test 2023-02-21 19:35:18 +00:00
Ilya Goncharov bcb517d66b [Gradle, JS] Distinguish cache directories for js ir incremental compilation
[Gradle, JS] Make cleanOutputsAndLocalState as member method

^KT-56765 fixed
2023-02-21 16:37:37 +00:00
Alexander Korepanov 3c9d653595 [JS IR] Ignore unbound symbols in IC infrastructure
The IR linker is responsible for detecting unbound symbols,
 if it skips them for some reason, IC infrastructure must not fail
 with unbound symbols exceptions. Anyway, the IR validator
 verifies later if there are unbound symbols in
 reachable IR and generates the corresponding error.

^KT-56602 Fixed
2023-02-21 14:46:44 +00:00
Yahor Berdnikau ff22f456a0 Fix KGP integration tests tasks run tests with other tags
Before this change specific test task (for example 'kgpJvmTests') will
run also test cases that included into test class annotated with
"JvmKGP" tag, but test case itself annotated with, for example,
"OtherKGP". Now specific test tasks should only run tests for given test
 tag.
2023-02-21 14:42:39 +00:00
Nikita Bobko 9a865e4c55 [FE 1.0] Issue a warning if expect and actual are declared in the same module
The commit is based on b09561c3c3
Co-authored-by: Dmitriy Novozhilov <dmitriy.novozhilov@jetbrains.com>

^KT-40904 Fixed
^KT-55177 Fixed
Review: https://jetbrains.team/p/kt/reviews/8731

True negative test already exist:
`compiler/testData/diagnostics/tests/multiplatform/hmpp/multiplatformCompositeAnalysis/intermediateWithActualAndExpect.kt`
2023-02-21 14:45:46 +01:00
Anton Lakotka 1dd9751f99 [Gradle] Add mavenScope parameter to createSourcesJarAndUsageContextIfPublishable
^KT-55881 Verification Pending
2023-02-21 10:15:38 +00:00
Anton Lakotka f8e1b51f04 [Gradle] Rename publishableSources to isSourcesPublishable
^KT-55881 Verification Pending
2023-02-21 10:15:38 +00:00
Anton Lakotka 5b0a9c7a55 [Gradle] Update kotlin-gradle-plugin-api.api
^KT-55881 Verification Pending
2023-02-21 10:15:37 +00:00
Anton Lakotka e5ec028500 [Gradle] Add withSourcesJar tests
^KT-55881 Verification Pending
2023-02-21 10:15:37 +00:00
Anton Lakotka 9f32d916f9 [Gradle] Move publishableSources flag to InternalKotlinTarget
^KT-55881 Verification Pending
2023-02-21 10:15:37 +00:00
Anton Lakotka 4329b66c60 [Gradle] Don't publish sources when withSourcesJar(publish = false)
^KT-55881 In Progress
2023-02-21 10:15:36 +00:00