Alexey Andreev
80deebbc2a
Fix configuration of maven test of moduleKind configuration property
2016-07-04 14:56:45 +03:00
Ilya Gorbunov
919c099a95
Minor: make test output less verbose
2016-07-01 18:50:53 +03:00
Ilya Gorbunov
157ed3f8c1
Claim a stream produced from a Sequence having ORDERED property.
...
Add a test verifying that property is respected.
2016-07-01 18:06:54 +03:00
Ilya Gorbunov
22ee3a8dc1
Relax type parameter constraint for Closeable.use and AutoCloseable.use to allow nullable receiver.
...
#KT-12894 Fixed
2016-07-01 18:05:25 +03:00
Ilya Gorbunov
e04873957e
Notes in README about required environment variables to build libraries maven project.
2016-07-01 18:05:24 +03:00
Ilya Gorbunov
dd0ecb5ece
Adjust exposed visibility of platform specific implementations.
2016-07-01 18:05:23 +03:00
Ilya Gorbunov
a45da393b9
Provide access to named groups of regex match result on JDK8.
...
#KT-12753 Fixed
2016-07-01 18:05:22 +03:00
Ilya Gorbunov
25974be3f8
Provide specialized stdlib function implementations depending on current JRE version #KT-8254
2016-07-01 18:05:21 +03:00
Ilya Gorbunov
b16f46d932
Add extensions from kotlinx.support libraries:
...
use for AutoCloseables: #KT-5899,
extensions for java.util.Stream.
2016-07-01 18:04:42 +03:00
Ilya Gorbunov
d6261521ff
Create new artifacts for standard library extensions for JRE7 and JRE8.
...
Set default JDK for kotlin compiler plugin.
Set default JRE path for maven surefire plugin.
Run tests for extension modules on the corresponding JRE.
#KT-8254
2016-07-01 16:49:13 +03:00
Alexey Tsvetkov
d3461d1519
Fix shading of META-INF/services in kotlin-compiler-embaddable
2016-06-30 20:14:21 +03:00
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