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
Alexander Udalov
19a5c2f1c8
Fix warnings related to appendln in kotlin-gradle-plugin
...
`appendln` is deprecated, but its replacement `appendLine` can't be used
yet in kotlin-gradle-plugin because it's compiled with API version 1.3.
2021-04-26 22:02:25 +03:00
Alexander Udalov
e5128a8772
Improve generated code for Gradle properties
...
Fix warnings about double nullability and useless elvis.
2021-04-26 22:02:24 +03:00
Ilya Gorbunov
ed3542cdf5
Support covariant MutableMap.entries.remove in JS/IR
...
Workaround for KT-43321
Follow up to KT-41278
2021-04-26 17:45:27 +03:00
Dmitriy Novozhilov
9cb740bfdb
Fix tests broken in c6fa3634
2021-04-26 15:11:46 +03:00
Ilya Gorbunov
a9cc046ec9
Add missing constructor for expect annotation class JvmRecord
...
KT-46280
2021-04-26 10:41:49 +00:00
Ilya Gorbunov
b59f668a50
Change the way kotlin.js source map paths are postprocessed
...
The idea is that we do no longer use `sourceMapBaseDirs` parameter
of `compileKotlin2Js` task to remove prefix from source paths,
but instead preserve the full paths relative to the output directory.
This allows us to avoid duplicate file names and to identify
source files more reliably.
Then, after sources have been embedded in the source map, we remove
several relative prefixes from source paths.
2021-04-26 13:13:21 +03:00
Andrey Zinovyev
c4147bc2fd
[lombok] Add integration test for gradle plugin
2021-04-25 18:18:17 +03:00
Andrey Zinovyev
99f9b79c87
[lombok] Add simple way to use lombok plugin in one project with kapt
2021-04-25 18:18:09 +03:00
Andrey Zinovyev
79d49e6dbd
[lombok] Gradle sublugin for no-kapt project
2021-04-25 18:18:08 +03:00
sebastian.sellmair
7be48a0b4b
CommonizerHierarchicalIT: Enable test commonizeHierarchicallyMultiModule
...
^KT-46107 Fixed
2021-04-23 16:25:59 +00:00
Konstantin Tskhovrebov
b894b7df6e
Add integration tests for "assembleAppleFrameworkForXcode" and "embedAndSignAppleFrameworkForXcode" tasks.
2021-04-23 19:23:58 +03:00
Konstantin Tskhovrebov
c8ef0715b9
Register "assembleAppleFrameworkForXcode" and "embedAndSignAppleFrameworkForXcode" tasks when gradle is run from Xcode.
...
#KT-27240
2021-04-23 19:23:57 +03:00
sebastian.sellmair
28690b7f32
KotlinToolRunner: Add "java.system.class.loader" to execSystemPropertiesBlacklist
...
IDE integration tests will forward an unvailable intellij classloader
which will fail the execution.
2021-04-23 14:34:17 +00:00
sebastian.sellmair
965e328766
CommonizerIT: implement test KT-46248 single supported native target dependency propagation to cover KT-46248
...
^KT-46248
2021-04-23 14:34:15 +00:00
sebastian.sellmair
13b1664edf
CommonizerIT: Implement additional test KT-46142 standalone native source set
...
^46142
Before this test, the behaviour was tested as integration test in the IDE.
This Gradle integration test will detect issues even earlier.
2021-04-23 15:02:15 +03:00
Konstantin Tskhovrebov
ee4a1d173d
Revert "Add integration tests for "assembleAppleFrameworkForXcode" and "embedAndSignAppleFrameworkForXcode" tasks."
...
This reverts commit 6db3960d
2021-04-23 12:11:42 +03:00
Konstantin Tskhovrebov
8840a9ecd1
Revert "Register "assembleAppleFrameworkForXcode" and "embedAndSignAppleFrameworkForXcode" tasks when gradle is run from Xcode."
...
This reverts commit c2cdf9c7
2021-04-23 12:11:19 +03:00
Alexander Likhachev
03f9d78eb3
[Build] Add workaround to make local publishing serializable
...
Also signing plugin now being applied only when signing is required.
#KT-44611 In Progress
2021-04-23 03:52:41 +03:00
Sergey Igushkin
4e6c483ccc
Add a final override for project in KotlinGradleFragmentInternal
2021-04-23 00:43:14 +03:00
Sergey Igushkin
bb35d9271f
Minor fix: don't use lazy in KotlinPm20ProjectExtension.modules
2021-04-23 00:43:14 +03:00
Sergey Igushkin
53f02a53f0
Add caching to dependency resolvers in PM20 + some refactoring
2021-04-23 00:43:13 +03:00
Sergey Igushkin
1f0089c5de
Refactor the dependency graph resolver to be more readable
2021-04-23 00:43:13 +03:00
Sergey Igushkin
6be33448d6
Rework adding sources to FilteringSourceRootsContainer in JVM tasks
...
Support adding lazily-evaluated file collections (i.e. tracking their
source roots lazily, as opposed to eagerly evaluating the source roots.
2021-04-23 00:43:12 +03:00
Sergey Igushkin
e7b81c52a7
Get rid of DependencyDiscovery in favor of DependencyGraphResolver
2021-04-23 00:43:11 +03:00
Sergey Igushkin
d602470027
Fix compilation of the tests in kotlin-project-model
2021-04-23 00:43:10 +03:00
Sergey Igushkin
fe351f26ef
For now, publish the sources elements variant with usage=kotlin-sources
2021-04-23 00:43:10 +03:00
Sergey Igushkin
a94597d85a
Experimental sources publication in the PM2.0 prototype
2021-04-23 00:43:10 +03:00
Sergey Igushkin
44fcd7e891
Use KotlinCompilationTaskConfigurator for metadata compilation tasks
2021-04-23 00:43:09 +03:00
Sergey Igushkin
4cb6303fa8
Get rid of kotlinPluginVersion in the constructors throughout the plugin
...
We passed the kotlinPluginVersion which was only used for a single
purpose in countless constructors.
In fact, the plugin version is easy to load at the call site, as it gets
loaded from the plugin's resources.
So rework the plugin version loading code so that it doesn't rely on the
applied plugin, and don't pass the plugin version in all those
constructors.
2021-04-23 00:43:09 +03:00
Sergey Igushkin
2a5d511b66
Minor fix: handle kotlinOptions more carefully, store them where needed
2021-04-23 00:43:08 +03:00
Sergey Igushkin
00e5e462ea
Further refactor compile task configuration: extract the configurator
2021-04-23 00:43:08 +03:00
Anton Lakotka
1a85da5ff8
Make language settings nullable in KotlinModuleFragment
...
There is no lang settings when importing from klibs (yet)
2021-04-23 00:43:07 +03:00
Anton Lakotka
c3264a2979
Add language consistency checks for fragments
...
Migrate exiting consistency checker for source sets to be generic
and reuse it for fragments
2021-04-23 00:43:07 +03:00
Anton Lakotka
de4221afd8
Add immutable LanguageSettings interface and apply it to compilation
...
LanguageSettingsBuilder extends LanguageSettings
2021-04-23 00:43:06 +03:00
Sergey Igushkin
54c6ae2cce
(minor) Rename modelClasses.kt -> KotlinJvmVariantFactory.kt
2021-04-23 00:43:06 +03:00
Sergey Igushkin
3be2734c63
Refactor the setup of compilation in the PM20 implementation prototype
2021-04-23 00:43:05 +03:00
Sergey Igushkin
c1fe0d7158
Add publishing configurator, call it from the variant factories
2021-04-23 00:43:05 +03:00
Sergey Igushkin
1271fabffa
Fix Maven scope mapping for the runtime dependencies in PM20 publishing
2021-04-23 00:43:04 +03:00