Ilya Gorbunov
c5a208f3eb
Rearrange stdlib unit tests across packages.
...
Rearrange JS stdlib unit 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
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
Alexey Tsvetkov
af9f6d96bb
Change version to 1.1-SNAPSHOT
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
9214798613
Increase daemon test memory limit again
...
It is still more strict than it was before (before each test build could grow < 2500 kb, now < 300 kb on average of 10 runs)
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
10b9be9f51
Fix collecting source retention annotations
...
#KT-12187 fixed
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
cac49b6609
Add class stubs dir to stub generation task classpath
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
8d189bae55
Refactoring: rename javaAptSourceDir->hackAnnotationDir
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
cb94936e51
Refactoring: rename AnnotatedElementDescriptor->AnnotatedElement
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
6dd388d0f0
Exclude compiled files when compiling incrementally
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
f7a665d0d2
Fix incremental compilation with kapt generating stubs
...
Changes:
* map incremental property to compile kotlin after java task
* when generating stubs compile kotlin task should not remove or copy classfiles
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
853b15ee98
Add kapt incremental tests
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
fe6e69ff89
Update kapt annotations file incrementally
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
c21693b0d0
Serialize KotlinAnnotationProvider
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
33dc792bf9
Minor: extract constant
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
3ef21a941c
Refactoring: make AnnotatedElementDescriptor hierarchy sealed
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
26781bc139
Pass reader as param
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov
e0afb94628
Make fun local since it's bound to outer function semantics
2016-05-11 20:41:48 +03:00