Alexey Tsvetkov
45ec0e364a
Remove Gradle plugin dependency on Apache Commons
...
We have used `commons-lang` to detect
if current OS is a Windows.
`org.apache.commons.lang.SystemUtils` also
tries to parse JDK version in `clinit` and,
as of AC version 2.4, fails on JDK 9.
I preferred to remove the dependency completely
and copy an implementation of `isWindows` from Intellij
platform, because the code is quite simple
and minimizing unnecessary dependencies will help to avoid
compatibility problems in future.
Gradle plugin also declares a dependency on `commons-io`,
but it seems unused, so the dependency is also removed.
#KT-18832 fixed
2017-08-01 19:43:25 +03:00
Nagesh Susarla
b9788bbafd
Close the local.properties file after reading
2017-07-31 15:36:18 -07:00
Alexey Tsvetkov
534db2d45b
Remove old IC: remove experimental cache version
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov
5af9d29cbe
Remove old IC: remove experimental-ic-build.log
...
This commit moves each experimental-ic-build.log
into a corresponding build.log file.
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov
2bd7d12312
Remove old IC: remove IncrementalCompilation.isExperimental
2017-07-31 19:34:58 +03:00
Sergey Igushkin
4923589b38
Fix testAndroidExtensionsManyVariants not using experimental flag
2017-07-31 16:56:06 +03:00
Sergey Igushkin
23ea1a1a60
Push Android Gradle plugin version used in tests to 3.0.0-alpha8
2017-07-31 16:52:48 +03:00
Alexander Udalov
82502e1a8b
Fix compilation of kotlin-script-util
...
Compilation was broken in 46a01ec
2017-07-28 19:26:35 +03:00
Sergey Igushkin
05919244bd
Fix testLogLevelForceGC
2017-07-28 16:39:10 +03:00
Sergey Igushkin
7906ac9348
Fix unresolved rhino dependency in testDce.
2017-07-28 16:39:10 +03:00
Yan Zhulanow
142a64e039
Minor: Fix Gradle integration test compilation, replace .use() with try&finally
2017-07-27 21:22:06 +03:00
Sergey Igushkin
fabcd6b73c
Fix Gradle IT compilation.
2017-07-27 20:44:03 +03:00
Anton Bannykh
e9e81d96a5
Fixed maven multiplatform test
2017-07-27 19:34:14 +03:00
Ilya Gorbunov
ca8bf395c3
Do not create iterator in 'any', 'none', 'all' and 'count' unless necessary
...
#KT-19133 Fixed
2017-07-26 22:42:29 +03:00
Sergey Igushkin
7da6ff78c1
Fix Kapt3 classes not consumed by kotlinCompile tasks from their friend
2017-07-26 20:19:33 +03:00
Yan Zhulanow
826672ea1b
Kapt: Register kapt classes output directory as Java classes directory (KT-19211)
...
This is relevant to pure (non-Android) Java projects and Gradle 4.0+.
2017-07-26 20:19:30 +03:00
Yan Zhulanow
725f51056f
Kapt: Do not use AbstractCompile as a supertype for KaptTask (KT-19179)
...
Gradle sometimes tells that kaptCompile is UP-TO-DATE even when it's not true, so the annotation processing step is silently skipped.
Looks like replacing `mapSource {}` with an explicit getter or with manual `source()` invocation does not fix the problem.
This looks like a bug in Gradle appeared since 3.0. The test from this commit works with Gradle 2.14.1.
2017-07-26 20:19:29 +03:00
Yan Zhulanow
53fda33499
Kapt: 'kaptKotlin' task should be invoked only when all task dependencies from kapt configuration is built (KT-19178)
2017-07-26 20:19:28 +03:00
Yan Zhulanow
c2be771486
Android Extensions: Support defaultCacheImplementation in Gradle
2017-07-26 20:19:27 +03:00
Yan Zhulanow
98a2506eb0
Android Extensions: Add kotlin-android-extensions-runtime only if experimental flag is enabled
2017-07-26 20:19:25 +03:00
Alexander Udalov
2f99f6ad34
Refactor AnalysisFlags and their support in IDE
...
* Support flags with any value (not just Boolean)
* Support all flags by parsing arguments in KotlinFacetSettings, instead
of manually listing known flags
#KT-19210 Fixed
2017-07-26 11:45:24 +03:00
Alexander Udalov
f313001b2d
Update to jline 3.3.1 and jansi 1.16
...
Note that the history file name was changed (.kotlin_history ->
.kotlinc_history) because the history is now stored in a different
(incompatible) format.
#KT-11369 Fixed
2017-07-25 11:10:45 +03:00
Ilya Gorbunov
ec5c15f190
test-dagger-maven-example: kotlin version comes as a parameter
2017-07-21 20:15:34 +03:00
Ilya Gorbunov
d8ea3ddcc8
Cleanup poms of projects migrated to gradle
2017-07-21 20:15:34 +03:00
Pavel V. Talanov
008c27d547
Compiler build depends on kotlinx-coroutines-core
2017-07-19 12:28:43 +03:00
Roman Elizarov
9f0810f723
Pull implementations up from AbstractCoroutineContextElemenet
...
Fixes KT-18671
2017-07-19 08:59:43 +03:00
Alexander Udalov
36001ff931
Do not allow to access compiler internals in .kts scripts
...
Set parent class loader to null explicitly instead of the system class
loader
2017-07-18 20:10:05 +03:00
Yan Zhulanow
4851a83a83
Android Extensions: put new functionality under the flag
2017-07-18 18:10:30 +03:00
Yan Zhulanow
77eafb9716
Kapt: Map kaptGenerateStubsKotlin task classpath properly, ensure the destination for compileKotlin isn't in it (KT-18799)
2017-07-18 18:10:29 +03:00
Yan Zhulanow
83f9835e00
Android Exensions: Add kotlin-android-extensions-runtime dependency automatically in Gradle plugin
2017-07-18 18:10:28 +03:00
Yan Zhulanow
6e1dd08fbb
Android Extensions: Add runtime library with LayoutContainer and its options
2017-07-18 18:10:20 +03:00
Yan Zhulanow
f4acf404ca
Android Extensions: Support Android variants and library dependencies (KT-14086, KT-16934)
2017-07-18 18:08:31 +03:00
Yan Zhulanow
8e9a62d553
Kapt: Add gradle warnings for Android projects
...
1. When the old kapt (aka kapt1) is used
2. (for Android projects) When Kotlin plugin is applied but annotationProcessor (Java-only) dependencies are found
2017-07-18 18:08:29 +03:00
Alexander Udalov
b2b492447f
Maven plugin: initial support for Java 9 modules
2017-07-12 18:58:36 +03:00
Alexander Udalov
848edc14cb
Maven plugin: fix warnings, update copyrights
2017-07-12 18:58:35 +03:00
Yan Zhulanow
b99007961f
NoArg: Do not invoke initializers by default. Require "invokeInitializers" option to be set explicitly (KT-18667, KT-18668)
2017-07-12 00:17:24 +03:00
Alexey Andreev
811da2e285
Compile stdlib-js with source map
2017-07-09 14:22:08 +03:00
Alexander Udalov
55468735df
Rename -module argument to -Xbuild-file
...
To prevent confusion with Java 9 module-related arguments
#KT-18754 Fixed
2017-07-06 17:03:25 +03:00
Sergey Igushkin
c4e7f1aa97
Fix parsing Gradle version with zero
...
(cherry picked from commit 732972c)
2017-06-30 20:44:59 +03:00
Sergey Igushkin
40a8bbf24d
Fix friend paths not configured correctly with separate classes dirs
...
(cherry picked from commit d5ee659)
2017-06-30 20:44:49 +03:00
Sergey Igushkin
1174c7bdd9
Add sourcesJar and javadocJar to artifacts of gradle-tools projects.
...
(cherry picked from commit 450345b)
2017-06-29 20:59:36 +03:00
Sergey Igushkin
a4be282074
Add Gradle Plugin Portal publication to the buildscripts
...
Add option to disable signing (-PnoSign), to be used when publishing
pre-built artifacts
Add option to define specific version for publishing, to be used when
publishing test versions
(cherry picked from commit dcd55e9)
2017-06-29 20:59:36 +03:00
Sergey Igushkin
d1bddb6250
Fix disabling IC not applied to kapgGenerateStubsKotlin tasks
...
Issue #KT-18647 Fixed
(cherry picked from commit ffb656a)
2017-06-29 18:44:00 +03:00
Sergey Igushkin
a9cad7f112
Add a test for project.buildDir lazy evaluation
...
(cherry picked from commit ab0f9cd)
2017-06-29 18:42:50 +03:00
Nikita Skvortsov
b2cdb0d63d
evaluate and use buildDir as late as possible
...
(cherry picked from commit a2c7f80)
(cherry picked from commit 5643fa1)
2017-06-29 18:41:53 +03:00
Sergey Igushkin
351f810797
Add tests for separate classes dirs
...
(cherry picked from commit b07d79b)
2017-06-29 18:31:53 +03:00
Sergey Igushkin
700b162233
Implemented separate classes dirs support in the Gradle plugins.
...
Issue #KT-18495 Fixed
Issue #KT-18544 Fixed
(cherry picked from commit e25f0fd)
2017-06-29 18:31:23 +03:00
Sergey Igushkin
ae47c59dc9
Pass freeCompilerArgs unchanged to the compiler, without parsing them
...
with the compiler loaded along the Gradle plugin.
Issues: #KT-17618 Fixed
(cherry picked from commit 44f7428)
2017-06-29 18:27:18 +03:00
Alexey Andreev
479148f7e0
Run JS DCE gradle task in a separate process
2017-06-29 10:32:30 +03:00
Alexey Andreev
cfbb9209a7
Add JS DCE gradle plugin
2017-06-29 10:32:30 +03:00