Ilya Gorbunov
4a17228621
Infer required kotlin-test jvm capability based on used test framework
...
Except when:
- the Gradle version is less than 6.0, it doesn't read the metadata
published by a newer Gradle by default.
- the requested dependency version is less than 1.5, because it doesn't
have metadata published.
Update integration tests to use kotlin-test common dependency.
KT-40225
2021-02-01 16:50:05 +03:00
Ilya Gorbunov
cbeadba15d
Disable metadata publishing for legacy common artifacts
...
When they are used explicitly in common source sets, they cannot be
resolved in platform ones after that since they only have
common kotlin-api variants in their metadata.
KT-40225
2021-02-01 16:50:05 +03:00
Ilya Gorbunov
573aac7252
Apply common configuration to custom publications in kotlin-test
...
To do that, extract parts of publishing setup into reusable functions.
This change makes signing and repository configuration applied to all
project publications, not just to the Main one.
Also:
- Get rid of dependencies from non-default variants in the root pom
- Add an empty javadoc jar
KT-40225
2021-02-01 16:50:05 +03:00
Ilya Gorbunov
a16aaa3824
Setup publications with MPP Gradle metadata for kotlin-test library
...
Move publication configuration from individual platform specific
kotlin-test- modules to the root module.
KT-40225
2021-02-01 16:50:05 +03:00
Vladimir Dolzhenko
913c298be8
Kotlin highlight passes are reworked
...
#KT-37702 Fixed
2021-02-01 13:18:38 +00:00
Vladimir Dolzhenko
558338f997
Lazy diagnostics API in frontend
...
Relates to #KT-37702
2021-02-01 13:18:37 +00:00
Pavel Kirpichenkov
8f675fe757
Split combined test into two to avoid flaky behaviour
...
Prevent simultaneous access to the library directory
2021-02-01 15:09:13 +03:00
eugenpolytechnic
9ad88a5a0d
FIR: introduce parameter type is Throwable check
2021-02-01 15:07:21 +03:00
eugenpolytechnic
5c0231b727
FIR: introduce CatchParameterChecker
2021-02-01 15:07:13 +03:00
Alexander Udalov
d8549d6292
Build: fix inaccurate change to the logic of useIRForLibraries
2021-02-01 11:54:36 +01:00
Alexander Udalov
e9436da858
Change logic of applying JVM target from AGP options
...
Now that the default JVM target is 1.8, we have to add the JVM target
1.6 explicitly if the Android project is configured with source/target
1.6, and not do anything if it's configured with 1.8.
#KT-31027
2021-02-01 11:54:05 +01:00
Alexander Udalov
adfa8c788c
Light classes: use JVM target from the module
...
Using "JVM_1_8" always resulted in incorrect mapping of Kotlin
annotation targets to Java element types.
The change in AbstractKotlinRenderLogTest is needed because while
CliTraceHolder.module is technically a descriptor leak, it was never
detected by this test accidentally, because of the depth cutoff equal to
10, which started to not be enough after the minor refactoring of
replacing `Delegates.notNull` with `lateinit`.
2021-02-01 11:54:05 +01:00
Alexander Udalov
64e97225b8
Light classes: map annotation targets depending on JVM target
...
Since the default JVM target (`JvmTarget.DEFAULT`) is now 1.8, the
changed test started to fail. This change fixes it.
2021-02-01 11:54:04 +01:00
Alexander Udalov
d022bb0248
Switch default JVM target to 1.8
...
#KT-29405 Fixed
2021-02-01 11:54:04 +01:00
Ivan Gavrilovic
509ed64917
KT-43686: Make kapt Gradle task cacheable across machines
...
Use `@Classpath` for kotlin stdlib input property. This is to
allow cache hits when builds are running on different machines
and path to kotlin stdlib differs.
Test: BuildCacheRelocationIT
2021-02-01 13:28:20 +03:00
Dmitriy Novozhilov
771600077c
[Test] Fail if there are changes in generated fir tree files in teamcity build
2021-02-01 10:18:37 +03:00
Dmitriy Novozhilov
297288e984
[Test] Don't generate new files in GeneratorsFileUtil in teamcity mode
2021-02-01 10:18:37 +03:00
Dmitriy Novozhilov
772ca2715c
[Test] Don't change testdata in FirIdenticalChecker in teamcity mode
2021-02-01 10:18:37 +03:00
Alexander Gorshenev
6265ac8c19
Re-enabled disabled test
2021-01-30 17:41:54 +03:00
Alexander Gorshenev
16b3fedcd4
Created AbstractKlibBinaryCompatibilityTest and AbstractJsKlibBinaryCompatibilityTest
...
A common test runner for klib binary compatibility tests
and its js counterpart
2021-01-30 17:41:54 +03:00
Alexander Udalov
e7cf34a2a9
Workaround illegal access problem in daemon for JDK 17-ea
...
Otherwise Kotlin cannot be used in Gradle since
https://github.com/openjdk/jdk/commit/ed4c4ee7 where JDK internals
started to be encapsulated by default.
For some reason, using
listOf("--add-opens", "java.base/java.util=ALL-UNNAMED")
doesn't help, so use the more general `--illegal-access=permit`.
#KT-43704
2021-01-29 21:29:08 +01:00
Alexander Udalov
f08733eb75
CLI: suppress warning on JDK 9+ with illegal access to ResourceBundle
...
The underlying issue is tracked in IDEA-248785.
#KT-43704 Fixed
2021-01-29 21:29:08 +01:00
Alexander Udalov
2ef4ca4e6e
CLI: do not pass -noverify to java process starting from JDK 13
...
#KT-44232 Fixed
2021-01-29 21:28:25 +01:00
Alexander Udalov
2bbe3db041
Update copyrights in CLI scripts
2021-01-29 21:27:28 +01:00
Mikhael Bogdanov
9f9c8e3d77
Mute stream api test on Android
2021-01-29 18:22:16 +01:00
Dmitriy Novozhilov
21f022dec2
Add :kotlin-scripting-compiler.test to modules with disabled -Werror flag
2021-01-29 20:01:01 +03:00
Sergey Igushkin
021a63827d
Add API version 1.5 to accepted values in MPP language settings
2021-01-29 19:49:45 +03:00
Mikhael Bogdanov
6a29097a8c
Remove obsolete dependency for dx
2021-01-29 17:47:37 +01:00
Mikhael Bogdanov
be9ef8f3c8
Remove obsolete DxChecker
2021-01-29 17:47:37 +01:00
Steven Schäfer
482e217b5e
JVM IR: Fix inline class mangling for calls to internal functions
...
...in a different module, e.g., using -Xfriend-paths.
2021-01-29 16:23:15 +01:00
Mikhail Glukhikh
6747084fe2
FIR TEST: perform more accurate check on file identity
2021-01-29 16:57:14 +03:00
Mikhail Glukhikh
338aad98eb
FIR: run diagnostic "with stdlib" tests also in light tree mode
2021-01-29 16:55:34 +03:00
Mikhail Glukhikh
7d4eaefd36
FIR: report UNSAFE_CALL on dot when possible
2021-01-29 16:55:26 +03:00
Mikhail Glukhikh
0ee4f1f393
FIR: more exact nullability determination in potential UNSAFE_CALL check
2021-01-29 16:55:09 +03:00
Jinseong Jeon
e72ddbcbfe
FIR checker: differentiate UNSAFE_CALL from INAPPLICABLE_CANDIDATE
...
To do so, inside the root cause of inapplicable candidate errors,
we will record expected/actual type of receiver, if any.
That will help identifying inapplicable calls on nullable receiver.
2021-01-29 16:54:23 +03:00
Mikhail Glukhikh
4b823eca21
Fix test data (FIR_IDENTICAL)
2021-01-29 16:54:17 +03:00
Mikhael Bogdanov
3e1fabd46c
Set ANDROID_SDK_ROOT for android box tests
2021-01-29 14:30:24 +01:00
Dmitriy Novozhilov
4a50dc9074
Add workaround for problem with initialization of :tools:kotlinp
2021-01-29 14:57:08 +03:00
Dmitriy Novozhilov
e8068b5576
Update testdata of maven plugin tests
2021-01-29 14:57:08 +03:00
Dmitriy Novozhilov
0a47b1c32b
Remove incorrectly added dependency on experimental coroutines
2021-01-29 14:57:08 +03:00
Dmitriy Novozhilov
0769157a16
Revert "Revert "Build: enable -Werror in stdlib/core/compiler/plugins modules""
...
This reverts commit 1300ec3e
2021-01-29 14:57:08 +03:00
Dmitriy Novozhilov
7e3802bde3
Advance bootstrap to 1.5.0-dev-2205
2021-01-29 14:57:07 +03:00
Mikhael Bogdanov
c5baf3fdd2
Upgrade gradle plugin to 4.1. and build tools to 29.0.3 for android box tests
2021-01-29 11:57:51 +01:00
Mikhael Bogdanov
9459f8113f
Set ANDROID_HOME/ANDROID_SDK_ROOT for android box tests
...
In some cases emulator execution on TC fails cause of problem with pathes
2021-01-29 11:57:51 +01:00
Ilya Goncharov
fd29fab971
[Gradle, JS] Update tool versions
...
- Node.js - 14.15.4
- Yarn - 1.22.10
^KT-44614 fixed
2021-01-29 13:57:17 +03:00
Victor Petukhov
9efac8f68b
Propagate all annotations during creating simple functional types
...
^KT-44563 Fixed
2021-01-29 13:50:46 +03:00
Dmitry Petrov
5d7dc5fa39
JVM_IR indy-SAM conversions: minor updates
...
See: KT-44575 KT-44577
KT-44278 KT-26060 KT-42621
2021-01-29 12:59:48 +03:00
Dmitry Petrov
f34224ecee
JVM_IR indy-SAM conversions: tests for function references equality
...
(SAM conversion using LambdaMetafactory is not used for function refs).
KT-44278 KT-26060 KT-42621
2021-01-29 12:59:48 +03:00
Dmitry Petrov
f0abd8bc68
JVM_IR indy-SAM conversions: prohibit in crossinline lambdas
...
KT-44278 KT-26060 KT-42621
2021-01-29 12:59:47 +03:00
Dmitry Petrov
ad1d80d700
JVM_IR indy-SAM conversions: add more tests
...
KT-44278 KT-26060 KT-42621
2021-01-29 12:59:47 +03:00