Ilya Chernikov
8eb7e719d3
[minor] fix compiler warnings in scripting modules
2021-07-20 19:42:34 +03:00
Abduqodiri Qurbonzoda
b65c477e68
Regex.splitToSequence, CharSequence.splitToSequence(Regex) #KT-23351
2021-07-20 14:09:24 +00:00
Abduqodiri Qurbonzoda
1fee6b191f
Fix typo in Sequence.constrainOnce() doc
2021-07-20 14:09:24 +00:00
Yahor Berdnikau
caa6b630ab
Apply 'kotlin-android' plugin dynamically.
...
Only apply when one of android plugins are also applied to the project.
If none of AGP plugins are applied and 'kotlin-android' is - exception
in 'afterEvaluate {..}' will be thrown.
^KT-46626 Fixed
2021-07-20 13:44:45 +03:00
Dmitriy Novozhilov
f3116cb64a
Fix NON_EXHAUSTIVE_WHEN_STATEMENT warnings in project code
2021-07-20 13:33:46 +03:00
Yahor Berdnikau
304d01127f
Fix false positive on Java/Kotlin JVM target validation.
...
Fix false positive case when java toolchain was set to <JDK1.8. In such
case Java tasks return '8' (or less) for target instead of '1.8'.
^KT-47520 Fixed
2021-07-20 09:25:06 +00:00
nataliya.valtman
f76864260a
Log changed files into ES statistic
2021-07-20 11:26:55 +03:00
Hung Nguyen
ecf6001365
KotlinCompile: Prepare for classpath snapshotting and diffing
...
This commit prepares necessary components only. The core parts of
classpath snapshotting and diffing will be implemented next.
Bug: KT-45777
Test: Existing IncrementalCompilationClasspathSnapshotJvmMultiProjectIT
and IncrementalJavaChangeClasspathSnapshotIT
2021-07-20 04:04:43 +03:00
Hung Nguyen
41345b2c50
Pass classpath changes from KotlinCompile task to Kotlin compiler
...
This commit wires necessary components only. The actual classpath
changes will be provided later.
Bug: KT-45777
Test: Existing IncrementalCompilationClasspathSnapshotJvmMultiProjectIT
and IncrementalJavaChangeClasspathSnapshotIT
2021-07-20 04:04:43 +03:00
Hung Nguyen
c8b3b6df9c
KotlinCompile: Set up artifact transform to take classpath snapshot
...
This commit sets up the artifact transform only. The actual classpath
snapshotting and computation of classpath changes will be done later.
Bug: KT-45777
Test: Existing IncrementalCompilationClasspathSnapshotJvmMultiProjectIT
and IncrementalJavaChangeClasspathSnapshotIT
2021-07-20 04:04:43 +03:00
Ilya Muradyan
46bbe5b1cb
Replace Ivy resolver with Maven resolver in all places
2021-07-19 21:31:49 +03:00
Ilya Muradyan
014765a302
Add dependencies-maven-all artifact
2021-07-19 21:31:48 +03:00
Ilya Muradyan
f7c2adae30
Always use wagon classloader as a plexus class world
...
In CLI compiler, system classloader doesn't load all classes directly,
so wagons (including HttpWagon) happen to be invisible to
Plexus DI that leads to artifacts download failures.
2021-07-19 21:31:46 +03:00
Alexander Likhachev
b93bd1fe09
[Gradle] Simplify optInAnnotation function name to optIn in DSL
...
#KT-38111
2021-07-19 19:57:00 +03:00
Mikhael Bogdanov
03ccbf1b17
Upgrade kotlinx-metadata-jvm and binary-compatibility-validator versions
2021-07-19 13:49:05 +00:00
Ilya Chernikov
0cd29adcc7
Get rid of kotlinx-coroutines usage in scripting libs and plugins
...
the dependency on the coroutines library caused various problems like
KT-30778, or stdlib/runtime version conflicts.
The only function used was `runBlocking`, so this change replaces it
with the internal implementation based on the similar internal thing
from the stdlib.
#KT-30778 fixed
2021-07-19 16:35:36 +03:00
Mikhael Bogdanov
4de6fd8be2
Prepare NewMultiplatformIT tests for compiler migration to 1.6
2021-07-19 12:15:26 +00:00
Ilmir Usmanov
151478aa27
Raise deprecations of suspend calls with dangling lambda to error
...
#KT-22562
2021-07-19 08:36:36 +00:00
Viacheslav Kormushkin
780b9a032b
Link CocoaPods frameworks with iosTest binary
...
#KT-44857 #KT-37513
2021-07-16 19:42:24 +00:00
Alexander Likhachev
6fe730a12e
[Gradle, JS] Add IT that no tasks configured on help task execution
...
#KT-47559 Fixed
2021-07-16 20:14:51 +03:00
Alexander Likhachev
0740d11378
[Gradle, JS] Configure run tasks lazily
...
#KT-47559 In Progress
2021-07-16 20:14:49 +03:00
Alexander Likhachev
2b0ba6fa40
[Gradle, MPP] Add test for KT-47611, KT-47612
...
#KT-47611 Fixed
#KT-47612 Fixed
2021-07-16 18:33:45 +03:00
Alexander Likhachev
8109b66a79
[Gradle, MPP] Make publishing compatible with configuration cache
...
Capture artifact coordinates more accurately to conform with configuration cache
#KT-47611 In Progress
2021-07-16 18:33:45 +03:00
Alexander Likhachev
77471c0cd8
[Gradle, MPP] Make kotlin tooling metadata task compatible w/ conf cache
...
The value should be memoized in task, so it can be serialized in a way to not use project in execution time
#KT-47612 In Progress
2021-07-16 18:33:43 +03:00
Ilya Goncharov
adeb2f527b
[Gradle, JS] Fail incremental test if there is source maps warning
...
^KT-47751 fixed
2021-07-16 15:39:52 +03:00
Ilya Goncharov
f73726c330
[Gradle, JS] Ignore source maps arguments in cache building
...
^KT-47751 fixed
2021-07-16 15:39:50 +03:00
Yahor Berdnikau
d82681889b
Ignore empty directories on input properties hash calculation.
...
Annotate all '@InputFiles' and '@InputDirectory' input properties
with '@IgnoreEmptyDirectories' annotation, so empty directories
will be excluded from input hash calculation.
^KT-27687 Fixed
2021-07-16 12:35:15 +00:00
Alexander Likhachev
7bb4612149
[Gradle] Add IT that useExperimentalAnnotation produces deprecation warn
...
#KT-38111 Fixed
2021-07-16 11:01:15 +03:00
Alexander Likhachev
68ced78d89
[Gradle] Rename experimental annotations to opt-in in test data
...
#KT-38111 In Progress
2021-07-16 11:01:14 +03:00
Alexander Likhachev
fa68dbc736
[Gradle] Rename experimental annotations to opt-in annotations in DSL
...
Methods and accessors with old names are preserved in public API and marked as deprecated now
#KT-38111 In Progress
2021-07-16 11:01:12 +03:00
Alexander Likhachev
1a77b57a7b
[Gradle] Provide JNA jar to compiler classpath with intellij-core 203+
...
#KT-47748 Fixed
2021-07-15 20:41:57 +03:00
Yahor Berdnikau
da1d49e622
Add new ways to set Kotlin daemon JVM arguments.
...
Additionally to inheriting Gradle daemon arguments or configuring via
Gradle daemon arguments system property, it is also possible now
to configure arguments either using "kotlin.daemon.jvmargs" property
or extension DSL.
Extension DSL overrides special gradle property arguments, which
overrides Gradle daemon arguments.
^KT-45747 Fixed
2021-07-15 17:27:38 +00:00
Yahor Berdnikau
f7ed2f813d
Exclude Gradle Kotlin runtime dependencies from 'no-arg' plugin.
...
This should remove warnings on multiple versions in build classpath
runtime.
^KT-47635 Fixed
2021-07-15 15:27:56 +00:00
Yahor Berdnikau
8db1c52c09
Exclude Gradle Kotlin runtime from 'sam-with-receiver' plugin.
...
This should remove warnings on multiple dependencies versions
in the build classpath runtime.
^KT-47636 Fixed
2021-07-15 15:27:24 +00:00
Ilya Goncharov
dcc54101a7
[Gradle, JS] Add test with icremental JS Ir in parallel build
2021-07-15 11:42:48 +00:00
Svyatoslav Kuzmich
a468792a19
[Wasm] Support Milestone 3 of V8 Wasm GC
...
Advance V8 version to 9.2.212
Relevant Wasm GC changes:
https://github.com/WebAssembly/gc/commit/f9f8ffa445c2c0fe4ac284a1d12a8c5477da4457
2021-07-15 10:59:06 +00:00
Ilya Goncharov
047041dc6e
[Gradle, JS] Await worker which builds cache
2021-07-14 14:46:04 +00:00
Roman Artemev
b5942204dc
[KLIB] Enable accidentally disabled IC for klibs in K/JS
2021-07-13 18:58:57 +03:00
Alexander Udalov
1e16c7d8d4
Minor, update kotlinx-metadata-jvm changelog
...
According to changes in 1e7295c6 .
2021-07-12 22:40:02 +02:00
pyos
2fe7cf27ad
kotlinp: use JVM_IR backend for compiling tests
...
Also, test optimized delegated properties.
2021-07-12 22:38:45 +02:00
pyos
1e7295c64e
JVM: add $delegate method support to kotlinx-metadata
...
and kotlinp as well -- it is now possible to see the effect of the
previous commit.
2021-07-12 22:38:44 +02:00
Mikhail Glukhikh
5871f3d663
CLI: support -option=value syntax for non-advanced flags #KT-47640 Fixed
2021-07-12 21:26:19 +03:00
Mikhail Glukhikh
47c8bab48e
Replace -Xuse-experimental with -Xopt-in in codebase
2021-07-12 21:26:17 +03:00
Ilya Gorbunov
5072653957
Duration: parse explicit positive values parenthesized
2021-07-12 04:39:28 +00:00
Ilya Gorbunov
682cb8e34a
Duration default toString: use 0, 1, 2, 3, 6, or 9 decimal digits
...
KT-42851
2021-07-12 04:39:27 +00:00
Ilya Gorbunov
7551719b85
Duration parsing: simplify range checks
2021-07-12 04:39:27 +00:00
Ilya Gorbunov
0427eec20f
Quote invalid strings in exception messages
2021-07-12 04:39:26 +00:00
Ilya Gorbunov
3f6e2be687
Duration: do not use scientific format for large values
...
The largest duration value formatted in ns with maximal decimals
would fit in 40 chars.
2021-07-12 04:39:25 +00:00
Ilya Gorbunov
1be1e5279c
Duration: parse and format negative values parenthesized
2021-07-12 04:39:25 +00:00
Ilya Gorbunov
ca1a9e4ca3
Duration: longer than long values in ISO components, test negative cases
2021-07-12 04:39:24 +00:00