nataliya.valtman
130fd8311e
KT-48620: add readable output size metric into build scan
2021-09-14 17:56:11 +03:00
nataliya.valtman
b603f99863
KT-48620: Fix host name exception
2021-09-14 12:10:39 +03:00
Hung Nguyen
97e9e4efe7
KT-45777: Address review comments - use InputChanges instead of ChangedFiles
2021-09-14 12:10:39 +03:00
Hung Nguyen
9b71bd5bb4
KT-45777: Address review comments - update tests
2021-09-14 12:10:39 +03:00
Hung Nguyen
a48bf63630
KT-45777: Compute classpath changes for incremental Kotlin compile
...
Test: Updated unit tests + incremental compilation integration tests
2021-09-14 12:10:38 +03:00
Hung Nguyen
e3d7b7a30e
KT-45777: Refactor incremental compilation integration tests
...
to organize tested scenarios better and make it easier to see the
effects of the next change when the classpath snapshot feature is
enabled.
2021-09-14 12:10:38 +03:00
Yigit Boyar
95f990adab
Support line location information in KAPT for top level declarations
...
This CL fixes a bug in KAPT's MAP_DIAGNOSTIC_LOCATIONS flag where the
location mapping for top level elements didn't work.
I also needed to changes the Kapt3IntegrationTest to copy input files,
otherwise, it cannot map file paths since the mock project has no root
location.
Cleanup tmp folders in KAPT tests, update Kapt3IT test for new lines.
^KT-47934 Fixed
Test: KotlinKapt3IntegrationTests#testErrorLocationMapping
2021-09-14 10:48:37 +02:00
Yahor Berdnikau
ec3a6e7f02
Update java up-to-date test project to plugins api.
...
^KT-45747 In Progress
2021-09-14 10:42:52 +02:00
Yahor Berdnikau
6ad662dd66
Migrate ClassFileIsRemovedIT test to new test DSL.
...
Rename ClassFileIsRemovedIT.kt into SourceFileIsModifiedIT.kt.
^KT-45747 In Progress
2021-09-14 10:42:52 +02:00
Yahor Berdnikau
b71b7abc2b
Migrate JavaUpToDateIT test to new test DSL.
...
^KT-45747 In Progress
2021-09-13 22:50:09 +02:00
Viacheslav Kormushkin
8dd40cb398
KT-MR-4412: Fix CocoaPodsIT tests
...
#KT-48700
2021-09-13 15:56:34 +00:00
Mikhail Glukhikh
fc6403679a
Rename !USE_EXPERIMENTAL test directive to !OPT_IN
2021-09-10 16:29:16 +03:00
Mikhail Glukhikh
3febabe977
Use OPT_IN instead of EXPERIMENTAL in diagnostic names
2021-09-10 16:29:13 +03:00
Mikhail Glukhikh
ffbd574a08
Use -opt-in instead of -Xopt-in in comments and scripts
2021-09-08 23:43:55 +03:00
Igor Laevsky
6ca965af6f
WASM: Generate throw instruction instead of wasmThrow call
2021-09-08 19:56:33 +03:00
sebastian.sellmair
1076654bd9
[Gradle] Shared Native compilations: Don't explicitly add stdlib dependency
...
Shared Native Compilations seem to already implicitly add a
dependency on the stdlib. Adding it again will result in a
'library included more than once' warning.
^KT-46257 Verification Pending
2021-09-07 14:17:40 +00:00
sebastian.sellmair
8fe176f605
[Gradle] CommonizerHierarchicalIT: Add assertions for ^KT-46257
2021-09-07 14:17:40 +00:00
Philipp Smorygo
6abd3bf589
Fix CocoaPodsIT
2021-09-06 12:32:25 +00:00
Abduqodiri Qurbonzoda
97eb28144f
Introduce Common readln() and readlnOrNull() top-level functions #KT-48456
2021-09-05 15:31:11 +00:00
Mikhail Glukhikh
ed035d99ab
Migrate -Xopt-in to -opt-in in Gradle Kotlin scripts
2021-09-03 15:40:47 +03:00
Ilya Goncharov
ee1d2ecb4b
[Gradle, JS] Delete recursively tmp directory in up-to-date case
2021-09-03 14:10:58 +03:00
Dmitriy Novozhilov
d46e2dd749
Fix OVERRIDE_DEPRECATION warnings in project code
2021-09-02 15:04:07 +03:00
nataliya.valtman
862f8cdad8
KT-48264 Create dir before kotlin-build-report publish
2021-09-02 13:49:57 +03:00
sebastian.sellmair
97d71dc160
[Gradle] Ensure enableGranularSourceSetsMetadata property being populated
...
Previously it was only populated when KGP was applied to the root project.
CLI compilation would still work, since it also checks for the
new hmpp properties, whereas the IDE import is still 'just' checking
on the old property (while defining its own defaults)
^KT-48513 Verification Pending
2021-09-02 09:27:49 +00:00
Sergey Bogolepov
9620279201
[K/N] Fix KT-48552
2021-09-02 06:34:39 +00:00
Ilya Gorbunov
11314a5c4e
Rename enabling old behavior property and make it cached in a field
...
Mention the property name in the note about conversion to set.
#KT-45438
2021-09-02 06:06:39 +03:00
Abduqodiri Qurbonzoda
94b371af5b
Remove brittle ‘contains’ optimization in minus/removeAll/retainAll #KT-45438
2021-09-02 05:58:19 +03:00
Ilya Gorbunov
fbc43cbebe
Duration.toComponents: change the highest component type to Long
2021-09-02 02:44:16 +00:00
Abduqodiri Qurbonzoda
d306c0e9ac
Change JS CharSequence.isBlank() via checking all chars with isWhitespace
2021-09-02 01:38:04 +00:00
Abduqodiri Qurbonzoda
0faa83bacb
Deprecate JS Array/PrimitiveArray.sort(comparison) functions
2021-09-02 01:38:03 +00:00
Abduqodiri Qurbonzoda
a3eaa3e0f9
Change JS AbstractMutableCollection.toJSON() visibility modifier from open to protected
2021-09-02 01:38:03 +00:00
Abduqodiri Qurbonzoda
a90117faa2
Change JS HashSet.createEntrySet() visibility modifier from protected to internal
2021-09-02 01:38:03 +00:00
Abduqodiri Qurbonzoda
921af8e98c
Deprecate JS String match, matches and concat functions
2021-09-02 01:38:02 +00:00
Abduqodiri Qurbonzoda
3fefed5131
Remove deprecated JS Regex_0 and Regex_1 constructor functions
2021-09-02 01:38:02 +00:00
Abduqodiri Qurbonzoda
1008a88b43
Remove equals and hashCode implementation of JS AbstractMutableMap.values
2021-09-02 01:38:02 +00:00
Abduqodiri Qurbonzoda
407feb656e
Make JS Regex.replace not inline #KT-27738
2021-09-02 01:38:01 +00:00
Abduqodiri Qurbonzoda
91aa956f34
Introduce JVM readln() and readlnOrNull() top-level functions #KT-48456
2021-09-02 01:00:34 +00:00
Ilya Gorbunov
0d58bb14b2
Duration: minor doc clarifications
2021-09-01 16:30:03 +00:00
Sergey Igushkin
8b37b5f259
Fix localToProject=public not set for K/N configurations, KT-48370
2021-09-01 14:44:33 +00:00
Svyatoslav Scherbina
751914ca4d
[Gradle, Native] Make useEmbeddableCompilerJar input of compile tasks
...
to make the tasks not up-to-date when switching the flag
2021-09-01 13:43:29 +00:00
Svyatoslav Scherbina
e65f2e465e
[Gradle] Fix switching in-process to Native embeddable compiler jar
...
Compiler runner used incorrect cache key for isolated classloader:
it didn't take the actually used compiler jar into account,
only the K/N home dir.
Fix this by using the entire classpath as a key.
2021-09-01 13:43:28 +00:00
Svyatoslav Scherbina
1c052ad448
[Gradle, Native] When running tool in-process, log the actual classpath
...
When running tool in-process, log the actual classpath extracted from
the classloader, not the one that was intended.
This helps to detect the cases when these two don't match.
2021-09-01 13:43:28 +00:00
Svyatoslav Scherbina
71af22dba0
[Gradle] Support Native embeddable compiler jar in subplugins
...
Apply generic (backend-agnostic) compiler plugin artifact instead of
Native-specific one when Native embeddable compiler jar is used
(with `kotlin.native.useEmbeddableCompilerJar=true` project property).
2021-09-01 13:43:28 +00:00
Svyatoslav Scherbina
0b4dfd58fc
[Gradle] Don't apply scripting gradle subplugin to Native compilations
...
It doesn't support Native anyway, but applying it blocks using
the generic compiler plugin artifact for Native.
2021-09-01 13:43:27 +00:00
Svyatoslav Scherbina
7c52077e40
[Gradle] Rename kotlin.native.[shaded -> useEmbeddableCompilerJar]
...
Also move it to PropertiesProvider.
2021-09-01 13:43:27 +00:00
Svyatoslav Scherbina
f049c4a630
[Gradle, Native, IT] Allow checking compiler classpath
2021-09-01 13:43:26 +00:00
Svyatoslav Scherbina
0fd4884149
[Gradle] Partially revert "enable to work with embedded k/n compiler"
...
This partially reverts commit 2baf344f5f ,
removing support for K/N embeddable compiler jar from subplugins.
More migration-friendly implementation is to be added instead.
2021-09-01 13:43:26 +00:00
Alexander Udalov
473ed2e410
Fix JVM target and language version info in CLI and Gradle
2021-09-01 14:32:53 +02:00
Leonid Startsev
1932546a90
Support instantiation of annotations in JS
...
#KT-47700 Fixed
2021-09-01 11:13:55 +00:00
Hung Nguyen
a342c81a9f
KT-45777: Take snapshots and compute changes for Java classes
...
Create `JavaClassDescriptor`s for Java classes
Ignore anonymous and synthetic classes
as they can't impact recompilation.
Clean up handling of local and anonymous classes
Bug: KT-45777
Test: New JavaClassDescriptorCreatorTest
2021-09-01 13:29:17 +03:00