Commit Graph

7017 Commits

Author SHA1 Message Date
Yahor Berdnikau d9ddcd991b Migrate 'kotlin-gradle-plugin' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau f25b00daa3 Migrate 'kotlin-lombok' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 1ddd90bba1 Migrate 'android-test-fixes' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau e875a0a311 Migrate 'kotlin-sam-with-receiver' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 21a12b9a58 Migrate 'kotlin-noarg' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 2c7992596c Remove 'kotlin-gradle-plugin-dsl-codegen' from Gradle dependencies
Gradle dependencies configuration doesn't make sense in this module.

^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau b600a52a57 Migrate kotlin-gradle-build-metrics module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau e4dcc9344a Migrate kotlin-gradle-plugin-model module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau b2e3c5c557 Migrate kotlin-gradle-statistics module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau 8d69675e7b Migrate kotlin-allopen module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau 437592ac2a Migrate kotlin-gradle-plugin-api module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Alexander Likhachev 96b71e83ec [Gradle] Deprecate the system property for compiler execution strategy
#KT-51830 Fixed
2022-04-04 18:32:55 +00:00
Nikolay Krasko f5e89079e9 Temporary revert maven-jar-plugin version in kotlin-osgi-bundle
Workaround for:
Classes found in the wrong directory:
{META-INF/versions/9/kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class=kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInsResourceLoader, META-INF/versions/9/module-info.class=module-info}

KTI-729
2022-04-04 17:51:40 +00:00
Nikolay Krasko 1288aaf0a2 Update maven-jar-plugin and maven-source-plugin on the way to reproducible builds
KTI-729
2022-04-04 17:51:39 +00:00
Yahor Berdnikau ebb292849f Remove experimental.coroutines DSL
And 'kotlin.coroutines' property as well.

^KT-50494 Fixed
2022-04-04 15:11:46 +00:00
Ilya Chernikov 35f80c04ca IR Scripting: update capturing logic for the REPL, imported scripts,
as well as all other implicit receivers.
2022-04-04 14:55:53 +00:00
Yahor Berdnikau 6ddb76743a Fix multi-project incremental JS tests are not actually running 2022-04-04 15:09:38 +02:00
Yahor Berdnikau 7ffb232a95 Remove 'kotlin-dce-js' Gradle plugin
^KT-48276 In Progress
2022-04-04 12:19:05 +02:00
Yahor Berdnikau bc066e1863 Set minimal supported AGP version to 3.6.4
^KT-51342 Fixed
2022-04-04 07:32:53 +00:00
Yahor Berdnikau 785831c82a Add 'NormalizeLineEndings' to cacheable tasks and transformations
^KT-50673 Fixed
2022-04-04 07:29:56 +00:00
Aurimas 1a40eabbbd Fix for KT-51765
Kotlin Gradle plugin was incorrectly assuming that com.android.lint implies an Android project.
com.android.lint works for any JVM project and is used that way in various projects.
2022-03-31 16:28:19 +02:00
Alexander Dudinsky 86d8ef7e45 Migration HierarchicalMppIT tests to new DSL
^KT-50912
2022-03-31 13:24:33 +00:00
Dmitriy Dolovov 053ddb51ce [Gradle, Native] Propagate -Xpartial-linkage flag to compiler invocations that build static cache for 3rd-party and user libs
^KT-51441
2022-03-30 20:31:31 +03:00
Ilya Chernikov f89765eb33 Make JDK classpath roots configuration explicit...
instead of relying on the "configuration files" parameter.
(in the process of migration from KotlinCoreEnvironment).
2022-03-30 08:32:56 +00:00
Hung Nguyen bd8f49c5d6 KT-45777: Count cache misses when loading classpath snapshot
to get more insights into the build performance of that step.

^KT-45777 In Progress
2022-03-29 11:36:41 +00:00
Hung Nguyen d70dbf3146 KT-45777: Add debug log messages for classpath snapshot feature
Also clean up classpath snapshot shrinking a bit to make it clearer.

^KT-45777 In Progress
2022-03-29 11:36:40 +00:00
Hung Nguyen 1d1c6d5e0b KT-45777: Change classpath-snapshot directory location
Incremental states for Kotlin compilation are stored inside the
`<project>/build/kotlin/<task-name>` directory. Previously, that
directory was @LocalState, so we had to keep the `classpath-snapshot`
@OutputDirectory outside it.

Now, that directory has been made a parent containing @OutputDirectory's
@LocalState's, so we can safely move the `classpath-snapshot` directory
to it.

Test: Existing tests should pass (location change has no functional impact)

^KT-45777 In Progress
2022-03-29 11:36:39 +00:00
Ilya Goncharov c67c1a69b9 rra/ilgonmic/reducing-size
[JS IR] Fix review remarks

