Commit Graph

2562 Commits

Author SHA1 Message Date
Alexey Andreev 496539d101 KT-3008 Add module kind attribute to Maven plugin. Fix tests from libraries subproject 2016-06-27 15:33:26 +03:00
Denis Zharkov 2578fc3344 Do not generate mutable collection stub methods in interfaces
#KT-12359 Fixed
2016-06-24 16:37:19 +03:00
Yan Zhulanow a434055b55 Load Gradle subplugin artifacts from the root project buildscript classpath as well (KT-11885)
(cherry picked from commit b54b0da)
2016-06-24 15:10:19 +03:00
Ilya Gorbunov 71476d5d43 Minor: remove unused commonArgs 2016-06-23 22:47:47 +03:00
Ilya Gorbunov 7c5c4610e8 Rename -jdk compiler option to -jdk-home (jdkHome), add jdk path validation. 2016-06-23 22:47:45 +03:00
Ilya Gorbunov 13016cae93 Add tests for 'jdk' compiler option for CLI, maven and gradle. 2016-06-23 22:46:07 +03:00
Ilya Gorbunov 644df89dc9 CLI: Allow to specify JDK for classpath building with '-jdk' compiler argument.
Maven: support jdk parameter linked to kotlin.compiler.jdk property.
Gradle: support jdk compiler option.
2016-06-23 22:46:07 +03:00
Ilya Gorbunov 1157e052ee Maven: support languageVersion parameter, linked to property kotlin.compiler.languageVersion. 2016-06-23 22:46:07 +03:00
Ilya Gorbunov 848599e940 Maven and Gradle tests for jvmTarget parameter. 2016-06-23 22:46:07 +03:00
Ilya Gorbunov 3f3a3820b8 Maven: support jvmTarget parameter in Maven, linked to property kotlin.compiler.jvmTarget.
Gradle: support jvmTarget compiler option.
2016-06-23 22:46:07 +03:00
Alexey Tsvetkov 8fe63cdfaf Prevent usage of deprecated constructor
This removes warning with gradle 2.14.
Before 2.14 constructor was removed, then it was returned and deprecated.

    #KT-12786 fixed
2016-06-21 20:22:53 +03:00
Alexey Tsvetkov 34181402fb Fix CCE when creating kotlin-js task in gradle plugin 2016-06-21 20:22:53 +03:00
Ilya Gorbunov c5a208f3eb Rearrange stdlib unit tests across packages.
Rearrange JS stdlib unit tests.
2016-06-18 16:50:32 +03:00
Ilya Gorbunov d266f546f4 Remove obsolete and not relevant to stdlib tests 2016-06-18 16:50:32 +03:00
Alexey Tsvetkov d4494d605a Exclude resources dir from surefire test search 2016-06-17 20:00:46 +03:00
Alexey Tsvetkov 5e21af7bdd Ensure direcory for class file stubs always exists
This fixes the warning "classpath entry does not exist"

    #KT-12352 fixed
2016-06-15 20:28:47 +03:00
Alexey Tsvetkov af10c13ef1 Set friend modules for android gradle test tasks
This fixes the following issues:
1. When product flavors were used, android unit tests could not refer
to internal symbols from main source set.
2. Android instrumentation tests could not refer
to internal symbols from main source set

    #KT-11166 fixed
2016-06-15 20:28:47 +03:00
Alexander Udalov 99f4c7b6e7 Fix error in kapt on enum constructors with parameters
Do not skip writing the fictitious 'java/lang/Synthetic' annotation in KAPT
mode, because its absence makes ASM confuse indices of enum constructor
parameters (it cannot figure out that there are two additional parameters, name
and ordinal)

 #KT-12694 Fixed
2016-06-14 22:06:45 +03:00
Denis Zharkov f1b0204ffe Fix public API test data after Continuation introduction 2016-06-09 17:57:15 +03:00
gandrianakis 83e97d272e Small grammar fixes for documentation of default value handling related methods for Map 2016-06-08 21:45:24 +03:00
Alexey Tsvetkov 5e550a1280 Minor fixes of android test project 2016-06-07 16:51:17 +03:00
Jake Wharton c199fd25e6 Add support for the Android test plugin.
#KT-11767 fixed
2016-06-07 16:51:17 +03:00
Alexey Tsvetkov 5fead88ced Shade in kotlin-android-extensions 2016-06-07 14:42:39 +03:00
Alexey Tsvetkov 23353facca Shade in kotlin-compiler-embeddable
Now kotlin gradle plugin is compatible with android gradle plugin 2.2

     #KT-12478 fixed
     #KT-12431 fixed
     #KT-12406 fixed
