Commit Graph

4161 Commits

Author SHA1 Message Date
Abduqodiri Qurbonzoda f9ee1dc22d Specify which element Iterable.distinctBy(selector) retains #KT-36356 2020-02-20 18:50:13 +03:00
Konstantin Tskhovrebov 018cfc7df6 Fix class name for test suite descriptor.
Issue #KT-36725 Fixed
Issue #KT-36716 Fixed
Issue #KT-36726 Fixed
2020-02-20 17:37:06 +03:00
Sergey Igushkin 0e970407a4 Fixup for 9b861739 (the fix for KT-35942)
* Don't include the JS friend paths into the classpath
* Fix binary compatibility with Gradle < 5.1

Issue #KT-35942
2020-02-19 23:10:53 +03:00
Sergey Igushkin 723ebb4f57 Fix compileOnly dependencies in HMPP (KT-36469)
The `compileOnly` configuration of a source set was not included in the
granular dependency transformation, which led to the dependencies from
the configuration being excluded as unrequested during dependency
processing.

Fix this by properly including the compileOnly scope into the
dependencies transformation.

Issue #KT-36469 Fixed
2020-02-19 17:30:46 +03:00
Sergey Igushkin 9b861739cd Include the production artifacts in friend paths (KT-35942)
In some setups, the friendArtifacts that we had in addition to direct
associate compilations' output classes were insufficient. For example:

1. When an Android module's tests depend on another module which
   transitively depends on the module containing tests: then the AGP
   API doesn't tell us that there are artifacts from the tested
   variant, but instead there's just the module's artifact.

2. Similar case but without Android, and if the classes are read from
   the module's artifact rather than the production output classes dir,
   then they are definitely not on the friend paths (which include the
   production classes dirs and not the the production artifact).

In both cases, the friendArtifacts mechanism allows us to add those
potential sources of the friend classes to the friend paths.

Issue #KT-35942 Fixed
2020-02-19 17:30:45 +03:00
Pavel Semyonov 6982db7d02 chore: improved UI texts for new project wizard 2020-02-19 12:00:30 +03:00
Sergey Igushkin faa95bfc33 Fix KT-36804 by eagerly instantiating the Kotlin/Native tasks
This commit partially reverts 970ee4539b.

The Kotlin/Native klib compilation task configuration logic involved
adding dependencies for the compiler plugin artifacts. However, the
compiler plugins classpath, shared across all of the K/N tasks, was
tracked as the tasks' input. This made the following scenario possible:

1. Configuration of some of the Kotlin/Native tasks is avoided at the
   evaluation phase;

2. During task graph construction, one of the tasks are evaluated, and
   to determine their dependencies, Gradle resolves their inputs,
   including the compiler plugins classpath mentioned above;

3. Another K/N task is evaluated afterwards, and the configuration logic
   attempts to add a dependency into the compiler plugin classpath
   configuration, which has already been resolved in (2).
   The build fails.

Fix this by cancelling task configuration avoidance for the K/N tasks.

