Ilya Chernikov
f71909ee73
Fix classpath calculation for scripts, e.g. in JSR-223 setting
...
#KT-25814 fixed
2018-08-01 13:09:05 +02:00
Lucas Smaira
49292cd26c
Move model interfaces code from Java to Kotlin
2018-07-30 19:08:04 +03:00
Lucas Smaira
52990c9eb1
Set JAVA and ANDROID_HOME when fetching Gradle models
...
In BaseGradleIT
2018-07-30 19:08:04 +03:00
Lucas Smaira
8cb03fcdec
Fix model tests in Windows
...
By comparing files instead of paths, avoiding problems with separator
'/' or '\'.
2018-07-30 19:08:04 +03:00
Lucas Smaira
5e515590cb
Restrict methos in Tasks.kt to internal
2018-07-30 19:08:04 +03:00
Lucas Smaira
3588547d8c
Remove *ImplTest for Kotlin Gradle Models
...
Equality should already be guaranteed by Kotlin data classes.
2018-07-30 19:08:04 +03:00
Lucas Smaira
3c88f761a6
Introduce tooling model for Android extensions plugin
...
Introduce Gradle models for plugins 'kotlin-android-extensions'.
2018-07-30 19:08:04 +03:00
Lucas Smaira
5a423e8dcd
Introduce tooling model for annotation based projects
...
Introduce Gradle models for plugins 'kotlin-allopen', 'kotlin-noarg' and
'kotlin-sam-with-receiver'. Corresponding model builders are registered
in each one of those plugin main classes.
2018-07-30 19:08:04 +03:00
Lucas Smaira
5671dbb929
Introduce tooling model for Kapt gradle projects
...
A Kapt model for Gradle projects including 'kotlin-kapt'plugin is
introduced. Its model builder KaptModelBuilder produces an
implementation of these models and can be queried through the Gradle
Tooling API when needed. Model builder is registered in
Kapt3GradleSubplugin.
2018-07-30 19:08:04 +03:00
Lucas Smaira
9def6f020f
Introduce tooling model for Kotlin gradle projects
...
A KotlinProject model for Gradle projects including Kotlin (JVM, JS or
common) plugins is introduced. Its model builder KotlinModelBuilder
produces an implementation of these models and can be queried through
the Gradle Tooling API when needed. Model builder is registered in the
corresponding Kotlin Gradle plugins.
Model definition should be published as a separate artifact in public
repositories so it can be consumed when needed.
2018-07-30 19:08:04 +03:00
Dmitry Petrov
6fb913a463
KT-22274 report error/warning on incorrect return target label
2018-07-25 12:08:20 +03:00
Yan Zhulanow
7803294546
PrePush hook (temporary): Do nothing on a download failure
2018-07-20 22:17:45 +03:00
Yan Zhulanow
314cc5c2f5
Add support for Android Studio 3.3 Canary 1
2018-07-19 19:09:40 +03:00
Yan Zhulanow
1eb69a6960
Kapt: Do not add JDK jars if the 'no-jdk' option is set (KT-25258)
2018-07-19 17:31:25 +03:00
Ilya Chernikov
70eaa0ec75
Cleanup annotations in script-util:
...
remove unused targets and runtime retention
2018-07-18 13:11:32 +02:00
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