10537 Commits

Author SHA1 Message Date
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
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 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
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
Anton Lakotka 1b3b83755e [Gradle] Add withSourcesJar to gradle dsl
* Each target can be configured to either publish or not its sources.
* For convenience withSourcesJar available also on kotlin multiplatform
  extension level. It then calls `withSourcesJar` for each target.

^KT-55881 In Progress
2023-02-21 10:15:36 +00:00
Sebastian Sellmair 0929e8e30b [Gradle] Resolve cinterops only from a single source set of a given dependency
^KT-56729 Verification Pending
2023-02-20 16:30:11 +00:00
Sebastian Sellmair c5d219f154 [Gradle] KT-56729: Assert no 'duplicated libraries' warning
^KT-56729 Verification Pending
2023-02-20 16:30:10 +00:00
Sebastian Sellmair 7026ca9952 [Gradle] KT-56729: Implement 'commonize-kt-56729-consume-library-with-two-roots' test
... to cover KT-56729
2023-02-20 16:30:10 +00:00
Alexander Korepanov e107de6f36 [JS IR] Use a guard file for preventing incremental caches corruption
If a developer interrupts (kill gradle process) a compilation process or
 an internal error interrupts the compilation process,
 the incremental cache files may be corrupted.
 The patch creates a special guard file, which allows detecting
 if the previous compilation was not successful,
 and in case of any issues drops the incremental cache files.

^KT-56581 Fixed
2023-02-20 13:14:30 +00:00
Yahor Berdnikau 0cad069522 [Build] Pin api and language level to 1.8 in Kotlin compiler modules used by KGP
This is required to be able to compile KGP and it's dependencies which
set LV to 1.4 when repo will use LV 1.9. This caused by the change how
enums are compiled (KT-48872).
2023-02-18 13:26:54 +00:00
Dmitriy Novozhilov 1422654470 [Build] Update version of binary-compatibility-validator to 0.13.0
0.12.0 was incompatible with kotlinx.metadata:0.6.0
2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov 20610a7c89 [Build] Bump kotlinx.metadata version to 0.6.0 2023-02-18 13:26:51 +00:00
Ilya Goncharov a4ce2ced6d [Gradle, JS] Not sync files which are not changed
[Gradle, JS] Try to fix test in windows

[Gradle, JS] Support hierarchical sync compile

[Gradle, JS] Add test on syncing only changed files

[Gradle, JS] Use relative path instead of just name

^KT-56719 fixed
2023-02-17 14:36:45 +00:00
Sebastian Aigner 0e03fc265e [Gradle][MPP] Include links on V2 MPP Source Set layout
^KT-56700 Fixed
2023-02-17 12:31:44 +00:00
Dmitriy Novozhilov d4bb740a62 [CLI] Store information about HMPP module for source files 2023-02-17 11:08:50 +00:00
Sebastian Sellmair 1cce57b50b [Gradle] KT-56712: Add assertions for ide dependencies
^KT-56712 Verification Pending
2023-02-16 13:51:10 +00:00
Sebastian Sellmair b83a490034 [Gradle] MppDependencyProjectStructureMetadataExtractorFactory: Cache on rootProject...
Because composite builds might have isolated classloaders,
therefore caching the MppDependencyProjectStructureMetadataExtractorFactory
on a compositeBuildRoot will lead to ClassCastExceptions

^KT-56712 Verification Pending
2023-02-16 13:51:10 +00:00
Sebastian Sellmair 70a44ccc67 [Gradle] ExtraPropertiesExtension.getOrPut: Use castIsolatedKotlinPluginClassLoaderAware
To provide better error messages for users when this function
fails due to isolated classpaths

... for KT-56712
2023-02-16 13:51:10 +00:00