- Fix translation mode from flags calculation
- comment why not top level could be safely inlined

[JS IR] Add test on exportness of internal val

Revert "[Gradle, JS] Disable minimizing names in production by default"

This reverts commit 700ff8634a73f155a2f0eaf963778216d6877075.

[JS IR] Adopt reserved names

Revert "[JS IR] Reserve interop names"

This reverts commit 63f30becaf1a45750ff85aea3753aae9a85985f4.

Revert "[JS IR] Clear minimized namer states"

This reverts commit ef7f19fa8a928021e8bdfbee7fbb5285fc74b7ab.

[JS IR] Clear minimized namer states

[JS IR] Reserve interop names

[JS IR] Separate arguments for users

[JS IR] Minimized member names in tests

[Gradle, JS] Disable minimizing names in production by default

[JS IR] Fix extra helps

[JS IR] Move mangling of signatures to linking namer

[JS IR] Add key and minimized name generator

[JS IR] cross module dependencies minimized

[JS IR] Minimize names

[JS IR] Cross module by index

[JS IR] Fix warning

[JS IR] Fix inlining accessors

[JS IR] Bridges for property accessors

[JS IR] Special case of jsFunctionSignature with property accessors

[JS IR] Inline property accessor for non top level properties

[JS IR] Reduce crossModule size

Merge-request: KT-MR-5785
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-51735 fixed
^KT-50504 fixed
2022-03-28 10:39:15 +00:00
Anton Lakotka 5c612078e5 [Gradle] Fix compileCommonMainKotlinMetadata task circular dependency
It's getRefinesMetadataPaths should not include its own metadata Paths
So it should use `refinesClosure` instead.

Was introduced by refactoring changes in:
1a5fc84080
2022-03-28 07:00:30 +00:00
Udi Cohen c9d2f40b95 Rename params show/dumpProcessorTimings to show/dumpProcessorStats
^KT-51132 Fixed
2022-03-25 18:54:02 +00:00
Anton Lakotka f5c05c1a52 [Gradle][KPM] Add kotlinToolingMetadataOfMainModule for tests 2022-03-25 00:04:30 +01:00
Anton Lakotka 1aac53d544 [Gradle] Add BuildKotlinToolingMetadataTest for KPM 2022-03-25 00:04:30 +01:00
Anton Lakotka 2e327f1367 [Kotlin] Add multi-module test for tooling metadata
^KT-49704
2022-03-25 00:04:30 +01:00
Anton Lakotka 7af5a93767 [Gradle][KPM] Create BuiltKotlinMetadata task per KPM Module
Use main module for tests

KT-49704
2022-03-25 00:04:29 +01:00
Anton Lakotka b579bf20cf [Gradle] Fix code review comments
KT-49704
2022-03-25 00:04:29 +01:00
Anton Lakotka a2a414ace4 [Gradle] Include kotlin-tooling-metadata in KPM module publication
KT-49704
2022-03-25 00:04:29 +01:00
Anton Lakotka ac8e7606a2 [Gradle] Map KPM model to Build Tooling Metadata v1.1.0
Update buildKotlinToolingMetadata gradle task

KT-49704
2022-03-25 00:04:25 +01:00
Anton Lakotka 2dc774c1fe Build Tooling Metadata 1.1.0: Add isKPMEnabled flag
Build Tooling Metadata now can carry information whether project
built with Kotlin Project Model or not.

KT-49704
2022-03-25 00:03:04 +01:00
Yahor Berdnikau 5f1977083d Restore "Rename 'classpath' input into 'libraries'"
This reverts commit 47a9fb725e.
2022-03-24 19:02:58 +01:00
Yahor Berdnikau 0d18703c25 Restore "Simplify scripting configurations setup"
This reverts commit 46d3f96f0b.
2022-03-24 19:02:58 +01:00
Yahor Berdnikau db86e7c29d Restore "Add KotlinCompile.androidLayoutResources input"
This reverts commit 69b4b80dff.
2022-03-24 19:02:58 +01:00
Yahor Berdnikau 9a8daf2b5f Restore "Remove sourceFileExtensions input"
This reverts commit 46f44763ac.
2022-03-24 19:02:57 +01:00
Yahor Berdnikau dc0a1df8d4 Restore "AbstractKotlinCompileTool class now also implements PatternFilterable"
This reverts commit d5e5513dfd.
2022-03-24 19:02:57 +01:00
Yahor Berdnikau 4aa6d984fc Restore "Drop tasks inheritance from 'AbstractCompile' and 'SourceTask'"
This reverts commit 2c5d817633.
2022-03-24 19:02:54 +01:00
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