Yan Zhulanow
02ee3aef3f
Kapt: Fix "Unknown option: infoAsWarnings" (#KT-25396)
2018-07-17 20:54:28 +03:00
Yan Zhulanow
f6afab1226
Minor: Remove an obsolete warning in Android subplugin
2018-07-12 20:36:41 +03:00
Yan Zhulanow
6e3c2e8015
Revert "Android Extensions: Allow to access library project resources in Gradle setup (#KT-22430)"
...
This reverts commit a70707b
2018-07-12 20:36:39 +03:00
Raluca Sauciuc
e7c1f578d1
Recognize Instant Apps plugin
...
Tested with sample project and Studio 3.2 Canary 18:
https://github.com/googlesamples/android-instant-apps/tree/master/hello-kotlin
(cherry picked from commit 528d66d5840cc8f584270c516e85da1a632df8b8)
2018-07-12 20:36:39 +03:00
Yan Zhulanow
392460e426
Kapt: Allow to disable info->warning mapping in logger (#KT-24985)
2018-07-12 20:36:39 +03:00
Yan Zhulanow
8d9c53da92
Kapt: Allow to disable warning for 'annotationProcessor' dependencies (#KT-24883)
2018-07-12 20:36:38 +03:00
Alexey Tsvetkov
93e183c2e4
Test for KT-25051
2018-07-09 15:50:06 +03:00
Alexey Tsvetkov
f735586819
Remove redundant test
...
`testMultiModuleICNonAndroidModuleIsChanged` already tested
android and non-android change
2018-07-09 15:50:05 +03:00
Alexey Tsvetkov
63b4302cea
Always generate kotlin_module
...
#KT-25133 fixed
#KT-25051 fixed
2018-07-09 15:48:11 +03:00
Denis Zharkov
4bf51af2fa
Fix reference-public-api
...
It's necessary because of the changes in 3497880f203449121ea8035c49b792cc4dc53bd6
2018-07-09 15:27:19 +03:00
Alexey Tsvetkov
39fc7cffe1
Temporarily ignore Kapt3WorkersAndroid32IT
2018-07-04 15:15:57 +03:00
Alexey Tsvetkov
bab8c97c09
Allow overriding default Gradle version per test class
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
05fa8b7451
Add SDK jars to compile classpath for Kapt Workers task
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
3b18debee3
Test kapt with workers
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
efeea9d7d4
Update android tools versions in Gradle plugin tests
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
357518be0d
Remove projectDir input from KaptWithoutKotlincTask
...
It is redundant since the task would be restarted when project dir changes,
because paths of sources would also change
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
9b97108db4
Fix getting plugin version for kotlinKaptWorkerDependencies configuration
...
Previously the configuration would not work for non-android projects,
because it looked only at KotlinAndroidPluginWrapper for plugin version
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
43b7ffd823
Create kotlinKaptWorkerDependencies only once
...
#KT-25124 fixed
2018-07-04 14:55:42 +03:00
Alexey Tsvetkov
8848d7a043
Remove groovy plugin from kotlin-gradle-plugin build script
2018-06-28 22:03:11 +03:00
Alexey Tsvetkov
22c1907167
Track project version in ":kotlin-gradle-plugin:processResources"
...
Before the change consecutive incremental builds with different project versions
produced kotlin-gradle-plugin with the same project.version in project.properties file
2018-06-28 22:03:11 +03:00
Alexander Udalov
8c8d0eefbb
Relocate package org.jetbrains.kotlin in kotlinx-metadata-jvm
...
To prevent clashes in scenarios where it's used together with the Kotlin
compiler (e.g. in annotation processing)
#KT-24945 Fixed
2018-06-28 14:39:53 +02:00
Sergey Igushkin
dbd72ae53b
Fix Android ap option providers as Kapt task nested inputs
...
1) Exclude the providers arguments from the kapt inputs, as the values
may contain absolute paths, may be output properties etc. The providers
should correctly annotate their inputs.
2) Fix the options passed to kapt as 'value=option' (leading to all the
options collapse into one with the null key), use 'key=option' instead
to make Kapt pass them as '-Aoption'.
Issue #KT-23866 Fixed
Issue #KT-25027 Fixed
2018-06-25 15:03:52 +03:00
Ilya Gorbunov
39cad033a3
Cleanup: remove deprecated configuration property
...
Currently it's useless because we don't override compilerJarFile anymore.
2018-06-24 17:27:57 +03:00
Vyacheslav Gerasimov
01db78d776
Build: Introduce Project extension properties for source sets
2018-06-22 21:42:30 +03:00
Leonid Startsev
bef97d85af
Respect version string in SubpluginArtifact to load compiler plugins
...
with versions different from compiler one
2018-06-22 21:13:34 +03:00
Alexey Tsvetkov
2065f8e6fe
Fix inter-project IC for android->non-android dependency
...
#KT-24832 fixed
2018-06-22 19:15:45 +03:00
Alexey Tsvetkov
9071a70a44
Avoid iterating jar inputs in inspectClassesForKotlinIC task
...
Jar's inputs can contain zipTrees in case of fat jars,
which can cause slow build
(Gradle unpacks them into temporary dir; that can be slow)
#KT-24956 fixed
2018-06-22 19:15:45 +03:00
Alexey Tsvetkov
e38cafb1a2
Don't create build directory for task in getter
...
Since the property is public, it can be invoked from outside,
possibly trough other properties.
This can lead to unwanted side effects: we can create taskBuildDirectory,
because some other task reads the property in parallel with 'clean' task
in current project.
That's exactly what happened when we referenced the property from
'GradleCompilerRunner#buildModulesInfo'.
#KT-24938 fixed
2018-06-22 19:15:45 +03:00
Alexey Tsvetkov
03839f6861
Test: speed up integration test by not building release variant
2018-06-22 19:15:45 +03:00
Alexey Tsvetkov
433e742d73
Fix location mapping test on Windows
2018-06-22 19:15:45 +03:00
Alexey Tsvetkov
3fb26d92df
Filter out non-existent java source roots in kapt tasks
...
#KT-24716 fixed
2018-06-20 23:58:37 +03:00
Alexander Udalov
fec2c14ea5
Support local delegated properties in kotlinx-metadata-jvm
2018-06-14 17:19:08 +02:00
Vyacheslav Gerasimov
992a31af88
Build: introduce javaPluginConvention extension on project
...
`ExtensionAware.the<T>()` introduced in gradle 4.7 made existing calls `the<JavaPluginConvention>()` invalid (on wrong receiver)
2018-06-13 19:43:03 +03:00
Alexander Gorshenev
6d7dd58f70
Separated idl2k frontend and backend invocations.
2018-06-13 15:45:54 +03:00
Yan Zhulanow
ed43cb57e3
PrePush: Add a pre-push warning before committing to locked branches
2018-06-08 19:37:21 +03:00
Yan Zhulanow
bf10c1162a
Kapt: Fix Gradle input/output verification
2018-06-08 19:37:21 +03:00
Yan Zhulanow
8645be3ace
Kapt: Remove the remaining kapt1-related code in Gradle plugin
2018-06-08 19:37:20 +03:00
Yan Zhulanow
64ea16fdfc
Kapt: Allow running kapt using Workers API in Gradle
2018-06-08 19:37:19 +03:00
Yan Zhulanow
2bc45e0484
Kapt: Extract annotation processing running logic from the compiler plugin
2018-06-08 19:37:19 +03:00
Yan Zhulanow
ab611a20c5
Kapt: Do now show a warning for APs from 'annotationProcessor' configuration also declared in 'kapt' configuration (#KT-23898)
2018-06-08 19:27:00 +03:00
Yan Zhulanow
614003ad70
Android Extensions: Allow to disable specific features of Android Extensions (#KT-23244)
2018-06-08 19:26:59 +03:00
Yan Zhulanow
a70707b72b
Android Extensions: Allow to access library project resources in Gradle setup (#KT-22430)
2018-06-08 19:26:59 +03:00
Yan Zhulanow
5eedbf4177
G2K: Rewrite AndroidGradleWrapper in Kotlin
2018-06-08 19:26:59 +03:00
Yan Zhulanow
9aa02c7ae4
G2K: Move AndroidGradleWrapper to the Kotlin source set, rename to .kt
2018-06-08 19:26:59 +03:00
Alexey Tsvetkov
451c732b8f
Test: speed up tests by minimizing number of tasks to run
...
E.g. avoid building release variants for Android
(extremely slow due to proguard minification, optimization)
2018-06-06 17:54:51 +03:00
Alexey Tsvetkov
0383584f33
Test: rename file to match class name
2018-06-06 17:54:51 +03:00
Alexey Tsvetkov
0c12b0e5fb
Test: refactor Gradle daemon memory test
...
Currently the test makes more harm than use:
* It is too slow: two executions (with different Gradle versions)
take 5 minute on CI.
* It is unreliable: the test fails on CI for months
with insignificant violation of the memory growth limit.
After this change:
* the memory growth limit is increased;
* the test run count is decreased;
* changes the test to use separate project with minimal amount of classes
(we're not interested in compiler's memory leaks; only Gradle plugin specific ones);
2018-06-06 17:54:51 +03:00
Alexey Tsvetkov
43e7b0425d
Test: move Gradle daemon memory test to separate class
2018-06-06 17:54:50 +03:00
Alexey Tsvetkov
2fecf07dd7
Test: do not expect copy classes task to run with Gradle 4.0+
2018-06-05 19:27:08 +03:00
Alexey Tsvetkov
141cf43153
Test: remove KotlinGradlePluginMultiVersionIT
...
We run all tests with multiple Gradle versions now,
so parametrized test is not needed anymore.
Test cases are moved to relevant test classes.
testKaptProcessorPath is removed because kapt1 is not supported anymore.
2018-06-05 19:27:07 +03:00