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
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
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
sebastian.sellmair
ec440aecf6
[Commonizer] Logging: Remove 'COMMONIZATION' prologue
...
^KT-36679
2021-05-01 14:36:15 +03:00
Simon Ogorodnik
6365164c21
FIR: Fix gradle integration tests broken by c6fa3634
2021-04-30 15:19:58 +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
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
Alexander Likhachev
f2f2df90aa
[Gradle] Prevent early resolve of compiler classpath
...
#KT-45834 Fixed
2021-04-27 18:21:19 +03:00
Dmitriy Novozhilov
9cb740bfdb
Fix tests broken in c6fa3634
2021-04-26 15:11:46 +03:00
Andrey Zinovyev
c4147bc2fd
[lombok] Add integration test for gradle plugin
2021-04-25 18:18:17 +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
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
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
Sergey Igushkin
d66f95b80e
Resolve dependencies as graph, support multiple modules in a project
2021-04-22 23:42:06 +03:00
Konstantin Tskhovrebov
6db3960d56
Add integration tests for "assembleAppleFrameworkForXcode" and "embedAndSignAppleFrameworkForXcode" tasks.
2021-04-22 20:33:20 +03:00
Andrey Zinovyev
1093bffc62
[KAPT] Cache annotation processors' classloaders
...
Adds experimental feature to cache annotation processors' classloaders
It should increase speed of KAPT for consecutive runs
Works for gradle only (it stores cl in gradle daemon)
#KT-28901 Fixed
2021-04-22 11:51:14 +03:00
sebastian.sellmair
95a1a4e66a
CommonizerHierarchicalIT: Implement test commonizeHierarchicallyMultiModule
...
^KT-46107
2021-04-21 20:05:54 +00:00
sebastian.sellmair
5fb30b05ff
Implement CommonizerIT.test KT-46234 intermediate source set with only one native target to cover KT-46234
...
^KT-46234
2021-04-21 20:05:06 +00:00
Yahor Berdnikau
4f352950d9
Include Dukat generated sources into generic 'sourcesJar' output.
...
Gradle 7 complains that "sourcesJar" task uses inputs from Dukat
generate task outputs directory, but this tasks does not have explicit
dependency.
^KT-46006 Fixed
2021-04-21 16:48:16 +03:00
Yahor Berdnikau
9e9450caa2
Fix adding associated compilation for Kotlin Native.
...
Kotlin native does not support 'compileOnly' or 'runtimeOnly'
configurations. In this case associated compilations are added as
'implementation'.
^KT-45911 Fixed
2021-04-20 10:15:15 +02:00
Ilya Goncharov
c73dadbcdf
[Gradle, JS] Install dukat only if there is dependency with generateExternals
...
^KT-46178 fixed
2021-04-19 17:29:51 +03:00
Alexander Likhachev
6f96c225d7
[Gradle, K/N] Prefer injection over lateinit vars for task configuration
...
#KT-45801 Fixed
2021-04-16 17:39:53 +03:00
Yahor Berdnikau
00df2c4a9e
Fix failing non-JUnit5 tests.
...
They have failed due to migration to new plugin api in test projects.
^KT-45744 Fixed
2021-04-13 16:48:20 +03:00
Yahor Berdnikau
9ef5817f8b
Update SimpleKotlinGradleIT.kt tests to use new DSL.
...
^KT-45744 In Progress
2021-04-13 16:48:19 +03:00
Yahor Berdnikau
aabb05104e
Extract common versions to the separate file.
...
^KT-45744 In Progress
2021-04-13 16:48:18 +03:00
Yahor Berdnikau
8db67ec24b
Add file system watching option to build options.
...
Default build option value - disabled.
In Gradle 7 it is enabled by default, and I suspect it causes flaky
build failure when 'TempDir' tries to delete test project.
^KT-45744 In Progress
2021-04-13 16:48:17 +03:00
Yahor Berdnikau
81621a79a6
Add flag to enable Gradle process debugging.
...
^KT-45744 In Progress
2021-04-13 16:48:16 +03:00
Yahor Berdnikau
9ae47004d0
Append by default heap dump options.
...
^KT-45744 In Progress
2021-04-13 16:48:15 +03:00
Yahor Berdnikau
ffa11eacca
Add task to run only JUnit 5 KGP tests.
...
^KT-45744 In Progress
2021-04-13 16:48:14 +03:00
Yahor Berdnikau
34f1c58f1e
Add Gradle task to clean test kit cache dir.
...
Always run it on CI when tests will finish.
^KT-45744 In Progress
2021-04-13 16:48:13 +03:00
Yahor Berdnikau
644882df61
Set default max Gradle version to '7.0'.
...
^KT-45744 In Progress
2021-04-13 16:48:11 +03:00
Yahor Berdnikau
93230d72f5
Add build option to control Gradle parallelism.
...
Limit workers count, so when running tests parallel, they will not
compete over CPU usage.
^KT-45744 In Progress
2021-04-13 16:48:10 +03:00
Yahor Berdnikau
3c78c94fb1
Add configuration cache support to the default build options.
...
^KT-45744 In Progress
2021-04-13 16:48:08 +03:00
Yahor Berdnikau
8b393910d3
Add support for tests mute-in database in JUnit 5.
...
^KT-45744 In Progress
2021-04-13 16:48:07 +03:00
Yahor Berdnikau
7ffdafe791
Enable forwarding successful Gradle test output on demand.
...
^KT-45744 In Progress
2021-04-13 16:48:05 +03:00
Yahor Berdnikau
5b218bdad2
Set tests lifecycle to be 'PER_CLASS'.
...
Usually Gradle tests should be pretty isolated between each other to use
'PER_METHOD' lifecycle.
^KT-45744 In Progress
2021-04-13 16:48:03 +03:00
Yahor Berdnikau
40c525c4a6
Add '.testKitDir/' to '.gitignore' file.
...
^KT-45744 In Progress
2021-04-13 16:48:02 +03:00
Yahor Berdnikau
35a020340c
Don't share temp directory between tests.
...
Apparently this causes problems on Windows CI runners.
^KT-45744 In Progress
2021-04-13 16:48:00 +03:00
Yahor Berdnikau
0ca4254cba
Setup running tests against different Gradle versions.
...
^KT-45744 In Progress
2021-04-13 16:47:59 +03:00
Yahor Berdnikau
3dcac00aec
Add basic file content transformations.
...
^KT-45744 In Progress
2021-04-13 16:47:57 +03:00
Yahor Berdnikau
f5dfe7ce95
Automatically add 'pluginManagement' block to settings.gradle file.
...
Only in the case when it does not exist.
^KT-45744 In Progress
2021-04-13 16:47:56 +03:00
Yahor Berdnikau
9e2cdc7337
Add file or directory exists/does not exist assertions.
...
^KT-45744 In Progress
2021-04-13 16:47:55 +03:00
Yahor Berdnikau
710287920b
Add initial setup to build common options.
...
^KT-45744 In Progress
2021-04-13 16:47:54 +03:00
Yahor Berdnikau
7549d14a36
Add Gradle output assertions.
...
^KT-45744 In Progress
2021-04-13 16:47:53 +03:00
Yahor Berdnikau
b7864c1e43
Add tasks assertions.
...
^KT-45744 In Progress
2021-04-13 16:47:51 +03:00
Yahor Berdnikau
e13f21e461
Add basic DSL based on Gradle TestKit for KGP integration tests.
...
^KT-45744 In Progress
2021-04-13 16:47:50 +03:00
Yahor Berdnikau
2d9a3f364c
Update advance Gradle version to 7.0 for KGP tests.
...
^KT-44949 Fixed
2021-04-12 15:02:02 +03:00