Alexey Tsvetkov
6c4f3df851
Remove intellij-core usages from kotlin-gradle-plugin-integration-tests
...
We can use only relocated intellij-core from kotlin-compiler-embeddable.
Non-source usages do not resolve in IDE (which also breaks debugger).
2018-02-02 15:40:11 +03:00
Alexey Tsvetkov
8f144fc57a
Fix red code in IDE in kotlin-gradle-plugin-integration-tests
2018-02-02 15:40:10 +03:00
Alexey Tsvetkov
7c329b59b6
Shade test jars from compiler used in Gradle tests
...
This fixes `VerifyError` for all integration tests calling
`KotlinTestUtils.findAndroidSdk()`.
The exception was thrown because `:kotlin-gradle-plugin-integration-tests`
was depending on both relocated intellij-core (from kotlin-compiler-embeddable)
and non-relocated intellij-core (transitevely through tests jars from compiler).
A call to `findAndroidSdk()` was triggering classloading
for `KotlinTestUtils` which had bytecode references to
`org.jetbrains.kotlin.idea.KotlinLanguage` loaded from the embeddable compiler
and to `com.intellij.lang.Language` loaded from non-relocated intellij-core.
`KotlinLanguage` from the embeddable compiler was a subclass of relocated
`org.jetbrains.kotlin.com.intellij.lang.Language` thus it was not
assignable to `com.intellij.lang.Language` causing `VerifyError`.
The solution is to create relocated jar combining the necessary test jars
from the compiler.
2018-02-02 15:40:10 +03:00
Alexey Tsvetkov
7cba035f80
Ensure tasks using android sdk or android jar have proper dependencies
...
A test task, that uses android dependency but does not depend on
a corresponding configuration, would fail when it was run after
'clean' task.
I've extracted 'useAndroidSdk', 'useAndroidJar' extensions
making it harder for a developer to forget to set up task dependencies.
2018-02-02 15:40:10 +03:00
Alexander Udalov
5338df6960
Do not depend on Shadow plugin in subprojects
...
Since buildSrc depends on the Shadow plugin, it's already in the
classpath of all build scripts
2018-02-01 19:38:31 +01:00
Alexey Tsvetkov
29d2679e8d
Do not configure dist task for every published module
...
This change avoids compiling kotlin-compiler-embeddable,
kotlin-gradle-plugin, and other gradle plugins,
when running `./gradlew dist`
2018-02-01 17:39:55 +03:00
Ilmir Usmanov
18c03f94f8
Move coroutineContext to correct package
...
from kotlin.coroutines.experimental.instrinsics to kotlin.coroutines.experimental
#KT-22400
2018-02-01 13:18:32 +03:00
Vyacheslav Gerasimov
3e34b95610
Use KotlinTestUtils.findAndroidSdk() in BuildCacheRelocationIT
2018-01-30 17:06:18 +03:00
Vyacheslav Gerasimov
ca6889b4c6
Fix build script for kotlin-gradle-subplugin-example
2018-01-30 17:06:17 +03:00
Ilya Chernikov
fbbece3c86
Fix publishing problem
2018-01-30 17:06:13 +03:00
Ilya Chernikov
7e21573cf4
Convert the rest of the project to intellij repo prepared in buildSrc
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
46be5e25be
Rewrite android sdk dependencies to avoid config-time tasks execution
2018-01-30 17:06:12 +03:00
Ilya Chernikov
a6f8db5d02
Fix script-util tests
2018-01-30 17:06:12 +03:00
Ilya Chernikov
c153a386ab
Fix tests
2018-01-30 17:06:11 +03:00
Ilya Chernikov
a4f28cd94f
Make all dependencies to idea sdk intransitive
2018-01-30 17:06:11 +03:00
Ilya Chernikov
0b63e11ea8
Replace android sdk dependencies with custom project build, cleanup update_dependencies.xml
2018-01-30 17:06:11 +03:00
Ilya Gorbunov
233376eef0
Improve min/max specialization for longs and 3-arg overloads in JS
2018-01-25 21:41:18 +03:00
Ilya Gorbunov
2da9f12bc5
Inline findAnyOf(chars) into indexOfAny/lastIndexOfAny
...
This helps to reduce allocation count
#KT-22042
2018-01-25 21:37:22 +03:00
Ilya Gorbunov
32b68ae1d5
Rearrange platform specialized functions
...
Place them according to their operation to ArrayOps and Filtering.
2018-01-24 02:10:05 +03:00
Ilya Gorbunov
eda8bbacb3
Remove obsolete JvmVersion annotation from generated functions
...
These functions are already generated in jvm-only file
2018-01-24 02:10:01 +03:00
Sergey Igushkin
20c4775da0
Remove repository.jetbrains.com mirror of Maven Central in libraries.
2018-01-23 23:41:39 +03:00
Sergey Igushkin
0c78a2c026
Remove some of the remaining mentions of repository.jetbrains.com
2018-01-23 23:35:50 +03:00
Alexander Udalov
f516667640
Exclude META-INF/services from kotlin-reflect-sources.jar
2018-01-23 17:11:20 +01:00
Alexander Udalov
3bf5f44b9d
Exclude .proto files from kotlin-reflect.jar
...
#KT-22459 Fixed
2018-01-23 17:11:09 +01:00
Ilya Gorbunov
6b9520ec73
KT-16661 Simplify String.split a bit more
...
Check that limit is reached only once in a loop, move nextIndex check to the end of loop.
2018-01-23 13:29:35 +03:00
Vsevolod
510e17246f
KT-16661 Simplify Strings#split
...
Do not search for next occurrence if limit is reached.
2018-01-23 13:29:29 +03:00
Vsevolod
2805371bdc
KT-16661 Provide fast-path for Strings#split with single delimiter
...
Optimize single delimiter split when no matches is found:
Return listOf() of single element instead of adding 'this' to result
because underlying array in ArrayList is created lazily and
by default its size is 16.
Pre-size resulting list in split when limit is known.
2018-01-23 13:29:05 +03:00
Anton Bannykh
ff00831109
JS: minor fixes in kotlin-test-js-it
...
Jasmine version 2.6.0 doesn't support Promise-based
asynchronous tests.
Also the error message for an unexpected test result was incorrect.
2018-01-19 20:16:31 +03:00
Ilya Gorbunov
40aa2280a5
Replace .. with until or indices where appropriate
...
Replace indices.reversed() with lastIndex..0 as it is not optimized in JS yet
2018-01-19 19:53:09 +03:00
Sergey Igushkin
c8900d672f
Update Gradle plugins build instructions
2018-01-19 12:58:39 +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
Vyacheslav Gerasimov
e2b83aecd7
Fix publishing to Gradle plugin portal
2018-01-17 15:33:15 +03:00
Anton Bannykh
7b0070ea62
Promise-based async integration test for kotlin-test-js
2018-01-17 14:46:13 +03:00
Vyacheslav Gerasimov
f86b77083f
Add sources and javadoc to kotlin-annotations-android
2018-01-16 21:19:46 +03:00
Yan Zhulanow
a85b4ddb0f
Kapt: Clear stubs directory on non-incremental stub generation (KT-21735)
2018-01-15 12:39:25 +09:00
Anton Bannykh
c6d7ffb3eb
JS DCE: drop unknown file report severity to WARNING
...
*.kjsm and other files might be received when FileCollection is
used in Gradle as a dependency.
Example: `testCompile project(":$coroutines_core").sourceSets.test.output`
(a popular-ish solution to introduce dependencies between tests)
2018-01-12 20:00:34 +03:00
Ilya Gorbunov
6197c5bf7f
Add sample for coerceIn with floating point range
...
#KT-20357
2018-01-11 09:05:28 +03:00
Ilya Gorbunov
8fc83e3ff5
Add samples for coerceIn, coerceAtLeast, coerceAtMost for comparable types
...
#KT-20357
2018-01-11 09:05:28 +03:00
shiraji
17573a3c21
Add samples for coerceIn
...
#KT-20357
2018-01-11 09:05:28 +03:00
shiraji
4559da9848
Add samples for coerceAtMost
...
#KT-20357
2018-01-11 09:05:28 +03:00
shiraji
db607e231c
Add samples for coerceAtLeast
...
#KT-20357
2018-01-11 09:05:27 +03:00
kenji tomita
1db0e5c23e
Add samples for reversed list views
...
#KT-20357
2018-01-11 09:05:27 +03:00
AdamMc331
2fc26ba08f
Added samples for property delegates as part of KT-20357.
2018-01-11 09:05:27 +03:00
Ilya Gorbunov
c8bd623d69
Samples: add some operations to do with the constructed ranges
2018-01-10 15:32:51 +03:00
kenji tomita
4cb2b12f01
Add samples for range construction operators
2018-01-10 15:32:50 +03:00
Andre Perkins
31d650a041
Add sample for emptySet
2018-01-10 15:32:50 +03:00
Jake Wharton
11696ac4c0
Implement String.toBoolean() for JS.
...
#KT-16348
2018-01-10 15:32:49 +03:00