Ilya Gorbunov
90dff281ba
Actualize ReadMe files
...
- Actualize build requirements and steps
- Extract Gradle plugin readme to the corresponding folder
- Rewrite Libraries and Maven Tools readme
#KT-20995 Fixed
2018-02-06 21:17:58 +03:00
Ilya Gorbunov
aa74f163f7
Minor: improve table formatting
2018-02-06 21:17:57 +03:00
Sergey Igushkin
e8cd8b566e
Delay kapt dependencies resolution from configuration phase
...
Store kapt configurations instead of classpath files in the tasks
Delay wrapping kapt subplugin options to task execution (when the
classpath can be safely resovled)
Issue #KT-18821 Fixed
2018-02-06 21:01:57 +03:00
Alexander Udalov
91a9038b2f
Regenerate Gradle options
...
After f9e195351a
2018-02-05 16:17:30 +01:00
Denis Zharkov
9b28d1a21c
Make precise java classes tracking in Gradle enabled by default
...
#KT-22192 Fixed
2018-02-05 11:54:53 +03:00
Ilya Chernikov
fbbece3c86
Fix publishing problem
2018-01-30 17:06:13 +03:00
Ilya Chernikov
e23b1529b3
Convert intellij usages in the groovy build scripts
2018-01-30 17:06:13 +03:00
Ilya Chernikov
a4f28cd94f
Make all dependencies to idea sdk intransitive
2018-01-30 17:06:11 +03:00
Sergey Igushkin
0c78a2c026
Remove some of the remaining mentions of repository.jetbrains.com
2018-01-23 23:35:50 +03:00
Mikhael Bogdanov
7b212c5650
Add support for android MPP
...
#KT-18462 Fixed
2018-01-18 15:21:19 +01:00
Alexey Tsvetkov
72f2406083
Turn IC on by default for MPP projects
2018-01-17 21:23:43 +03:00
Sergey Igushkin
5deb20543f
Get rid of gradle-api artifacts uploaded to and used from JB repo
...
Remove redundant Maven dependency to `gradle-api` scoped as provided
2018-01-17 18:45:26 +03:00
Yan Zhulanow
a85b4ddb0f
Kapt: Clear stubs directory on non-incremental stub generation (KT-21735)
2018-01-15 12:39:25 +09:00
Sergey Igushkin
06903f803b
(minor) Separate the Gradle annotations from CompilerArgumentAware
2018-01-03 22:14:23 +03:00
Sergey Igushkin
d881efdeb1
Improve disambiguation of subplugin option inputs
...
The original approach required evaluating the existing input properties
of the task. This led to evaluation of the property values, and could
execute incorrectly if the task was not properly initialized at that
moment.
The new approach fixes that by first grouping options from each
subplugin by key and then adding disambiguating index suffixes.
2018-01-03 22:14:23 +03:00
Sergey Igushkin
1be9e04797
Move conditional task caching setup into the task constructors;
...
Add 'kotlin.caching.enabled' flag to switch the caching for all tasks;
Rename and change semantics of cache support checks: make two instead
of one, `isBuildCacheSupported` and `isBuildCacheEnabledForKotlin`;
Remove FileOptionKind entries that are redundant at the moment;
Improvements in BuildCacheIT.kt and other refactoring suggestions from
the review
https://upsource.jetbrains.com/kotlin/review/KOTLIN-CR-1647
2018-01-03 22:14:22 +03:00
Sergey Igushkin
fd066ea4d5
Fix top-level property of an API-level-dependent class: move to the body
2018-01-03 22:14:22 +03:00
Sergey Igushkin
6bea643176
Fix JS DCE classpath duplicated in two input properties
...
* Do not add the classpath elements to source to avoid them being
treated as task inputs without proper classpath normalization
* Move resolution of the classpath configuration to execution time
2018-01-03 22:14:22 +03:00
Sergey Igushkin
67b5527c68
Fix Kotlin destination dir added to Java task without normalization.
...
Issue #KT-20604 Fixed
2018-01-03 22:14:22 +03:00
Sergey Igushkin
97edda44c8
Turn on relocatable build cache -- change PathSensitivity to RELATIVE
2018-01-03 22:14:22 +03:00
Sergey Igushkin
c852d0b6cb
Subplugin options refactoring & Gradle input improvements
...
Introduce FilesSubpluginOption Special kind of SubpluginOption that
holds a list of files together with the kind of these files with respect
to the task.
Add a logic for handling such options and converting them into
task inputs.
Refactor CompilerPluginOptions: make it store subplugin options to be
able to add options from KotlinCompile to the kapt tasks.
Introduce WrapperSubpluginOption for encoded and complex options.
Remove pluginOptions from the Gradle inputs built from the
compiler args.
Do not cache Kotlin compilation with kapt1 enabled: since we are going
to drop kapt1 it anyway, there's no point in implementing
proper cache for it, so just disable the caching of the task in case
kapt1 is used.
2018-01-03 22:14:22 +03:00
Sergey Igushkin
57f710c931
Explicit opt-in switch for Kapt caching.
2018-01-03 22:14:21 +03:00
Sergey Igushkin
7ee3b81939
Add Kotlin sources output as a separate output directory for kapt.
2018-01-03 22:14:21 +03:00
Sergey Igushkin
4a69d1545b
Disable IC when IC cache is missing
...
Check task build directory for any files
2018-01-03 22:14:21 +03:00
Sergey Igushkin
14c80baec8
Make the tasks cacheable, add logic that decides whether to cache them
2018-01-03 22:14:21 +03:00
Sergey Igushkin
26c158cbae
Annotate the properties with @PathSensitive (+ override source)
2018-01-03 22:14:21 +03:00
Sergey Igushkin
e46b56acbc
Add @LocalState of buildServicesWorkingDir to KotlinCompile
2018-01-03 22:14:21 +03:00
Sergey Igushkin
627fe52858
Map compiler arguments to Gradle inputs.
2018-01-03 22:14:20 +03:00
Sergey Igushkin
a8ba8fbf77
Make pluginOptions.classpath a separate input in the Gradle tasks
...
(cherry picked from commit b03e758)
2018-01-03 22:14:20 +03:00
Sergey Igushkin
a752d30f12
Move CompilerArgumentAware to the <...>.internal package.
2018-01-03 22:14:20 +03:00
Sergey Igushkin
62f2876230
Refactor compiler arguments in Gradle tasks:
...
Pull create/setup args functions up to CompilerArgumentsAware interface
Remove diamond-shaped CompilerArgumentsAware inheritance
Provide the default implementation for serialization in the interface
Make KotlinJsDce implement CompilerArgumentsAware
Implement the compiler args logic for Kapt & GenerateStubs tasks
2018-01-03 22:14:20 +03:00
Sergey Igushkin
276a6acc3e
Use .withDependencies { ... } to set up default versions with Gradle 4.4
...
+ Improve the test for omitted Kotlin module versions.
Issues: #KT-21806 Fixed, #KT-21203 Fixed
2017-12-28 19:47:02 +03:00
Sergey Igushkin
01931c2ae6
Fix Kotlin internal files created in 'build/' ignoring custom buildDir
...
Issue #KT-10537 Fixed
2017-12-26 21:38:15 +03:00
Sergey Igushkin
d51b17c1b2
Fix @OutputFile annotation on a String property outputFile.
2017-12-26 20:29:45 +03:00
Sergey Igushkin
9d1091cdaa
Add java-gradle-plugin for kotlin-gradle-plugin tasks validation;
...
Make task properties validation fail on warnings; run it during IT
2017-12-26 20:29:45 +03:00
Sergey Igushkin
7031087a93
Mark Gradle task properties with input/output annotations.
2017-12-26 20:29:45 +03:00
Sergey Igushkin
d62ced3a82
Compile against gradleApi()
2017-12-26 20:29:45 +03:00
Sergey Igushkin
149b197b24
Fix unconditional warning in JS compilation with sourceMap disabled.
2017-12-25 15:30:01 +03:00
Sergey Igushkin
66d3c94193
Fix both moduleFile and destination passed to the compiler
...
when it is run not in daemon from Gradle; don't pass the destination in
such case.
Issue #KT-21637 Fixed
2017-12-25 15:29:34 +03:00
Sergey Igushkin
41086f26ae
Fix duplicate classpath entry in JS Gradle compilation causing warnings
...
Issue #KT-21943 Fixed
2017-12-25 15:15:54 +03:00
Sergey Igushkin
710c726c9a
Improve kapt arguments & javac options usability with Kotlin DSL
...
Issue #KT-21596 Fixed
2017-12-20 20:49:30 +03:00
Ilya Chernikov
1cd14f00eb
Ignore connection error on the (optional) daemon.clearJarCache call
...
May fix issues with NoSuchObjectException and UnmarshalException - the
stacktraces often point to this place
2017-12-18 16:49:50 +01:00
Yan Zhulanow
1af93b8342
Kapt: Consider all 'kapt' configuration dependencies as KaptTask dependencies.
2017-12-15 02:35:14 +09:00
Yan Zhulanow
d58665b5a8
Kapt: Remove duplicating check, this also removes the senseless warning (KT-21425)
2017-12-15 02:35:12 +09:00
Yan Zhulanow
5116f598df
Kapt: Fix error message when no annotation processors were found (KT-21729)
...
Error message says "androidProcessor", it should be "annotationProcessor"
2017-12-14 19:28:51 +09:00
Denis Zharkov
a079b92ea0
Add property for precise version of Java tracking in Gradle IC
...
The flag name is kotlin.incremental.usePreciseJavaTracking
By default precise version is disabled
#KT-17621 Fixed
2017-12-12 16:17:58 +03:00
Andrey Mischenko
e1dbb90fdd
KT-21729 Error message says "androidProcessor" should be "annotationProcessor"
2017-12-11 09:29:06 +08:00
Mikhael Bogdanov
5c2f5fee39
Make 'addCommonSourceSetToPlatformSourceSet' open to support native specifics
2017-12-06 10:57:08 +01:00
Yan Zhulanow
84a766de24
Kapt: Register AP classpath as an input for "generate stubs" and "kapt" tasks
...
...so if the annotation processor artifact is changed, annotation processing will be relaunched.
2017-12-01 22:53:22 +09:00
Yan Zhulanow
1f65f8bc97
Encode all compiler plugin arguments for Android Extensions in kapt
...
Commas in option values breaks the option parsing in daemon (KT-20235).
2017-12-01 22:53:16 +09:00