Alexey Tsvetkov
fafde1e948
Refactoring: introduce IncReporter to report IC progress
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
e32c19ce4e
Refactoring: extract calculateSourcesToCompile
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
388dd9c2a6
Refactoring: return removed dirty files from calculateSourcesToCompile
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
b4c17dabf4
Refactoring: introduce class ChangedFiles
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
e9d4d85af2
Refactoring: extract parts of IC
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
26373d4952
Refactoring: pass incremental compilation state explicitly
2016-10-28 17:58:10 +03:00
Alexander Udalov
c49c019250
Add option to restore fallback to compiler built-ins + resurrect Maven build
2016-10-26 19:02:31 +03:00
Ilya Gorbunov
1c7196a1fb
Allow to reference internal API in stdlib tests
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
8d76617094
Merge ReversedViews tests in one file as they can all run now in JS.
...
Make SynchronizedLazyValTest jvm-only.
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
badbcd08de
Annotate explicitly stdlib tests, which must be excluded from JS stdlib tests with @JvmVersion, do not use file naming convention, use preprocessor instead.
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
baccac30fb
Annotate explicitly stdlib sources, which must be excluded from JS stdlib with @JvmVersion, do not use file naming convention.
2016-10-26 17:47:15 +03:00
Alexey Tsvetkov
2bf0eb9e69
Fix pom.xml
2016-10-21 16:22:38 +03:00
Alexey Tsvetkov
0af7017836
Introduce common interface for common gradle options
...
This might be useful for future kotlin build scripts
2016-10-21 16:22:38 +03:00
Alexey Tsvetkov
b7d97a3aa2
Do not remove annotations.txt (kapt1) file before kotlin compiler is called
...
#KT-14250 fixed
Before this change the following could happen:
0. Successful build.
1. Only java files are changed.
2. CompileKotlin task starts because java files are also input files for kotlin.
3. annotations.txt file is deleted, but kotlin compiler is not called, so it is not regenerated.
4. Javac fails.
2016-10-21 16:22:38 +03:00
Ilya Gorbunov
c2554bd30e
Use stable kotlin (1.0.x) for kotlin-stdlib-gen to compile with and compile against.
...
Makes it easy for kontributors to run the generator.
2016-10-21 04:35:00 +03:00
Ilya Gorbunov
0ac461927c
Minor: Fix TODOs in stdlib tests
2016-10-18 17:13:17 +03:00
Ilya Gorbunov
68411aaa69
Add instruction how to run binary compatibility validator, share run configuration with its tests
2016-10-18 16:48:09 +03:00
Ilya Gorbunov
e6887ea4e5
Use abstract readonly collections as base classes for implementing collection properties of regex MatchResult
2016-10-14 19:06:25 +03:00
Ilya Gorbunov
703ee6bd78
Have mutable collection interfaces specified explicitly to get rid of platform types in parameter and return types.
2016-10-14 19:06:25 +03:00
Ilya Gorbunov
b6460e6280
binary-compatibility-validator, minor: refactor annotation utilities.
2016-10-14 18:53:54 +03:00
Alexey Tsvetkov
01e0bc8d5e
Ensure task build directory always exist
...
#KT-14253 fixed
2016-10-14 17:33:54 +03:00
Alexey Tsvetkov
d79679e647
Provide a way to force stdout output in Gradle tests
2016-10-14 17:33:54 +03:00
Alexey Tsvetkov
229e63f5c5
Minor: rename file its name is the same as class it contains
2016-10-14 17:33:54 +03:00
Alexey Tsvetkov
a0fa69c000
Do not check the content of JS file in Gradle test
2016-10-14 17:33:54 +03:00
Alexey Tsvetkov
0097e14ba1
Fix test dependencies for gradle integration tests
2016-10-14 15:55:24 +03:00
Dmitry Petrov
d2d8f72ffc
Annotations on type aliases: typealias is not a "default target".
...
Add diagnostic test for annotations on type aliases.
2016-10-13 17:52:21 +03:00
Ilya Gorbunov
0b3fb41eeb
Do not include $DefaultImpls inner classes in public API when they do not contain any public members (i.e. used only as a container to hold synthetic methods with annotations for properties or typealiases)
2016-10-13 09:52:42 +03:00
Ilya Gorbunov
2c9b2652c1
kotlin-maven-plugin: Add apiVersion parameter linked with kotlin.compiler.apiVersion property.
...
Test apiVersion parameter is applied as explicitly and as implicitly inferred from languageVersion.
#KT-14298
2016-10-13 08:37:34 +03:00
Ilya Gorbunov
ea51070446
Refactor: make languageVersion configuration parameter common for jvm and js kotlin maven compiler plugin.
2016-10-13 08:37:33 +03:00
Ilya Gorbunov
a57321dea8
Annotate all new API with SinceKotlin in kotlin-stdlib and kotlin-test
2016-10-13 08:37:30 +03:00
Ilya Gorbunov
a8f381cabc
Annotate with SinceKotlin all in stdlib-jre7 and jre8
2016-10-13 08:37:28 +03:00
Ilya Gorbunov
70c3a0a244
Include new annotations (SinceKotlin, ParameterName) in public API reference.
2016-10-13 08:10:37 +03:00
Ilya Chernikov
ebc8002eb2
Fix output comparison in tests under windows in libraries project as well
2016-10-12 20:29:49 +02:00
Ilya Chernikov
846797ff61
Switch to templates in the separate script runtime
2016-10-12 15:38:52 +02:00
Ilya Chernikov
c2b5c11781
Fix all small and medium-sized issues after review
2016-10-12 15:37:54 +02:00
Ilya Chernikov
e03601317b
Attempt #2 to fix kotlin-script-util test on TeamCity
2016-10-12 15:37:53 +02:00
Ilya Chernikov
3a52c68973
Attempt to fix kotlin-script-util test on TeamCity
2016-10-12 15:37:53 +02:00
Ilya Chernikov
101d85fc0b
Fix binary compatibility test data after adding more templates to the runtime
2016-10-12 15:37:52 +02:00
Ilya Chernikov
10d259771c
Refactor repl and JSR 223 support code, add separate example jars for each type of JSR 223 repl (with tests)
2016-10-12 15:37:52 +02:00
Ilya Chernikov
079fece9b4
Add daemon client jar to libraries project
2016-10-12 15:37:52 +02:00
Ilya Chernikov
439622187f
Move Jsr223 engine from compiler jar to script-util.jar (libraries part)
2016-10-12 15:37:50 +02:00
Ilya Chernikov
fe69185cd4
Refactor script definition and related parts:
...
- simplify script definition interface, convert it to class
- create simple definitions right from base
- refactor (rename and simplify) script definition with annotated template
- simplify usages of script definition in many places
2016-10-12 15:37:50 +02:00
Ilya Chernikov
1a137357e5
Add support for custom script compilation and execution to maven plugin, add simple test, relevant refactorings on the compiler side
2016-10-12 15:37:49 +02:00
Ilya Chernikov
f992f91686
Add kotlin-script-util lib with tests
...
- collection of standard templates and resolvers
2016-10-12 15:37:48 +02:00
Alexander Udalov
167ab1f860
Introduce "-api-version" CLI option
...
The `@SinceKotlin("X.Y.Z")` annotation now hides a particular declaration from
resolution when the API version specified by the `-api-version` option is
_less_ than X.Y.Z. The comparison is performed as for versions in Maven:
MavenComparableVersion is in fact a copy of
org.apache.maven.artifact.versioning.ComparableVersion.
Also support "!API_VERSION" directive in diagnostic tests
#KT-14298 Fixed
2016-10-11 17:46:01 +03:00
Alexander Udalov
8d660c2f6e
Refactor gradle option generation mechanism
...
Ensure there's a statically checked dependency on LanguageVersion and
JvmTarget, so that this information is updated automatically once a new
language version or a JVM target is added
2016-10-11 17:30:15 +03:00
Ilya Gorbunov
a239231c75
Revert dropping inline-only extensions for Throwable, to be able to use runtime of 1.1 with language version of 1.0 which makes mapped builtin members unavailable again.
...
#KT-14213 Fixed
2016-10-11 16:46:14 +03:00
Yan Zhulanow
f15f90a719
Kapt: Support apt options (KT-13984)
...
(cherry picked from commit b566a37)
2016-10-07 16:28:31 +03:00
Yan Zhulanow
49926fda36
Use LightParameter from Kotlin light classes to add an inner class constructor parameter instead of calling addParameter(name, type). The latter tries to load an icon :( (KT-13798)
...
(cherry picked from commit cc86d79)
(cherry picked from commit de55de2)
2016-10-07 16:28:21 +03:00
Denis Zharkov
828ff87db4
Update rendered stdlib public API
...
Many redundant methods were optimized out in the previous commits
2016-10-07 11:59:15 +03:00