Commit Graph

2640 Commits

Author SHA1 Message Date
Sergey Mashkov 3c002625c6 KT-13211 KotlinCompileMojoBase could provide better compilation failure info 2016-08-12 13:59:58 +03:00
Ilya Chernikov 82a53912a9 Add two more options copying from gradle-visible option to compiler-visible ones 2016-08-11 09:11:11 +02:00
Ilya Chernikov 46a7c706e1 Fixes and refactorings after review 2016-08-11 09:11:11 +02:00
Ilya Chernikov e79d8014fa Add support for script templates settings in gradle plugin, add kts files to source sets 2016-08-11 09:11:11 +02:00
Alexey Tsvetkov 4702842afd Revert replacing convention with extension
It seems that was wrong
2016-08-10 22:28:21 +03:00
Alexey Tsvetkov 791c7fe6e6 Invalidate jar cache at the end of a Gradle build
#KT-12912 fixed
2016-08-10 22:28:20 +03:00
Alexey Tsvetkov fa0344a1b2 Add simple file modification util for gradle incremental tests 2016-08-10 22:22:54 +03:00
Alexey Tsvetkov aff5dd1691 Refactoring: cleanup gradle plugin 2016-08-10 22:22:50 +03:00
Alexey Tsvetkov 81bc2701fa Refactoring: move util functions to gradleUtils.kt 2016-08-10 22:22:47 +03:00
Alexey Tsvetkov f649ebfdba Refactoring: remove unused ScriptHandler 2016-08-10 22:22:43 +03:00
Alexey Tsvetkov 5f4e56c251 Refactoring: simplify KotlinSourceSet creation 2016-08-10 22:22:40 +03:00
Alexey Tsvetkov cc585cf6f3 Refactoring: extract constants 2016-08-10 22:22:36 +03:00
Alexey Tsvetkov eeed0a6eee Refactoring: stop using internal classes to create DSL extensions 2016-08-10 22:22:32 +03:00
Alexey Tsvetkov d9c9fb11ea Refactoring: taskUtils.kt->gradleUtils.kt 2016-08-10 22:22:28 +03:00
Alexey Tsvetkov 6c80b33664 Refactoring: remove usages of ProjectInternal 2016-08-10 22:22:25 +03:00
Alexey Tsvetkov f0ff0d0a18 Refactoring: inject FileResolver
This is part of refactoring to minimize using of internal API in gradle plugin
2016-08-10 22:22:21 +03:00
Ilya Gorbunov 2c1d90c79d Improve test coverage of map operations 2016-08-10 21:52:24 +03:00
Ilya Gorbunov dcd6e86cd3 Minor: rename type parameter from C to M as it stands for Map 2016-08-10 21:52:24 +03:00
Ilya Gorbunov bb774cea76 Minor: remove anonymous class for Map.asSequence 2016-08-10 21:52:24 +03:00
Ilya Gorbunov fb99919c59 Accept maps out-projected by key where possible. 2016-08-10 21:52:24 +03:00
Ilya Gorbunov 738219d53e Make Map.toSortedMap accept Map out-projected by key type as the receiver.
Update related completion testData.
2016-08-10 21:52:24 +03:00
Ilya Gorbunov 9ff6a6260e Minor: explicit visibility and improved code formatting 2016-08-10 21:32:33 +03:00
Ilya Gorbunov 200f1c98ed Minor: fix formatting and improve docs 2016-08-10 18:23:32 +03:00
Laszlo Hornyak 6fda0816f3 buildString with initial capacity for the StringBuilder instance
this method helps save computation time when the developer knows or have a good
educated guess about the size of the generated string and have to use control
structures while filling the string builder

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2016-08-10 18:23:32 +03:00
Ilya Gorbunov e35a214eaf Review fixes: special case of toMap for singleton map.
#KT-9108
2016-08-09 21:49:57 +03:00
Ilya Gorbunov efc8f2c88a Provide extensions to copy maps.
#KT-9108
2016-08-09 21:49:57 +03:00
Ilya Gorbunov ae985e24ca Docs: clarify docs for 'generateSequence'. 2016-08-09 17:43:12 +03:00
Ilya Gorbunov fed24c2be6 Docs: preserve empty lines in the generated documentation to separate summary and paragraphs in the body. 2016-08-09 17:43:12 +03:00
Ilya Gorbunov e31167e74f Improve FileTreeWalk documentation,
#KT-13297 Fixed
2016-08-09 17:43:12 +03:00
Ilya Gorbunov e7d250b7d7 Document that sequences could be iterated multiple times.
#KT-13115 Fixed
2016-08-09 17:43:12 +03:00
Alexander Udalov d14843cb0e Update API listing of built-in classes in kotlin.reflect 2016-08-08 17:54:11 +03:00
Alexey Tsvetkov e0ebf2482b Configure KotlinCompile.destinationDir before evaluation
Previously it was possible to refer to destinationDir
in gradle scripts (evaluation phase), so in order to
preserve compatibility destinationDir should be configured
before evaluation.

This does not affect android plugin because in this case kotlin
tasks were created after evaluation anyway, so it
was not possible to refer to destinationDir
during evaluation anyway.
2016-08-03 13:09:56 +03:00
Ilya Chernikov 45ed340444 Add passing of allowKotlinPackage option from gradle plugin to compiler 2016-08-03 09:51:40 +02:00
Ilya Gorbunov 39d7d3381c Make unchecked cast in Map.getOrDefault extension that is covariant by K, since getOrDefault member now requires K as key.
Relates to #KT-13209.
2016-07-29 21:03:56 +03:00
Ilya Gorbunov 0a0bdbc8b3 Minor: fix test source root 2016-07-29 21:03:56 +03:00
Alexey Tsvetkov e51f2457bf Add additional java source dir to source set in android test 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov ef70814f60 Refactoring: extract function to map classpath 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 2cae5f01cf Move call to kotlinTask.source to doTargetSpecificProcessing 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov ad1340caf3 Refactoring: move mapKotlinTaskProperties call to createKotlinJVMTask 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 048982cf36 Refactor classpath handling in KotlinCompile
#KT-13234 fixed
2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 815e297328 Add test for code using internal compiled incrementally
The issue was fixed during refactoring

    #KT-12923 fixed
2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 2e3b3da029 Track changes in generated source files
#KT-12962 fixed
2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 7fe29a7e55 Refactoring: simplify source roots search 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov b13e1b451d Refactoring: use convention mapping for configuring classpath of kotlin tasks
#KT-12658 fixed
    #KT-12750 fixed
2016-07-29 17:56:30 +03:00
Alexey Tsvetkov d55a8f8054 Refactor source configuration for android 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov d36de54aa9 Minor: cleanup 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov d376e76e75 Refactoring: set task properties directly 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 54659fcacf Refactoring: remove extra property to pass stubs directory 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov 92af1e9454 Refactoring: do not use extraProperties to pass kapt options to task 2016-07-29 17:56:30 +03:00
Alexey Tsvetkov c838eed6a3 Refactoring: remove reflection calls 2016-07-29 17:56:30 +03:00