Ilya Goncharov
f2a067eda0
[Gradle, JS] In KotlinWebpack configDirectory as getter not lazy
...
It is useful to dynamically creating config directory during build execution
^KT-46976 fixed
2021-05-27 14:07:04 +03:00
Viacheslav Kormushkin
3709616baa
Fixed failing cocoapods integration test
2021-05-27 10:47:45 +00:00
sebastian.sellmair
14eca72913
Implement 'CommonizerTarget.fileName' and limit fileName length
...
^KT-46856 Fixed
2021-05-27 06:48:34 +00:00
sebastian.sellmair
0749443f7e
Implement CommonizerIT.test KT-46856 filename too long - all native targets configured
...
Covers ^KT-46856
2021-05-27 06:48:33 +00:00
Abduqodiri Qurbonzoda
54994a289f
Support all digit chars on JS and Native #KT-46002
2021-05-27 06:56:52 +03:00
Anton Lakotka
8481f4a9d2
Set kotlin-project-model as api dependency for kotlin-gradle-plugin-api
...
LanguageSettingsBuilder depends on LanguageSetting interface from KPM
which forces api dependency scope
^KT-46517 Fixed
2021-05-26 18:11:39 +00:00
Anton Lakotka
3e2b8a8898
Test Gradle buildSrc with kotlin-gradle-plugin-api dependency
...
For ^KT-46517
2021-05-26 18:11:39 +00:00
Konstantin Tskhovrebov
2129a762a5
Change assemble AppleFrameworkTask name to using framework name prefix
...
#KT-46892
2021-05-26 14:59:30 +03:00
Anton Lakotka
5d9915e133
Don't copy extendsFrom configs for resolvableMetadataConfiguration
...
Gradle's detached configurations doesn't respect extends from relation
to other configurations due to gradle bug.
In fact extendsFrom isn't required for resolvableMetadataConfiguration
business logic. It is enough to include all originalDependencies to
freshly created detached configuration.
^KT-46417 Fixed
2021-05-25 23:31:23 +03:00
sebastian.sellmair
e8bd8a938f
Implement HierarchicalMppIT.testNativeLeafTestSourceSetsKt46417 to cover ^KT-46417
2021-05-25 23:31:22 +03:00
Ivan Gavrilovic
4f64431f10
KT-46820: Kotlin gradle plugin - prevent multiple threads from registering task
...
... as that is not supported by the underlying mechanism.
Build service that holds info about the incremnetal compilation
may be instantiated only during execution, and multiple tasks may
try to do that. Because the container which holds info about all
build services is not thread-safe, this change adds synchronization.
Fixes #KT-46820
2021-05-25 12:49:07 +03:00
nataliya.valtman
1db09d78b3
KT-46833: print correct message when history files are unavailable
2021-05-24 13:51:43 +03:00
Ilya Muradyan
23faacd21b
[Scripting] Expose scripting-dependencies as API of Maven resolver
2021-05-22 04:10:39 +03:00
Ilya Muradyan
0e7d690923
[Scripting] Change compile to implementation in Maven resolver
2021-05-22 00:38:46 +03:00
Ilya Muradyan
bead0e3412
[Scripting] Fix Maven resolver dependencies
2021-05-22 00:38:44 +03:00
Hung Nguyen
c0977dd638
Build report: Print task name instead of TaskRecord@hashCode
...
Previously when kotlin.build.report.enable=true, the build report
contained lines such as:
org.jetbrains.kotlin.gradle.report.TaskRecord@2db49688 was skipped
This commit prints the task name instead of TaskRecord@hashCode so that
it is more readable, like this:
Task ':app:compileDebugKotlin' was skipped
Bug: N/A (Clean up)
Test: Existing tests + manually checked the build report output
2021-05-21 19:35:25 +03:00
Viacheslav Kormushkin
d10910e553
Added support of custom Xcode configurations to cocoapods plugin
...
#KT-42023
2021-05-20 17:36:08 +03:00
Ilya Goncharov
228c6879f5
[JS IR] Add per-module output module name
2021-05-20 16:37:44 +03:00
Anton Bannykh
6633a9edc0
[JS IR] add a flag which enable safe property access
...
If an accessor is not available at runtime we fall back
to the property access.
This is useful in cases when JS objects are casted to Kotlin
classes implicitly. This pattern did work in the old BE, which
lead to a significant amount of code which doesn't work anymore.
2021-05-20 16:37:34 +03:00
Hung Nguyen
df14deb5a0
Organize integration tests for incremental Kotlin compile
...
Refactor common code into new abstract class
IncrementalCompilationBaseIT to make the code cleaner and easier to
evolve.
Also add a few missing key scenarios for ABI and non-ABI changes in
Kotlin files, and make it consistent with the test for changes in Java
files.
Bug: KT-45777
Test: Updating them
2021-05-20 12:59:07 +03:00
Ilya Goncharov
f0044516d1
[Gradle, JS] Update Node.js version on latest stable (14.17.0)
...
^KT-46693 fixed
2021-05-19 21:22:31 +03:00
Ilya Muradyan
7caadd87a2
[Scripting] Get rid of unneeded dependencies in Maven resolver
2021-05-19 18:32:48 +03:00
Andrey Uskov
41dd6250d4
Implemented collecting use-old-backend flag from Gradle
...
#KT-46689 Fixed
2021-05-19 13:25:26 +03:00
Yahor Berdnikau
7fc23a1647
Deprecate 'kotlin.parallel.tasks.in.project' build property.
...
Default value will use Gradle parallel execution option value.
^KT-46401 Fixed
2021-05-18 21:02:02 +00:00
Alexander Likhachev
8ddbf542f3
[Gradle] Declare IDEA-related system properties reads
...
#KT-44611 In Progress
2021-05-18 16:37:34 +03:00
Yahor Berdnikau
aae5cc5574
Update AGP versions to the latest stable one.
...
Kotlin Gradle Plugin should run against the latest stable one versions.
2021-05-18 10:37:41 +03:00
Konstantin Tskhovrebov
80ce3a5cf8
Delete umbrella Apple framework tasks and register concrete tasks.
...
#KT-46680
2021-05-17 19:45:02 +03:00
Ilya Muradyan
55a9f1a910
[Scripting] Make AetherResolveSession internal and do related refactorings
2021-05-17 18:22:29 +03:00
Ilya Muradyan
a0cc88ab5a
[Scripting] Add transitive support for Maven Resolver
2021-05-17 18:22:28 +03:00
Ilya Muradyan
b77a822822
[Scripting] Add authorization for Maven Resolver
2021-05-17 18:22:26 +03:00
Ilya Muradyan
78c65ab802
[Scripting] Bump up Maven resolver JARs version
2021-05-17 18:22:25 +03:00
Yahor Berdnikau
800e382ba9
Warn on using 'jdkHome' option in Gradle builds.
...
User should instead use KotlinJavaToolchain that will take care of
tracking major java version and provide nicer API.
Gradle will still pass jdkHome value to the compiler, but it should
be changed in Kotlin 1.6 release.
^KT-45611 Fixed
2021-05-17 16:57:01 +03:00
Pavel Punegov
238ada04c0
Use newer version of Kotlin/Native in the testNativeCompilerDownloading
2021-05-13 03:19:23 +03:00
Yahor Berdnikau
13fd2a24ea
Fix exposing provided by Gradle Kotlin dependencies.
...
Ensure that Gradle plugin dependencies do not include kotlin-stdlib,
kotlin-reflect and other dependencies that are provided by Gradle
runtime.
^KT-41142 Fixed
2021-05-12 23:28:37 +03:00
Ilya Muradyan
bab5d16001
[REPL] Stop old classpath calculation on the base classloader
...
The mechanism of the recursive classpath checking is intended
for the "inner" scripting/REPL classloaders and should not touch
anything beyond.
2021-05-12 18:30:43 +03:00
Ilya Goncharov
d7a87a8552
[Gradle, JS] Fixes after rebase
2021-05-12 11:57:14 +03:00
Ilya Goncharov
9412b7236e
[Gradle, JS] Refactor cacheBuilder to reuse one instance
2021-05-12 11:57:14 +03:00
Ilya Goncharov
b9fc97b44f
[Gradle, JS] Add arguments for building caches
2021-05-12 11:57:14 +03:00
Ilya Goncharov
c23376f040
[Gradle, JS] Use associated compilation's caches
2021-05-12 11:57:14 +03:00
Ilya Goncharov
9723d45d27
[Gradle, JS] Add associateWith compilations to CacheBuilder
2021-05-12 11:57:14 +03:00
Ilya Goncharov
194175d2d0
[Gradle, JS] Use multiple arguments for ignoring
2021-05-12 11:57:14 +03:00
Ilya Goncharov
2d3c13f8a2
[Gradle, JS] Everytime run compiler to build caches
2021-05-12 11:57:13 +03:00
Ilya Goncharov
d66d0fd4e4
[Gradle, JS] CacheBuilder before callCompiler
2021-05-12 11:57:13 +03:00
Ilya Goncharov
249fb8393c
[Gradle, JS] Add compiler args serialization to consider in caching
2021-05-12 11:57:13 +03:00
Ilya Goncharov
c283c76130
[Gradle, JS] Add CacheBuilder for precache libraries
2021-05-12 11:57:13 +03:00
Pavel Punegov
f82c28bd79
Revert "[kotlin-gradle-plugin] workaround for old k/n artifacts"
...
This reverts commit 5c80dbfd
2021-05-12 10:34:36 +03:00
Pavel Punegov
a0d35e56a9
Revert "[tests][kotlin-gradle-plugin] workaround for old k/n artifacts"
...
This reverts commit f051119c to drop obsolete native version support
2021-05-12 10:34:35 +03:00
Ilya Muradyan
626c1d3b48
[Scripting] Fix repository ID generation for Maven resolver
2021-05-10 19:40:32 +03:00
Ilya Muradyan
7cea639209
chore: fix typo in comment
2021-05-10 19:40:31 +03:00
Ilya Muradyan
e9af2849ef
Add Kotlin DeprecationLevel into the REPL completion
2021-05-07 19:56:21 +03:00