Sergey Igushkin
ff1c5ad793
Merge pull request #1260 from JetBrains/kotlinx.serialization.patches/gradle
...
Support for gradle subplugins in Kotlin2JS compilation
2017-09-01 01:03:37 +03:00
Sergey Igushkin
e1924e0d2f
(minor) Modify warning logic for separate classes dirs opt-out flag
...
(cherry picked from commit 0dfe1a1)
2017-08-29 14:39:17 +03:00
Sergey Igushkin
0e28d612e7
Add a test for the opt-out flag for disabling separate classes directory
...
(cherry picked from commit 393966d)
2017-08-29 14:39:17 +03:00
Sergey Igushkin
0263919dbd
Provide an opt-out flag for separate classes dirs with Gradle 4.0+
...
Issue #KT-19774 Fixed
(cherry picked from commit 2aa6f5a)
2017-08-29 14:39:17 +03:00
Alexey Tsvetkov
10feac9402
Remove CacheVersionChangedIT#testExperimentalCacheVersionChanged
...
experimental-format-version.txt was removed recently.
See also 534db2d45b
2017-08-29 04:28:09 +03:00
Alexey Tsvetkov
8e10a22aab
Use correct task name in KaptIncrementalIT test
2017-08-29 04:28:09 +03:00
Alexey Tsvetkov
66a77c7ec2
Fix Gradle IC cache version checking
2017-08-29 04:28:09 +03:00
Alexey Tsvetkov
b54414d628
Implement Gradle JS IC support
...
#KT-19956 fixed
To try the experimental JS IC add
'kotlin.incremental.js = true' to a 'local.properties'
or 'gradle.properties' file in Gradle project's root.
2017-08-29 04:23:02 +03:00
Alexey Tsvetkov
3ad5e78d77
Extract common caches
2017-08-29 02:24:36 +03:00
Leonid Startsev
749a574234
Support for gradle subplugins in Kotlin2JS compilation
...
Because ServiceLoader can't check generic argument of
KotlinGradleSubplugin in runtime, we have to manually check the type in
`isApplicable`.
2017-08-24 17:26:01 +03:00
Sergey Igushkin
d5f0607cef
Add tests for java-library support.
2017-08-21 17:21:12 +03:00
Sergey Igushkin
1848bc1840
Support java-library plugin: register Kotlin output for consumers
...
Issue #KT-18497 Fixed
2017-08-21 17:21:03 +03:00
Sergey Igushkin
bf98e26bc2
Fix nullable javaPackagePrefix used as @Input, resulting in build failure
2017-08-14 18:59:17 +03:00
Sergey Igushkin
7986250dbe
Add a test for javaPackagePrefix
2017-08-14 16:13:48 +03:00
Sergey Igushkin
192d569e54
Support Java package prefix in Gradle plugin
...
Issue #KT-17150 Fixed
2017-08-14 16:13:13 +03:00
Sergey Igushkin
3d6622ae1b
Fix ExecutionStrategyJsIT failing due to platform-dependent fileTreeWalk
2017-08-14 15:05:55 +03:00
Sergey Igushkin
cd40968b72
Fix tests failing due to dev builds bundled into Gradle. Push AGP to beta.
2017-08-11 20:22:41 +03:00
Sergey Igushkin
6cd409d379
Fix tests assuming '_main' in default module names
2017-08-11 19:56:20 +03:00
Sergey Igushkin
80131d8359
Fix generate stubs task not being assigned a source set name
2017-08-11 13:38:22 +03:00
Sergey Igushkin
b938206234
Add @Input to moduleName, to incorporate it into the up-to-date checks
2017-08-10 21:23:07 +03:00
Sergey Igushkin
84e1e9f8aa
Change default module name from project.name to archivesBaseName;
...
Get rid of `_main` for the main module.
Issue #KT-17355 Fixed
2017-08-10 21:23:07 +03:00
Sergey Igushkin
52f923c5ff
Fix internals of an android-library not accessible in its androidTest
...
Issue #KT-19370 Fixed
2017-08-07 20:33:18 +03:00
Alexey Andreev
a4551fb0fb
Fix infinite loop during continuous Gradle build including JS DCE
...
It's basically a workaround fox bug in Gradle.
See https://github.com/gradle/gradle/issues/2651
2017-08-07 16:36:57 +03:00
Sergey Igushkin
71878b2218
Merge pull request #1225 from nageshs/master
...
Close the local.properties file after reading
Issue #KT-19397 Fixed
2017-08-07 16:07:51 +03:00
Sergey Igushkin
0cfac71efe
(minor) Improve readability of pluginMarkers.gradle, fix indent in file
...
(minor) Clarify the comment on the setUpSeparateArtifact block
2017-08-07 14:33:35 +03:00
Sergey Igushkin
999db0bc80
Add a test for plugins DSL
2017-08-07 14:32:41 +03:00
Sergey Igushkin
8fd508566a
Add Gradle plugin marker artifacts for the Gradle plugins.
...
This allows for the Gradle plugins DSL to resolve the plugins from
a custom repository.
https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_markers
2017-08-07 14:17:43 +03:00
Alexey Sedunov
aed9d3899e
Misc: Fix compiler argument usages after refactoring
2017-08-03 19:59:53 +03:00
Yan Zhulanow
3d7d1b20ab
Ensure there won't be the same classpath entries in the resulting classpath
2017-08-02 03:36:57 +03:00
Bill Collins
9a40e9b96d
Don't overwrite plugin classpaths detected earlier for annotation processing. Fixes #KT-18022
2017-08-02 03:36:56 +03:00
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