Yan Zhulanow
c18bf5088d
Kapt3: Support incremental compilation of Java stubs (KT-15151)
2017-05-04 19:00:42 +03:00
Yan Zhulanow
eba5baa7ff
Kapt3: Add Maven integration test
2017-05-04 18:46:41 +03:00
Anton Bannykh
a71e5abb45
Update KotlinVersion.CURRENT to 1.1.4
2017-05-04 15:24:40 +03:00
Ilya Gorbunov
9953efc66b
Clarify ReentrantReadWriteLock.write behavior regarding upgrade from read to write lock
...
#KT-17704 Fixed
2017-05-03 17:51:14 +03:00
Ilya Gorbunov
ef72371fd7
Add samples for contentToString and contentDeepToString array operations
2017-05-03 17:44:30 +03:00
Marek Langiewicz
934b0b8c38
Fix List.takeLast for lists without RandomAccess
2017-05-03 16:38:15 +02:00
Ilya Gorbunov
8da4839f22
Document IllegalArgumentException thrown from string-number conversion
...
functions when an invalid radix is specified
#KT-17635 Fixed
2017-05-03 17:32:49 +03:00
Alexander Udalov
0624854d5a
Fix compilation of kotlin-gradle-plugin
...
The "ClassReader(InputStream)" constructor is stripped from
kotlin-compiler by proguard, so use the "ClassReader(ByteArray)"
constructor instead
2017-04-29 18:43:58 +03:00
Alexander Udalov
e79fdbe5e8
Gradle: print version loaded from environment's compiler jar
...
And not from the KotlinCompilerVersion class that is accessible in the
current version of kotlin-gradle-plugin, because the version of the
compiler might be different
2017-04-28 20:56:14 +03:00
Alexander Udalov
fcf44af294
Change how kotlinc and tools display their version
...
- Display the Kotlin version in kotlin-gradle-plugin. This is needed
because if "-version" is specified in compiler arguments, the "info"
level of the message printed by the compiler in CLICompiler prevents
it from being displayed by default (unless "--debug" is passed to
Gradle).
- Display the version of JRE the compiler is running on. This will be
helpful to diagnose Java 9 related issues in the future.
- In CLI, also display the executable name (kotlinc-jvm or kotlinc-js)
2017-04-28 20:49:54 +03:00
Alexander Udalov
5bd3716637
Fix compilation of kotlin-maven-plugin and kotlin-script-util
2017-04-28 16:31:11 +03:00
Ilya Gorbunov
8d0eb207e3
Do not hardcode kotlin version in one of maven integration tests
2017-04-27 23:35:18 +03:00
Ilya Gorbunov
71636aec41
Share run configuration to regenerate sources, share vcs and issue tracker settings
2017-04-27 23:34:58 +03:00
Ilya Gorbunov
a50c2ff0a5
Upgrade kotlin gradle plugin used to build libraries to 1.1.2
2017-04-27 21:59:46 +03:00
Yan Zhulanow
20e362e363
Kapt3: Do not generate "options not recognized" for "kapt.kotlin.generated" option (KT-17418)
...
"kapt.kotlin.generated" AP option is always present (and it's the way to say the arbitrary processors about the target directory for generated Kotlin source files).
In this commit, the "fake" empty annotation processor is added to consume the option if no other processor does it.
2017-04-27 18:52:09 +03:00
Ilya Gorbunov
e0a4f9ba76
Rewrite precondition samples and refactor precondition tests
...
Precondition tests are shared for JS target.
Samples do not use assertFailsWith as expression, as it's going to be converted as a special template.
2017-04-21 21:13:25 +03:00
Ilya Gorbunov
2c32bae5ca
kotlin-test: Make assertFailsWith<reified T: Throwable>() common
2017-04-21 20:52:14 +03:00
Ilya Gorbunov
307b132015
kotlin-test: Make assertFailsWith(KClass<T: Throwable>) common
2017-04-21 20:52:12 +03:00
Ilya Gorbunov
ec8ead754f
Run kotlin-test-js tests with kotlin-stdlib-js
...
Rework kotlin-test common tests to make them runnable with qunit.
Change the way how asserter is overridden in js box tests.
Minor: remove unneeded test configs
2017-04-21 20:51:07 +03:00
Ilya Gorbunov
f009e0c665
kotlin-test: Make 'todo { }' function common
2017-04-21 20:50:59 +03:00
Zalim Bashorov
c112542935
KJS: remove unnecessary test runners (mostly for stdlib)
...
Stdlib tests run separately via gradle.
2017-04-20 16:19:05 +03:00
Ilya Gorbunov
2db8714fc5
Fix null values being treated as missing in 'put' method of a specialized string-keyed map
2017-04-19 18:32:47 +03:00
Ilya Chernikov
c91a3f8bf0
Add sam-with-receiver and source-sections compiler plugins to maven
...
rename source-sections compiler plugin jar in the dist (add kotlin- prefix),
according to the agreed naming scheme for the artefacts. (The renaming of the
other plugins should follow.)
in addition configure proguard to retain VirtualFile members, since they
are used in the source-sections plugin
2017-04-19 15:22:15 +02:00
Sergey Igushkin
2360d5f330
Changed to prepending annotation processor path instead of appending it
...
to classpath and existing annotation processors.
2017-04-19 16:06:55 +03:00
Ilya Gorbunov
59dc0f57fc
Clarify copyRecursively behavior in case of a single file.
2017-04-18 21:26:55 +03:00
Shaun Reich
7ebd86725f
Fix FileTreeWalk doc typo/grammar
2017-04-18 21:26:53 +03:00
Ilya Gorbunov
ea18282f4c
Minor: reformat docs to distinguish summary
2017-04-18 21:26:52 +03:00
Ilya Gorbunov
37c3d8f204
Sort out warnings related to inline and library functions in stdlib-js
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
6ae19e03d5
Clean warnings and refactor stdlib tests.
...
Merge RangeJVMTest into RangeTest.
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
cb186aabf9
Another workaround for IDEA shared source root limitation
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
4a5d8534c1
Fix array iterators to adhere to Iterator contract
...
#KT-17453 Fixed
Change expected exceptions in tests.
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
f22375601b
Remove unneeded suppressions
2017-04-18 12:47:11 +03:00
Ilya Gorbunov
8f452ed046
Cleanup warnings in stdlib and generated code
2017-04-18 12:47:04 +03:00
Ilya Gorbunov
6af986cfdd
Refactor serialization tests and move them to test/io package
...
Add tests for singleton deserializing.
2017-04-18 12:46:52 +03:00
Sergey Mashkov
96160606ba
Maven: KT-15050 setup logger so IDEA's core could log error
...
Introduce system property kotlin.compiler.X.enable.idea.logger=true
The reason is that I suspect that the error is somewhere at com.intellij.ide.plugins.PluginManagerCore#loadDescriptorFromJar but unfortunately default logger doesn't log messages at "info" log level so we can't see why exactly does it fail.
Users can enable IDEA's logger to see more details.
2017-04-18 12:31:39 +03:00
Alexander Udalov
7a25af0f2f
Fix NPE caused by KotlinCompileMojoBase if no "Xcoroutines" value is passed
...
NPE was happening in CLICompiler.chooseCoroutinesApplicabilityLevel
2017-04-17 18:40:35 +03:00
Zalim Bashorov
9783a31779
Remove kotlin-reflect.jar dependency from util module and move reflectionUtil.kt closer to "clients"
...
Main goal is get rid of kotlin-reflect.jar from modules what required for minimal compiler.jar which can compile Kotlin only to JS to make it smaller.
2017-04-17 18:18:38 +03:00
Alexander Udalov
027b83a252
Minor, pass coroutines state explicitly in maven plugin
2017-04-17 15:51:43 +03:00
Ilya Gorbunov
723642c9d4
binary-compatibility-validator: depend on required artifacts to ensure they are built.
...
Read dumped declarations lazily in order not to fail on class initialization.
2017-04-17 15:17:02 +03:00
Ilya Gorbunov
94895c4e4d
Clean warnings in binary-compatibility-validator cases
2017-04-17 14:50:07 +03:00
Alexander Udalov
ae1fb16fe8
Fix compilation of kotlin-gradle-plugin
2017-04-17 11:51:08 +03:00
Alexander Udalov
10f2e9d33a
Revert usages of -X arguments to old form in some places
...
We use the old compiler in Gradle build and in GradleFacetImportTest, so
some changes in f4b6db4 should not have been made yet
2017-04-17 11:33:58 +03:00
Alexander Udalov
f4b6db4dc0
Change format of -X arguments to require value after '='
...
Report a warning when an argument is passed in the old form (with the
whitespace)
#KT-17264 Fixed
2017-04-14 20:07:54 +03:00
Sergey Mashkov
a22ed0f7c0
Maven: minor: fix comment
2017-04-14 13:27:08 +03:00
Sergey Mashkov
2521dacc25
Maven: KT-17093 Import from maven: please provide a special tag for coroutine option
2017-04-14 13:27:06 +03:00
Sergey Mashkov
5010047b1b
KT-16283 Maven compiler plugin warns, "Source root doesn't exist"
2017-04-14 13:27:05 +03:00
Sergey Mashkov
40a5e646c6
KT-10028 Support parallel builds in maven
...
mark all the mojos as not thread safe so Maven should never run them in parallel
2017-04-14 13:27:05 +03:00
Sergey Mashkov
307fdd1024
KT-16762 Maven: JS compiler option main is missing
2017-04-14 13:27:04 +03:00
Sergey Mashkov
6de0d79a78
KT-16743 Update configuration options in Kotlin Maven plugin
...
deprecate parameters module and testModule
2017-04-14 13:27:04 +03:00
Sergey Mashkov
de35863b57
KT-16743 Update configuration options in Kotlin Maven plugin
...
add javaParameters configuration parameter
2017-04-14 13:27:03 +03:00