Issue #KT-36804 Fixed
2020-02-18 16:48:12 +03:00
Vyacheslav Karpukhin eef86d47a0 Merge branch 'slava/mpp-import-experiments'
# Conflicts:
#	idea/idea-gradle/src/org/jetbrains/kotlin/idea/configuration/KotlinMPPGradleProjectResolver.kt
2020-02-18 14:14:23 +01:00
Vyacheslav Karpukhin 4462ecb280 Simplified SdkLocator usage in AndroidDependencyResolver 2020-02-18 14:10:29 +01:00
Vyacheslav Karpukhin 082c358f9d Removed references to AndroidDependencyResolver from KotlinMultiplatformExtension 2020-02-18 14:10:29 +01:00
Vyacheslav Karpukhin bdb8811f95 Nullability check 2020-02-18 14:10:29 +01:00
Vyacheslav Karpukhin aaf939a650 Android dependency resolving stuff moved out of KotlinMultiplatformExtension.kt 2020-02-18 14:10:28 +01:00
Vyacheslav Karpukhin 9788525ec7 Import sources for Android SDK, include proper identifiers for Gradle dependencies 2020-02-18 14:10:28 +01:00
Vyacheslav Karpukhin ad314e93eb Do not explicitly depend on prerelease Android Gradle Plugin 2020-02-18 14:10:28 +01:00
Vyacheslav Karpukhin a6e488e2b4 Android import: simplified configuration matching 2020-02-18 14:10:28 +01:00
Vyacheslav Karpukhin 45a0aa04a1 Android import: import R.jar 2020-02-18 14:10:22 +01:00
Vyacheslav Karpukhin 17059682e9 Android import: initial implementation 2020-02-18 14:10:13 +01:00
Ilya Goncharov 9f0ef77531 [Gradle, JS] Provide js compilations parameters to link tasks
#KT-36796 fixed
2020-02-18 09:35:36 +03:00
Abduqodiri Qurbonzoda ce8e511b79 Add setOfNotNull function #KT-35851 2020-02-18 02:33:59 +03:00
Shagen Ogandzhanian 3fcdf6c78c Update dukat dependency to 0.0.28 2020-02-14 15:00:29 +01:00
Ilya Goncharov 64f13ab3ae [Gradle, JS] Migrate on strings 2020-02-14 16:36:49 +03:00
Ilya Goncharov 9b462b76d4 [Gradle, JS] Add all possible values of library target as enums 2020-02-14 16:36:49 +03:00
Ilya Goncharov fbabbfab44 [Gradle, JS] Add webpack output 2020-02-14 16:36:49 +03:00
Yan Zhulanow 73813aef23 Pill: Support all Gradle source sets, not just main/test 2020-02-14 17:35:15 +09:00
nataliya.valtman 3acf7a4679 TCServiceMessageOutputStreamHandlerTest: fix tests
Fix test to support updates in ServiceMessageParser and attributes
remove TCServiceMessageOutputStreamHandlerTest from ignored tests
2020-02-14 11:14:17 +03:00
Ilya Goncharov 4fa87d2caa [Gradle, JS] Compilations with js type because of compatibility
- In kotlinx.html there is invocation of packageJson function on compilations["main"]
It can be casted in user script to KotlinJsCompilation, or override on plugin side
2020-02-13 17:49:46 +03:00
Ilya Chernikov b96109f23f Add diagnostic code to the ScriptDiagnostic
to allow checking for specific errors, e.g. incomplete statements in
the REPL
2020-02-13 11:33:40 +01:00
Ilya Chernikov 77eacae958 [minor] drop unused dependencies 2020-02-13 11:33:40 +01:00
Ilya Chernikov 0761a17e2f Fix embedding and relocation in main-kts
The relocation root different from the one in embeddable compiler
lead to "linking" errors for classes included in both jars, e.g.
Disposable. Reuse common root to avoid it.
2020-02-13 11:33:40 +01:00
Mikhail Zarechenskiy 599ff4711e Temporary fix code before proper support of UnsafeVariance in NI
See #KT-34433
2020-02-13 11:15:57 +03:00
Abduqodiri Qurbonzoda ed7b8e9b85 Scan functions for Sequences and Iterable #KT-7657 2020-02-13 04:01:47 +03:00
Sergey Igushkin c28d8c6575 Don't iterate over all tasks in KotlinProjectNpmResolver (KT-36472)
Iterating over all tasks triggered the tasks to configure even if that
was not necessary. Filter the task collection by type instead.

Issue #KT-36472 Fixed
2020-02-12 19:04:06 +03:00
Ilya Goncharov fd0c644b6f [Gradle, JS] Fix order of free compiler args assigning 2020-02-12 17:29:36 +03:00
Ilya Goncharov cd8af5d3ec [Gradle, JS] Configure build for nodejs in ir 2020-02-12 17:29:36 +03:00
Ilya Goncharov a1497682ed [Gradle, JS] Remove depending of link tasks on assemble 2020-02-12 17:29:36 +03:00
Ilya Goncharov db86076864 [Gradle, JS] Remove redundant dependsOn
- in CopySpec if task in from, dependsOn is automatically set
2020-02-12 17:29:36 +03:00
Ilya Goncharov 752d676523 [Gradle, JS] Fix tests for VariantAwareDependenciesIT.kt 2020-02-12 17:29:35 +03:00
Ilya Goncharov 589cea557b [Gradle, JS] Fix tests after changing default on legacy instead of ir 2020-02-12 17:29:35 +03:00
Ilya Goncharov fc872d5a53 [Gradle, JS] Fix clean output test 2020-02-12 17:29:35 +03:00
Ilya Goncharov e53fd1b582 [Gradle, JS] Distribution and distribute task for KotlinBrowserJsIr.kt 2020-02-12 17:29:35 +03:00
Ilya Goncharov bbb98f9168 [Gradle, JS] Change default on legacy instead of ir 2020-02-12 17:29:35 +03:00
Ilya Goncharov a33affc325 [Gradle, JS] Fix android tests
- Can't write npm project to task data because 2 reasons:
-- May be not npm project (if not declared nodejs or browser)
-- In Android there is clash of clean tasks on creating NPM project
2020-02-12 17:29:35 +03:00
Ilya Goncharov 016dd91e37 [Gradle, JS] Fix destination dir for link tasks
- Add test on empty output with empty inputs
2020-02-12 17:29:35 +03:00
Ilya Goncharov 24d229e5a0 [Gradle, JS] Make entryModule internally 2020-02-12 17:29:35 +03:00
Ilya Goncharov 5aed541d9e [Gradle, JS] Remove redundant 2020-02-12 17:29:35 +03:00
Ilya Goncharov 333bb4da50 [Gradle, JS] Remove redundant delegation 2020-02-12 17:29:34 +03:00
Ilya Goncharov 196907b2ef [Gradle, JS] Compatibility with lower than 4.9 2020-02-12 17:29:34 +03:00
Ilya Goncharov 0129b71cfe [Gradle, JS] Link task is part of assemble 2020-02-12 17:29:34 +03:00
Ilya Goncharov 347f52ae10 [Gradle, JS] Fix tests for both mode 2020-02-12 17:29:34 +03:00
Ilya Goncharov c8be2876bc [Gradle, JS] Remove redundant compiler flags and make them internal 2020-02-12 17:29:34 +03:00