Commit Graph

7100 Commits

Author SHA1 Message Date
Yahor Berdnikau c596ced62d Remove in tests excessive logs 2022-03-07 11:34:40 +01:00
Ilya Gorbunov dea149ab47 Advance Kotlin version used in build to 1.7
Also update kotlinx-metadata-jvm used in kotlin-reflect build to 0.4.1
in order to support reading Kotlin 1.7 metadata version.
2022-03-05 22:15:59 +03:00
Aleksei.Cherepanov b308ce3f65 Fix Configuration cache tests after ee756638
Fix flaky tests:
* ConfigurationCacheIT.testInstantExecutionWithBuildSrc
* ConfigurationCacheIT.testInstantExecutionWithIncludedBuildPlugin

#KT-51374 Fixed
2022-03-05 11:17:22 +00:00
Yahor Berdnikau 7b7ed8c110 Disabled test in UpToDateIT on Windows OS
^KT-45745 In Progress
2022-03-04 20:45:17 +01:00
nataliya.valtman 41fc5e24e9 Fix unstable testIncrementalCompilationAfterCacheHit test 2022-03-04 20:49:22 +03:00
nataliya.valtman bbafa67122 Add only one warning for failed statistics 2022-03-04 20:49:22 +03:00
Yahor Berdnikau 10f43b9fd7 Migrate UpToDateIT to new test dsl
^KT-45745 In Progress
2022-03-04 18:44:37 +01:00
Yahor Berdnikau 745b591b2e Migrate AllOpenModelBuilderTest to new test dsl
^KT-45745 In Progress
2022-03-04 18:44:37 +01:00
Aurimas 90f41b8a84 Make KotlinJvmTest Cacheable
In Gradle tasks need to be explicitly marked as cacheable. `org.gradle.api.tasks.testing.Test`
is marked with @CacheableTask but this annotation is inherited by subclasses. See:
https://docs.gradle.org/current/userguide/build_cache.html#sec:task_output_caching_details

^KT-51454 Fixed
2022-03-04 14:03:23 +01:00
Yahor Berdnikau aca2e46e62 Fix failing kapt test
Dependency test is using was not available. Updated it to the latest
stable version.
2022-03-02 11:05:26 +01:00
Ilya Goncharov 8b34be9490 rra/ilgonmic/update-lock-files
[Gradle, JS] Update npm versions

[JS] Update package.json's and lock files

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

^KT-51503 fixed
2022-03-01 10:24:56 +00:00
Yahor Berdnikau cb474f9b43 Remove 'jdkHome' option from Gradle options
Toolchain feature is replaced it.