2016-06-07 14:42:35 +03:00
Alexander Udalov 2c516f18a0 Add tests on "-language-version" usage from Ant, Maven, Gradle 2016-05-26 22:15:39 +03:00
Alexander Udalov e5d64d316d Fix kotlin-maven-plugin compilation 2016-05-26 14:14:17 +03:00
Alexander Udalov 3c81bb4bfc Add MessageCollector#hasErrors, get rid of MessageSeverityCollector
Also fix duplicated wrapping of a message collector into a message severity
collector (in CLICompiler and in the beginning of doExecute in
K2JVMCompiler/K2JSCompiler)
2016-05-26 11:47:30 +03:00
Alexander Udalov 3ca77de924 Remove traces of old compiler plugin architecture
It was retired with the deprecation and subsequent removal of the old KDoc, and
is now unused
2016-05-26 11:47:30 +03:00
Alexander Udalov 0fe39a186e Simplify public methods of KotlinToJVMBytecodeCompiler
Pass as much as possible in the single CompilerConfiguration instance instead
of in separate function parameters. Add corresponding keys to
JVMConfigurationKeys.

Re changes in compileModules: since output directory (stored now under the key
OUTPUT_DIRECTORY) is different for each module, the configuration of the whole
project is no longer applicable when compiling individual modules. Thus we copy
the project configuration for each module and add the output directory value
2016-05-26 11:47:30 +03:00
Ilya Gorbunov 9c91b120c9 Force garbage finalization and another gc run in gradle tests. 2016-05-25 17:12:46 +03:00
Alexander Udalov 5bf14c106a Delete unused ParentLastURLClassLoader 2016-05-23 20:00:51 +03:00
Alexander Udalov 6c0ff40197 Move JVMConfigurationKeys to frontend.java
Similarly to K2JVMCompilerArguments, they will soon be needed in the IDE code.
Move COMPILER_JAR_LOCATOR to CLIConfigurationKeys because it's used both in JVM
and JS, and only in CLI. Other keys, non-relevant in the IDE, may be moved out
soon as well, such as incremental compilation components
2016-05-23 14:47:00 +03:00
Alexander Udalov 2200bfcc85 Simplify ImplementationBodyCodegen#generateToArray
- don't do anything for interfaces because there's no point in generating
  abstract methods which are already abstract in supertypes
- don't use getDeclaredFunctionByRawSignature, check function signature
  manually instead
- don't use isOrOverridesSynthesized because 'toArray' is never synthesized
2016-05-20 00:54:18 +03:00
Ilya Gorbunov fda9797dc4 Do not deploy anymore kotlin maven plugin tests and build common test utilities to maven central 2016-05-19 05:31:18 +03:00
Ilya Gorbunov bdf80ec747 Sanitize escape sequences when verifying maven output 2016-05-19 05:31:15 +03:00
Ilya Gorbunov 7f5b586e3f Specify kotlin snapshot version in maven plugin integration tests only once. 2016-05-19 05:31:08 +03:00
Alexey Tsvetkov 07adf65f70 Minor: add repository path for android test 2016-05-18 15:24:27 +03:00
Alexey Tsvetkov a36e3a47ed Keep order of parsed annotations 2016-05-18 15:24:21 +03:00
Alexey Tsvetkov 65df1debe0 Minor: fix downloading sdk in test 2016-05-18 15:24:17 +03:00
Alexey Tsvetkov b4d47df52b Avoid cache corruption on compile error
#KT-11874 fixed
2016-05-18 15:24:13 +03:00
Sergey Mashkov 09caa65806 KT-12074 Building Kotlin maven projects using a parent pom will silently fail
integration tests
2016-05-18 14:47:17 +03:00
Sergey Mashkov 2d03a5a106 Maven: add maven plugin multimodule test 2016-05-18 14:47:16 +03:00
Sergey Mashkov 77df2e07ad KT-12074 Building Kotlin maven projects using a parent pom will silently fail
We should consider module's basedir if there is relative source directory specified for the execution
2016-05-18 14:47:16 +03:00
Ilya Gorbunov 5ba8046b48 Change memory growth assertions in testKotlinOnlyDaemonMemory: ensure that the maximum of the used memory established after several first builds doesn't raise significantly in the subsequent builds. Current constraint is 500K per 10 builds which gives 50K per build at average. 2016-05-18 01:45:37 +03:00
Sergey Mashkov 3710520549 Maven: fix integration tests 2016-05-17 18:17:43 +03:00
Mikhael Bogdanov 2d185dc7cf Public api update after adding LocalVariableReference and MutableLocalVariableReference 2016-05-16 17:36:35 +03:00
Yaroslav Ulanovych de94d5c414 Fix KT-11839 maven goal to execute kotlin script 2016-05-15 16:08:55 +02:00
Ilya Gorbunov 9bfb226948 Drop inline-only extensions and hide non-inline-only ones that are available now as mapped methods of mapped builtins.
#KT-10887 Fixed
2016-05-13 18:14:52 +03:00
Alexander Udalov b7581b35c9 Add empty source jars to kotlin-build-common Maven artifacts
Maven Central requires all artifacts to have sources and javadocs
2016-05-12 23:48:03 +03:00
Ilya Gorbunov 15dcd3d9f9 Add tests for deserialization of collections persisted with kotlin 1.0 2016-05-12 21:20:54 +03:00