Ilya Chernikov
d2ba25e758
Fix script util test
2016-11-10 23:37:09 +01:00
Denis Zharkov
da5c81448b
Add CoroutineImpl to rendered public API
2016-11-09 12:25:31 +03:00
Ilya Gorbunov
8feaaf4df0
Allow to annotate generated API with SinceKotlin and annotate new array functions.
2016-11-08 18:08:59 +03:00
Ilya Gorbunov
dceec89572
JS: Array.toString is const, Array.contentToString is shallow, Array.contentDeepToString is deep and self-reference aware
...
#KT-13582
2016-11-08 17:23:45 +03:00
Ilya Gorbunov
f3da656d6e
contentEquals, contentHashCode, contentToString: Add js implementation and tests
...
#KT-13582
2016-11-08 17:23:45 +03:00
Ilya Gorbunov
a868eecb1a
Introduce contentEquals/HashCode/ToString for Arrays. Different methods for deep equals/hashCode/toString rather than overloads with a parameter, because most of the time it would be constant, and make these methods inline-only.
...
Make `contentEquals` infix function.
Add docs.
#KT-13582
2016-11-08 17:23:45 +03:00
Ilya Gorbunov
ab2facf030
Remove special source generation for js stdlib, use same template, rename generated file.
2016-11-08 17:23:45 +03:00
Alexander Udalov
3db459c1d8
JS: drop Collections.reverse and java.util.Collections altogether
2016-11-07 12:27:54 +03:00
Alexander Udalov
30a7790dca
Minimize references to java.util.Collections in stdlib sources
...
Only three usages are left in platform-independent code: in reverse, sort and
sortWith for mutable lists
2016-11-07 12:20:14 +03:00
Alexander Udalov
b52f67132e
Fix some warnings in JS-specific stdlib sources
2016-11-07 12:20:14 +03:00
Denis Zharkov
77e2b12566
Add kotlin.DslMarker to binary public API
2016-11-03 17:55:41 +03:00
Ilya Gorbunov
adaad58cc7
Add required builtins when building tests. Either as reference to kotlin-runtime, or resort to those from the compiler with the -Xadd-compiler-builtins argument.
2016-10-31 22:03:16 +03:00
Alexey Tsvetkov
2ffb0abb59
Fix caches closing/flushing when IC builds non-incrementally
2016-10-28 23:55:03 +03:00
Alexey Tsvetkov
49bf1e5917
Fix forcing java to compile if kotlin classes are compiled
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
fa6ed71fbd
Fix running gradle tests on windows
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
2c1699bc89
Minor: remove js-library dependency from jvm module
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
7642314780
Always flush caches
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
151cf7d073
Gradle IC: support multifile classes
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
f25d948b3f
Gradle IC should fail if duplicating class is added
...
#KT-14554 fixed
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
67b3d54b37
In case of IC failure rebuild all files since last build
...
Before this change only files from last iteration were rebuilt.
It is correct and optimal, but there are many diffs with JPS/Gradle
logs.
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
7c16d086aa
Groundwork for using IC without Gradle
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
7c1ebba57a
Minor: do not print index in parametrized test name
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
6191fd87ec
Minor: shorten references after move
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
68a7d88673
Refactoring: reorder IncrementalJvmCompilerRunner constructor parameters
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
3fabe6e4a7
Minor: update copyright in Gradle plugin
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
4a48c30f02
Cleanup: optimize imports in Gradle plugin
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
4ea9216672
Minor: replace File::isFile with File::exists
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
b0411de5c6
Minor: make Rebuild object
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
417f4f821b
Minor: remove duplicated logger utils
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
368e48780e
Refactoring: move IC classes into separate package
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
3bcd6e9a93
Refactoring: do not pass properties as parameters
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
c283515922
Refactoring: pass classpath and destination in K2JVMCompilerArguments
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
90dbf6c5fc
Refactoring: delegate IC files management to IncrementalJvmCompilerRunner
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
d569651099
Refactoring: split GradleMessageCollector and remove Gradle Logger from IncrementalJvmCompilerRunner
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
78c115523c
Refactoring: move all IC logic to IncrementalJvmCompilerRunner
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov
0d1c803f71
Rebuild on cache corrupted exception
...
#KT-14055 fixed
2016-10-28 17:58:10 +03:00
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
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
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