^KT-46541 Fixed
2022-02-28 10:08:50 +00:00
Anton Lakotka 3cc3bf2a6b [Gradle] JsCompilationDependenciesHolder should not implement HasKotlinDependencies through delegation
`HasKotlinDependencies::dependencies` methods is meant to read
``*ConfigurationName` properties in implementations.
Therefore, implementation through delegate isn't possible since
delegate *can't* read overrided properties, instead it sees its own.

^KT-51457 Verification Pending
2022-02-28 09:50:02 +00:00
Anton Lakotka bf11704a98 [Gradle] Add test for KT-51457
^KT-51457 In Progress
2022-02-28 09:50:01 +00:00
Aleksei.Cherepanov ee756638a0 Fix creation of temp file in case of bad parent dir for Gradle
newTmpFile can fail, if you pass non-existent path as temp parent directory or java.io.tmpdir is empty or invalid. Now we try to create non-existent dirs and provide more info if it also fails. Also fix error throwing in JPS part(46c0c4f9)

#KT-51374 Fixed
2022-02-28 08:50:02 +00:00
Pavel Kirpichenkov 91a0af2aa1 [MPP] Provide platform integers support library implicitly in KGP
KT-41509
2022-02-28 10:59:40 +03:00
Pavel Kirpichenkov 8f4d04dad2 [MPP] Add preliminary version of platform integer commonizer
Doesn't take target's size_t alias into account just yet

KT-41509
2022-02-28 10:59:36 +03:00
Mikhail Glukhikh 53d6ac24e5 Switch kotlin version to 1.7
* Change 1.6 to 1.7 constants
* Fix SAFE_CALL_WILL_CHANGE_NULLABILITY for testData
* Change EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_WARNING to EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR
* Change NON_EXHAUSTIVE_WHEN_STATEMENT to NO_ELSE_IN_WHEN
* Fix testData for SafeCallsAreAlwaysNullable
* Change T -> T & Any in test dumps
* Change INVALID_CHARACTERS_NATIVE_WARNING -> INVALID_CHARACTERS_NATIVE_ERROR
* TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM_WARNING -> TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM_ERROR
2022-02-25 11:46:27 +00:00
Nikolay Krasko f35b4b7515 Update junit to 4.13.1 in kotlin-maven-plugin-test 2022-02-22 21:43:29 +03:00
dependabot[bot] ba45f29959 Bump junit in kotlin-maven-plugin-test
Bumps [junit](https://github.com/junit-team/junit4) from 4.9 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.9...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 21:43:29 +03:00
Nikolay Krasko 82e3ec2eaa Update junit 4.12 -> 4.13.1 in js archetype 2022-02-22 21:43:28 +03:00
dependabot[bot] b5e258b3cf Bump junit 4.12 -> 4.13.1 in maven jvm archetype
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 21:43:27 +03:00
Yahor Berdnikau d0ee0d8c38 Migrate KotlinJsLibraryGradlePluginIT tests to new dsl
^KT-45745 In Progress
2022-02-22 18:59:19 +01:00
Yahor Berdnikau b87075c344 Add separate test project for warn on different classloaders test
After this update  to have different classpath hash in subprojects,
they should have different sets of plugins applied. But KGP could be
in all of them.

^KT-49227 In Progress
2022-02-22 12:35:06 +00:00
Yahor Berdnikau 9f0df8f6b5 Migrate sam-with-receiver plugin configuration
This change should also trigger proper publishing of this plugin to
Gradle plugin portal.

^KT-49227 In Progress
2022-02-22 12:35:05 +00:00
Yahor Berdnikau d7122bc52a Move kotlinGradleFragmentConsistencyChecker to be a part of class
Fixes 'NoSuchMethodException' on running
'KpmCompilerPluginIT.testTransientPluginOptions' test.

^KT-49227 In Progress
2022-02-22 12:35:05 +00:00
Yahor Berdnikau 4c2434ecf0 Migrate kotlin-lombok configuration
^KT-49227 In Progress
2022-02-22 12:35:04 +00:00
Yahor Berdnikau f8ec91f549 Migrate atomicfu plugin configuration
^KT-49227 In Progress
2022-02-22 12:35:03 +00:00
Yahor Berdnikau 572285cb3b Migrate kotlin-allopen configuration
^KT-49227 In Progress
2022-02-22 12:35:03 +00:00
Yahor Berdnikau 0488924edb Migrate kotlin-noarg configuration
^KT-49227 In Progress
2022-02-22 12:35:02 +00:00
Yahor Berdnikau 539826e611 Migrate kotlin-serialization configuration
^KT-49227 In Progress
2022-02-22 12:35:02 +00:00
Yahor Berdnikau 0af5b34921 Move some Gradle libraries to use common-dependency configuration
^KT-49227 In Progress
2022-02-22 12:35:02 +00:00
Yahor Berdnikau 1d2796d491 Update Gradle plugins publishing setup
Simplifies and make it aligned with official documentation, which
removes some old workarounds. Additionally, it enables publication of
Gradle metadata file, which is required for plugin variants feature
support.

Instead of using 'gradleApi()' as Gradle API dependency, which provides
build current Gradle version api, now setup is using
"dev.gradleplugins:gradle-api" artifacts with specific Gradle version.
This allows to have more fine-grained Gradle support for removed apis.

^KT-49227 In Progress
2022-02-22 12:35:01 +00:00
Yahor Berdnikau 764dd84803 Update dokka plugin to 1.6.10 version
Move it into 'buildSrc' dependency, so it will be available to
precompiled script plugins.

^KT-49227 In Progress
2022-02-22 12:35:00 +00:00
Yahor Berdnikau 14dc20186d Migrate IncrementalCompilationMultiProjectIT test to new dsl
^KT-45745 In Progress
2022-02-21 23:49:12 +03:00
Yahor Berdnikau a5c1febf88 Convert IncrementalJavaChangeIT test to new tests dsl
^KT-45745 In Progress
2022-02-21 23:49:11 +03:00
Yahor Berdnikau f8a3b8bf1f Add helper to get paths related to the project dir
^KT-45745 In Progress
2022-02-21 23:49:11 +03:00
Yahor Berdnikau 01d5b92b33 Add additional build options required for incremental tests
^KT-45745 In Progress
2022-02-21 23:49:10 +03:00
Alexander Udalov bb77078362 Do not use embeddable compiler for K/N in testMppBuildWithCompilerPlugins 2022-02-21 19:56:22 +01:00
Ivan Gavrilovic 0074e0209c KT-41456: Incremental KAPT - check compiled sources before running incrementally
Because incremental KAPT tries to reuse .class files produced by kotlinc
and javac, it should check for their existence before starting
an incremental run. Otherwise, annotation processors that perform type
validation will fail to run.

Current check counts the number of declared types in processed .java
sources, and it makes sure the total number of .class files in compiled
sources dirs is equal or higher. Otherwise, KAPT runs non-incrementally.

Tests: KaptIncrementalWithIsolatingApt.testMissingKotlinOutputForcesNonIncrementalRun

^KT-41456 In Progress
2022-02-21 18:10:00 +03:00
Yahor Berdnikau 9943b146e9 Remove 'kotlinPluginVersion' property
^KT-47318 Fixed
2022-02-21 09:46:42 +00:00
Yahor Berdnikau 9d0d26e15d Restore 'KotlinGradleSubplugin' as marker interface.
This avoids build failure in 'buildSrc' module with 'kotlin-dsl' applied
with 'ClassNotFound' exception.

^KT-51378 Fixed
2022-02-21 09:42:23 +00:00
Ilya Goncharov 2173ce77d5 rra/ilgonmic/fork-options-js-test
[Gradle, JS] Environment instead of fork options

[Gradle, JS] Add test on fork options

[Gradle, JS] Add fork options to kotlin js test

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

^KT-51414 fixed
2022-02-21 08:41:29 +00:00
Yahor Berdnikau 798a15c450 Fix flaky native test. 2022-02-18 19:37:07 +03:00
sebastian.sellmair 4a02e88df1 [KPM] kotlin-gradle-plugin-idea: Publish sources and javadoc jars
KT-51262
KT-51220
2022-02-18 16:31:06 +00:00
Dmitriy Novozhilov 8993d5d2eb [Build] Detach :liraries:tools:dukat module from root gradle project
This is needed to prevent leaking dependency on `dukat:0.5.8-rc.4` into
  dependency of Kotlin project after import to IDE. This jar contains
  unshaded classes of some outdated compiler version and it confuses
  IDEA tooling (like debugger), so it shows those classes instead of
  real sources from project
2022-02-18 07:30:50 +00:00
Andrey Uskov 4bd61c75d0 Fixed collection of performance metrics if file output is not enabled 2022-02-18 10:11:28 +03:00
sebastian.sellmair 5ef90b4279 [KPM] kotlin-gradle-plugin-idea: bump minimalBackwardsCompatibleVersion
KT-51262
KT-51220
2022-02-17 20:19:34 +00:00
sebastian.sellmair 06625f63df [KPM] Mark IdeaKotlinFragmentDependencyImpl.Companion as internal
KT-51262
KT-51220
2022-02-17 20:19:33 +00:00
sebastian.sellmair 21d6c11bbb [KPM] Implement test to check if data classes are marked as internal
KT-51262
KT-51220
2022-02-17 20:19:32 +00:00