Commit Graph

7053 Commits

Author SHA1 Message Date
Yahor Berdnikau 6ed0efedd3 Add workaround for Gradle dependency resolution error
Gradle throws unexpected error on dependency resolution without
this workaround.

Related to KT-51837
2022-04-19 15:38:33 +02:00
Vyacheslav Gerasimov bfe8306f62 Don't finalize gradle tests with cleanTestKitCacheTask on Teamcity
It may fail on Windows because of locked files and not really necessary
because TeamCity can clean up checkout directories when space needed
2022-04-19 11:45:23 +00:00
Vyacheslav Gerasimov 202347865d Move gradle testKit cache to the build directory 2022-04-19 11:45:23 +00:00
Vyacheslav Gerasimov d9e8f0c180 Build: Rework test workers calculation with respect to available memory
#KTI-787
2022-04-19 11:45:23 +00:00
Alexander Likhachev 079400796a [Build] Validate Gradle plugins on install 2022-04-19 00:39:25 +03:00
Alexander Likhachev eda759ba31 [Build] Avoid buildscript root capture into task action
#KT-44611 In Progress
2022-04-19 00:39:24 +03:00
Alexander Likhachev 899964ba30 [Build] Update gradle-node-plugin to 3.2.1
#KT-44611 In Progress
2022-04-19 00:39:21 +03:00
Ilya Gorbunov a03999fe81 Rename DefaultTimeMark to TimeSource.Monotonic.ValueTimeMark 2022-04-14 16:54:32 +00:00
Ilya Gorbunov fede70d0d5 Make TimeMark returned by TimeSource.Monotonic a value class
This value class wraps Long on JVM and Native thus reducing allocations
in time measurement scenarios when the default monotonic time source is
statically known.

KT-46132
2022-04-14 16:54:30 +00:00
Yahor Berdnikau 5b45ea9bc9 Introduce KotlinBasePlugin
This interface is a top-level interface for all Kotlin plugins.
Additionally it provides 'pluginVersion' property allowing to get
current applied plugin version

^KT-50869 Fixed
^KT-48008 Fixed
2022-04-14 16:15:42 +00:00
Ivan Gavrilovic ca193a89d2 [Gradle] Add APIs that allow AGP to configure Kotlin compilation
Add APIs that describe tasks, so that AGP can configure them. This
change all adds support to *Config objects to support configuring
tasks when there is no access to internal KGP objects.

^KT-50869 In Progress
2022-04-14 16:15:42 +00:00
Ivan Gavrilovic 46cb4902e1 [Gradle] Move more task inputs to properties
... move more configuration logic to TaskConfigAction classes. This is
to avoid directly accessing tasks to configure them. The TaskConfigAction
objects should eventually have access to all information that is required
to configure the task, and they should compute the final values of
all properties.

This will also allow 3P plugins to configure Kotlin tasks, without
the need to create KGP internal objects.

^KT-50869 In Progress
2022-04-14 16:15:41 +00:00
Jerome Prinet 769f4c630f Update Gradle Enterprise plugins versions 2022-04-14 14:21:31 +03:00
Jerome Prinet 61b12c9dbf Fix AbstractArchiveTask deprecations 2022-04-14 14:21:31 +03:00
Jerome Prinet 6aec88446a Fix JavaExec.main deprecation 2022-04-14 14:21:31 +03:00
Kevin Bierhoff 9fe6e97cb8 Extensions for java.util.Optional (KT-50484)
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
2022-04-13 14:34:06 +03:00
Ilya Gorbunov 1845e326d1 Hide deprecated Double/FloatArray.contains/indexOf/lastIndexOf 2022-04-12 15:03:40 +00:00
Ilya Gorbunov 2303730d57 Remove deprecated and not stabilized primitive unsigned iterators 2022-04-12 15:03:38 +00:00
Yahor Berdnikau 2c252f9231 Print in info level logs applied plugin variant
^KT-49227 Fixed
2022-04-12 14:48:49 +00:00
Yahor Berdnikau e8774448ee Allow to register specific variant implementations
Such way those implementations are accessible from the common code.
 To avoid putting stub implementations in every variant, it is also
 possible to add default implementation from the common code if variant
 hasn't register own.

 As an example of usage, support for removed in Gradle 7.0 'maven' plugin
 was moved into 'main' variant (Gradle 6.7.1 - 6.9.3).

 ^KT-49227 In Progress
2022-04-12 14:48:48 +00:00
Yahor Berdnikau 78cc2365b0 Fix gradle api dependency version in variants
Common SourceSet was forcing gradle api version to be the same
in all plugin variants via 'extendsFrom(..)'.

^KT-49227 In Progress
2022-04-12 14:48:48 +00:00
Yahor Berdnikau 85689f4eb3 Fix jvmTarget was not set on reusing configuration cache.
When project has toolchain configured and on reusing configuration
cache, 'filteredMapArguments' input was calculated without actual
value of `jvmTarget` provided by toolchain leading to non-UP-TO-DATE
KotlinCompile task state.

^KT-51937 Fixed
2022-04-12 08:32:30 +00:00
konstantin.tskhovrebov c82b1d3e33 KT-51884 Skip XCFramework and FatFramework tasks on non-mac machines. 2022-04-12 06:52:46 +00:00
Ilya Goncharov 1c2604a95e rra/ilgonmic/dry-run-wo-output
[Gradle, JS] Use assertOutputDoesNotContain

[Gradle, JS] Add test on no output for dry run in gradle tests

[Gradle, JS] No output for dry run in gradle tests

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

^KT-51895 fixed
2022-04-11 10:38:27 +00:00
Pavel Punegov 3d17d476e0 [K/N][build] Define meta versions order and comparing
Move isAtLeast() from compiler downloader and test
to CompilerVersion.kt
2022-04-08 14:42:08 +03:00
Yahor Berdnikau 92d9c5b150 Remove 'kotlin2js' Gradle plugin
Plugin class is still left untouched as it is used by
js platform old plugin.

^KT-48276 Fixed
2022-04-06 13:32:34 +00:00
Ivan Kylchik 6f448820f0 Add new internal annotation IntrinsicConstEvaluation 2022-04-05 17:20:38 +00:00
Ilya Gorbunov 4c461d7864 Add min/max test generator and generated tests
Temporarily exclude these tests from kotlin-stdlib-wasm testing due to KT-51647
2022-04-04 22:33:25 +00:00
Ilya Gorbunov 60fbb0d171 Reintroduce min/max operations for non-empty collections KT-50146 2022-04-04 22:33:24 +00:00
Ilya Gorbunov 4709e2c274 stdlib-gen: simpify copyright notice reading 2022-04-04 22:33:23 +00:00
Abduqodiri Qurbonzoda 42c9a27b8a Specialize Progression first/last/OrNull functions #KT-42178 2022-04-04 22:27:49 +00:00
Yahor Berdnikau cca2680c7f Update Gradle integration tests
Substituting plugin via 'pluginManagement.eachPlugin.useModule' does not
work with plugin variants.

^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau 5d11c5fa56 Add attributes to the kotlin subplugins classpath.
This removes selection ambiguity and provides Gradle multi-variant
support for 3rd party compile plugins wrapped in Gradle.

^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau b376146744 Update build setup for Gradle integration tests
^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau 35c6f709db Update gradle plugin dependencies in 'kotlin-gradle-plugin-idea'
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 792d44e617 Migrate 'kotlin-serialization' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
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