Ilya Gorbunov
2c74b91de4
Remove JvmVersion annotation and its usages
2018-04-23 19:05:13 +03:00
Ilya Gorbunov
ac3de447ae
Do not use code preprocessing anymore
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
38be99daa3
Build stdlib-jdk7/8 tests as multiplatform manually
2018-04-12 17:53:00 +03:00
Alexey Tsvetkov
29d2679e8d
Do not configure dist task for every published module
...
This change avoids compiling kotlin-compiler-embeddable,
kotlin-gradle-plugin, and other gradle plugins,
when running `./gradlew dist`
2018-02-01 17:39:55 +03:00
Ilya Gorbunov
93efc51843
Fix the obsolete form of -Xdump-declarations-to argument
2017-10-16 18:48:09 +03:00
Ilya Gorbunov
cc150ca832
Make Closeable.use call addSuppressed
...
Call addSuppressed when it's provided by the supplementary artifact for jdk7, and only when targeting apiVersion > 1.1
#KT-18961 Fixed
2017-10-13 18:56:05 +03:00
Dmitry Petrov
75ad20f823
Build compiler, plugin & stdlib with constructor call normalization
...
Required as a workaround for Proguard bug
https://sourceforge.net/p/proguard/bugs/664/
When processing bytecode generated by Kotlin compiler for constructor
call with stack spilling during arguments evaluation, ProGuard performs
an equivalent transformation for the bytecode, but emits invalid stack
frame information.
In JVM 1.6, such invalid stack frames are ignored and re-evaluated by
JVM during bytecode verification.
In JVM 1.8, such invalid stack frames cause VerifyError.
2017-10-12 10:59:57 +03:00
Alexander Udalov
537a0ce315
Restore kotlin-stdlib-jre7/8 libraries
2017-10-11 19:23:30 +03:00
Alexander Udalov
e253acd5fd
Introduce kotlin-stdlib-jdk7/8 libraries, deprecate kotlin-stdlib-jre7/8
...
The idea is to keep all declarations in the same packages from Kotlin's
point of view, but use JvmPackageName annotation to move them to another
JVM package, to avoid the split package problem which is otherwise
unsolvable when using module path on Java 9 (KT-19258).
In this commit, kotlin-stdlib-jre7/8 are moved to kotlin-stdlib-jdk7/8
and in the subsequent commit, -jre7/8 are restored. This is done in
order to make Git recognize this as a file move to preserve history.
Include new stdlib-jdkN artifacts in manifest version tests.
2017-10-11 19:20:24 +03:00
Alexander Udalov
2fc3f4d07b
Update copyrights in kotlin-stdlib-jre7/8 sources
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
99f2cc3d00
Fix paths to stdlib-jre6 test output
2017-09-20 11:51:41 +02:00
Ilya Chernikov
27968c8e13
Set proper jvmTarget for projects
2017-09-19 21:37:27 +02:00
Ilya Chernikov
3caa426b76
Switching library projects to java 8 compilation with exceptions for stdlib/runtime/reflect/test
2017-09-19 21:37:11 +02:00
Ilya Gorbunov
6ae19e03d5
Clean warnings and refactor stdlib tests.
...
Merge RangeJVMTest into RangeTest.
2017-04-18 18:51:20 +03:00
Alexander Udalov
10f2e9d33a
Revert usages of -X arguments to old form in some places
...
We use the old compiler in Gradle build and in GradleFacetImportTest, so
some changes in f4b6db4 should not have been made yet
2017-04-17 11:33:58 +03:00
Alexander Udalov
f4b6db4dc0
Change format of -X arguments to require value after '='
...
Report a warning when an argument is passed in the old form (with the
whitespace)
#KT-17264 Fixed
2017-04-14 20:07:54 +03:00
Ilya Gorbunov
337fd4e180
Drop poms that are no longer required. Drop separate unit test modules for stdlib js.
2017-04-08 08:28:50 +03:00
Ilya Gorbunov
3db1613167
Setup dist task to assemble libs for compiler distribution.
...
Produce special stdlib artifact with annotations for dist.
Put js outputs to dist, they're required for JS backend tests.
Use kotlin-compiler for maven, which has all required dependencies bundled.
Clean local directory repository on clean.
Change paths in tests to compiled artifacts.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
0b2cadc638
Provide a method for common publishing configuration.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
92ef26606b
Refactor build to make manifest specification less error-prone.
...
Use legacy implementation title in manifest of JS stdlib for now.
Change the way common jvm project configurations is applied.
Add missing artifacts to common libraries.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
846b74885c
Remove some configuration duplication by using 'tasks.withType()'
...
Setup common options of java and kotlin compiler tasks.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
d25b07fe23
Exclude additional test source sets when importing project in IDEA, enable coroutines in stdlib
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
08fa304b6f
Build common standard library headers and kotlin-test (common and jvm) as multiplatform projects.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
d3afc1ba2e
Extract manifest attribute specification to helper function.
...
Specify default jdkHome for all projects.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
5755210498
Tune build options for kotlin-test, kotlin-runtime, kotlin-stdlib, kotlin-stdlib-jre7/8
2017-04-06 20:32:37 +03:00
Ilya Chernikov
35a135cbf6
Add builds for main stdlib, stdlib jre7/8, kotlin.test
2017-04-06 20:32:37 +03:00
Ilya Chernikov
c2c051cfe8
Prepare gradle config for building libs - bootstrap and runtime
...
Use external gradle plugin (1.1-M04) with compiler.jar from dist
Add empty build scripts for other projects that needs to be built with gradle
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
c0c01d6e49
Drop HIDDEN deprecations from kotlin-stdlib.
2017-02-22 17:28:02 +03:00
Ilya Gorbunov
7195e26ae2
Rollback Closeable.use implementation as it was in 1.0 in order not to call functions that were introduced in 1.1 from this inline function.
...
#KT-16026
2017-01-29 02:41:12 +03:00
Alexander Udalov
fc637eb420
Change runtime component from "Core" to "Main"
...
This is needed to allow the old compiler have the new runtime libraries in the
classpath. See the previous commit for a more elaborate explanation
2017-01-21 12:57:15 +03:00
Ilya Gorbunov
35d433160e
Move more logic of 'use' into 'closeSuppressed', rename the latter to 'closeFinally', that will result in more compact inline call expansions.
2017-01-11 14:35:38 +03:00
Ilya Gorbunov
a71b68268d
Refactor exception suppression to provide Throwable.addSuppressed extension in kotlin-stdlib.
...
Place Closeable and AutoCloseable extensions to separate files (CloseableKt and AutoCloseableKt).
#KT-15477 Fixed
2017-01-11 14:35:38 +03:00
Alexander Udalov
c4f731b987
Write Kotlin-Version to runtime artifacts built with Maven
...
Add a test that checks that Kotlin-Version and Kotlin-Runtime-Component have
been written to all relevant runtime libraries
2016-12-26 17:46:36 +03:00
Mikhael Bogdanov
95a47e56f7
InlineExposed usages are changed to PublishedApi
2016-12-09 11:55:14 +01: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
a8f381cabc
Annotate with SinceKotlin all in stdlib-jre7 and jre8
2016-10-13 08:37:28 +03:00
Ilya Gorbunov
e9ccc480b0
Docs: improve docs for Closeable.use and AutoCloseable.use
2016-07-13 20:39: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
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