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
Ilya Goncharov
9baa24e626
[Gradle, JS] Fix with beta version of webpack-dev-server to work with webpack 5
...
^KT-46162 fixed
^KT-46331 fixed
2021-05-06 18:45:45 +03:00
Yahor Berdnikau
c6fc393417
Enable kotlin java toolchain support for kapt task.
...
With this change 'KaptWithoutKotlincTask' will also support overriding
default Gradle JDK to run kapt. In such case only 'in-process' kapt
worker isolation mode is supported.
If user does not provide custom JDK, kapt worker isolation mode will
be 'no-isolation' as before.
^KT-45611 In Progress
2021-05-06 16:04:23 +02:00
Ivan Gavrilovic
4994cb3774
[Gradle] Create kotlinOptions during task init and keep outputFile for js
...
This is so that existing build scripts using
withType() do not break. Also, fix the failing
test.
It was necessary to keep outputFile for the js compile task
as it was accessed from the build scripts. Instead, a new
property is introduced which uses Gradle lazy properties.
2021-05-06 13:54:18 +03:00
Ivan Gavrilovic
80181c1091
[Gradle] Add Android bootclasspath lazily
2021-05-06 13:54:17 +03:00
Ivan Gavrilovic
98cc99e36b
[Gradle] Fix adding KAPT generated classess to the compilation classes output
2021-05-06 13:54:15 +03:00
Ivan Gavrilovic
f5caa49c31
[Gradle] Use Gradle properties for KAPT tasks
...
Use lazy properties to configure KAPT tasks and in the model builder.
Also, avoid eager dependency resolution of the kaptExternalClasspath
file collection.
2021-05-06 13:54:14 +03:00
Ivan Gavrilovic
0882da1788
[Gradle] Introduce classes to configure KAPT tasks
...
Avoid storing references to KotlinCompile task and use lazy properties
to configure task. Values are kept in-sync with the
Kotlin compile task (for the stub generation) using this mechanism.
2021-05-06 13:54:13 +03:00
Ivan Gavrilovic
01dd15cc3e
[Gradle] Use task properties to modify task configuration
...
This change migrates to using properties of KGP tasks and Gradle
built-in tasks. Also, in TaskProvider class, Configurator instances are
created to configure KGP tasks.
2021-05-06 13:54:12 +03:00
Ivan Gavrilovic
ad9f6e63b6
[Gradle] Extract configuration of KotlinJsIrLink to a class
...
Migrate KotlinJsIrLink to properties create Configurator class
to configure the task properties.
2021-05-06 13:54:11 +03:00
Ivan Gavrilovic
5eed9a4e6e
[Gradle] Extract configuration of KotlinCompileCommon to a class
...
Migrate KotlinCompileCommon to properties create Configurator class
to configure the task properties.
2021-05-06 13:54:10 +03:00
Ivan Gavrilovic
ff27a61252
[Gradle] Use ConfigurableFileCollection for task local state
...
Use ConfigurableFileCollection so that tasks can simply append to the
file collection and tasks that do not need this, can simply do nothing.
2021-05-06 13:54:09 +03:00
Ivan Gavrilovic
571c9c10d4
[Gradle] Update compile tasks to use properties and clean up code
...
Update AbstractKotlinCompile, KotlinCompile, and Kotlin2JsCompile to
use Gradle properties, and introduce Configurator classes that are
using configuration-time data to configure task. Also, introduce
TaskConfigurator interface that should be implemented by classes that
are used to configure tasks.
2021-05-06 13:54:08 +03:00
Ivan Gavrilovic
56cad96718
[Gradle] Remove KotlinCompileTaskData
...
When getting the incremental compilation information use the
task graph which processes all tasks present in it. Tasks have
all information that is needed to get IncrementalModuleInfo for all
compilations.
2021-05-06 13:54:06 +03:00
Ivan Gavrilovic
b3d8187df4
[Gradle] Remove deprecated ways to specify compiler classpath
...
This change removes options to specify compiler classpath using
deprecated properties that were deprecated for more than 2 years.
2021-05-06 13:54:05 +03:00
Anton Lakotka
f94ed1a00c
Fail only when KotlinPm20ProjectExtension is passed
...
to buildKotlinProjectStructureMetadata
#Fixes KTIJ-11586
2021-05-05 16:53:20 +03:00
sebastian.sellmair
a1ed81146e
[Commonizer] Logging: NativeDistributionCommonizationCache: Log in level 'quite' on cache misses
...
^KT-36679 Verification Pending
2021-05-01 14:36:18 +03:00
sebastian.sellmair
b48850c993
[Commonizer] Logging: Implement CommonizerLogLevel and hide verbose output by default
...
^KT-36679 Fixed
2021-05-01 14:36:18 +03:00
sebastian.sellmair
ec440aecf6
[Commonizer] Logging: Remove 'COMMONIZATION' prologue
...
^KT-36679
2021-05-01 14:36:15 +03:00
Nikolay Krasko
2a2fa31577
Allow emulate sonatype publishing when publishing to folder (KTI-552)
2021-05-01 01:41:30 +03:00
Nikolay Krasko
624740a80a
Force usage of passed deploy url for sonatype publication (KTI-552)
2021-05-01 01:41:28 +03:00
Nikolay Krasko
8f97d8a78e
Drop legacy publishing
2021-05-01 01:37:09 +03:00
Simon Ogorodnik
6365164c21
FIR: Fix gradle integration tests broken by c6fa3634
2021-04-30 15:19:58 +03:00
Andrey Zinovyev
8afb6d2761
[lombok] Support import from gradle to IDE
...
Introduce base module for ide compiler plugins
2021-04-29 23:14:15 +03:00
Andrey Zinovyev
07daf2165a
[lombok] Rename maven subplugin to 'lombok'
2021-04-29 23:14:13 +03:00
Andrey Zinovyev
b88f54b31a
[lombok] Add maven plugin integration test with kapt
2021-04-29 23:14:12 +03:00
Andrey Zinovyev
3e883120dd
[lombok] Simple maven plugin to enable lombok support
2021-04-29 23:14:11 +03:00
Yahor Berdnikau
61825e9aec
Made GradleCompileTaskProvder compative with configuration cache.
...
After moving compilerRunner() method evaluation into execution phase,
creation of GradleCompileTaskProvider class started to violate
configuration cache.
^KT-45611 In Progress
2021-04-29 20:43:59 +03:00
Yahor Berdnikau
816e955c61
Introduce KotlinJavaToolchain compile tasks input.
...
This task input provides a way to set different from current Gradle
JDK and use it for Kotlin files compilation. By default it provides
current Gradle JDK.
Provided JDK major version is used as task input, so on providing
different JDK user will see cache miss.
All required interfaces are located inside api module.
^KT-45611 In Progress
2021-04-29 20:43:58 +03:00
Yahor Berdnikau
85456bd6d8
Add helper methods simplifying working with lazy properties from Kotlin.
...
Just allow to write Kotlin code easier and nicer when using Gradle
lazy properties.
^KT-45611 In Progress
2021-04-29 20:43:55 +03:00
Yahor Berdnikau
007f11e22e
Add initial test setup to enable and test Gradle build cache.
...
This will allow to write JUnit5 tests to verify tasks are re-using
build cache on rebuilding same project from clean state.
^KT-45611 In Progress
2021-04-29 20:43:54 +03:00
Ivan Gavrilovic
f0199d7277
[Gradle] Simplify Parcelize Gradle plugin
...
Do not iterate over all configurations, just
add the dependency to the compile and runtime classpath.
2021-04-29 17:26:36 +03:00
Alexander Udalov
d10f734594
Fix warnings after making getKotlinPluginVersion non-null
...
See 4cb6303fa8 .
2021-04-29 00:18:07 +03:00
Udi Cohen
b8002cb54f
[Kapt] Support dumping processors stats to a file
...
Using the option -Kapt-dump-processor-timings
2021-04-28 11:48:19 +03:00
Alexander Likhachev
f2f2df90aa
[Gradle] Prevent early resolve of compiler classpath
...
#KT-45834 Fixed
2021-04-27 18:21:19 +03:00
Alexander Udalov
37ccd82b6c
Fix some warnings in kotlin-gradle-plugin
2021-04-26 22:02:26 +03:00