Commit Graph

6438 Commits

Author SHA1 Message Date
Sergey Igushkin 94f66c237b (minor) replace the predicate for intermediate source set
Use a condition that is safe in projects with just one target and
intermediate source sets.
2019-11-13 17:45:31 +03:00
Dmitry Savvinov bcabbcf3e1 Add Native stdlib to intermediate source set dependencies
Also fix the dependsOn source set IDs not matcing those
in the IDE.
2019-11-13 17:45:25 +03:00
Svyatoslav Kuzmich 42c4591df8 [JS IR] Add -Xgenerate-dts CLI argument 2019-11-12 18:19:06 +03:00
Igor Chevdar 5c4b47c336 [native-gradle-plugin] Disabled native daemon for tests for now 2019-11-07 17:01:18 +03:00
Igor Chevdar 83331a0afb [native-gradle-plugin] Test fix 2019-11-07 17:00:59 +03:00
Igor Chevdar d36effd725 [native-gradle-plugin] Run konan directly from the gradle process 2019-11-07 17:00:03 +03:00
Nikolay Krasko 155a760ee9 Revert "Revert [JS IR] commits that failed build"
This reverts commit 740f851a
2019-11-07 16:24:13 +03:00
Alexander Udalov 7f4b568021 Mark new KClass.cast/safeCast extensions as low-priority
To avoid overload resolution ambiguity error in sources where everything
from both kotlin.reflect and kotlin.reflect.full is imported with a
star-import
2019-11-05 19:34:06 +01:00
Nikolay Krasko 740f851a10 Revert [JS IR] commits that failed build
Revert "[JS IR] Build hybrid versions of stdlib and kotlin.test"
This reverts commit b9f88350dd.

Revert "[JS IR] Add gradle plugin integration tests"
This reverts commit d872b27663.

Revert "Update bootstrap"
This reverts commit bc47594c7a.

Revert "[JS IR] Support generating both IR and pre-IR libraries"
This reverts commit 1b8df45bfe.
2019-11-05 13:58:39 +03:00
Svyatoslav Kuzmich b9f88350dd [JS IR] Build hybrid versions of stdlib and kotlin.test
IR version of libraries are no published by default inside pre-IR JARs
2019-11-01 19:42:06 +03:00
Svyatoslav Kuzmich d872b27663 [JS IR] Add gradle plugin integration tests 2019-11-01 19:42:06 +03:00
Svyatoslav Kuzmich bc47594c7a Update bootstrap
New compiler arguments needed to publish JS IR libraries:
    - stdlib
    - kotlin-test
2019-11-01 19:42:06 +03:00
Svyatoslav Kuzmich 1b8df45bfe [JS IR] Support generating both IR and pre-IR libraries
Remove all previous -Xir options

Add:
 -Xir-produce-klib-dir
 -Xir-produce-klib-file
 -Xir-produce-js
 -Xir-only
2019-11-01 19:42:05 +03:00
LepilkinaElena e638b9fd12 K/N performance gradle plugin. Added options and right code size for … (#2752) 2019-11-01 18:16:43 +03:00
Ilya Goncharov eeadc95bc1 [Gradle, JS] Remove check on duplicated targets
Useful (for KT-33828), if provider of artifact has changed, but remained only one

#KT-33828 fixed
2019-10-31 10:46:17 +03:00
Ilya Goncharov 08f9dd2aea [Gradle, JS] Fix entry for webpack (with Configuration Avoidance broke) 2019-10-30 18:58:56 +03:00
Vyacheslav Gerasimov 5776d115b7 Build: Add space packages to maven-settings servers 2019-10-29 23:31:43 +03:00
Ilya Goncharov 6ecc7eab7e [Gradle, JS] Add compatible aliases for old tasks
#KT-32323 fixed
#KT-32283 fixed
2019-10-29 19:41:20 +03:00
Ilya Goncharov dc3f3ce80d [Gradle, JS] Rename experimental annotation with warning level 2019-10-29 19:39:12 +03:00
Ilya Goncharov e7a45fb536 [Gradle, JS] JS specific build variants 2019-10-29 19:39:12 +03:00
Ilya Goncharov e3ec37b14f [Gradle, JS] Common webpack's configurations 2019-10-29 19:39:12 +03:00
Ilya Goncharov eb7fe6b0a4 [Gradle, JS] Each task configure your own dceOutputFileApplier 2019-10-29 19:39:12 +03:00
Ilya Goncharov 2d026e7973 [Gradle, JS] Make disambiguate take vararg 2019-10-29 19:39:12 +03:00
Ilya Goncharov 92c5b9c66e [Gradle, JS] Configure build and run in one place: configureMain 2019-10-29 19:39:12 +03:00
Ilya Goncharov aca5628622 [Gradle, JS] Use experimental dce annotation 2019-10-29 19:39:12 +03:00
Ilya Goncharov f55680a737 [Gradle, JS] Configure build and run in one place: configureMain 2019-10-29 19:39:12 +03:00
Ilya Goncharov ead4528445 [Gradle, JS] Make multiple entry points and output for webpack 2019-10-29 19:39:12 +03:00
Ilya Goncharov f66e6337fe [Gradle, JS] Fix test on DCE working with usual js files 2019-10-29 19:39:11 +03:00
Ilya Goncharov 83527a6d0e [Gradle, JS] DCE dsl interface used in browserDsl 2019-10-29 19:39:11 +03:00
Ilya Goncharov 2ffd8bed48 [Gradle, JS] Depends on according to Task Configuration Avoidance 2019-10-29 19:39:11 +03:00
Ilya Goncharov d2727e2f25 [Gradle, JS] Add possibility to configure dce task 2019-10-29 19:39:11 +03:00
Ilya Goncharov e1387e3d3d [Gradle, JS] Provide entry for DCE to webpack 2019-10-29 19:39:11 +03:00
Ilya Goncharov 174fd5975d [Gradle, JS] Add resolveFromModulesFirst option
When we collect all DCE'd files, we need, that webpack to watch on these files, not on node_modules module
2019-10-29 19:39:11 +03:00
Ilya Goncharov 51f4dc5af0 [Gradle, JS] Filter DCE candidates
We should process DCE only for:
- JARs
- JSs with neighbors meta.js
2019-10-29 19:39:11 +03:00
Ilya Goncharov faa5846252 [Gradle, JS] Add DCE task with dependsOn relationships 2019-10-29 19:39:11 +03:00
Ilya Goncharov a7cae0fc78 [Gradle, JS] Cartesian product of build variant and task types 2019-10-29 19:39:11 +03:00
Ilya Goncharov 6e0f5f71f1 [Gradle, JS] Divide values for devtool (source maps) 2019-10-29 19:39:11 +03:00
Ilya Goncharov 6c4e7921f7 [Gradle, JS] Single entry for webpack 2019-10-29 19:39:11 +03:00
Ilya Goncharov 973cd51497 [Gradle, JS] Add webpack mode depends on build variant kind 2019-10-29 19:39:10 +03:00
Ilya Goncharov 603e263003 [Gradle, JS] Add BuildVariants 2019-10-29 19:39:10 +03:00
Ilya Goncharov 3e9e9c02c6 [Gradle, JS] Extract build task configuration from run task 2019-10-29 19:39:10 +03:00
Alexander Udalov 74c9120d9d Minor, don't use outdated Groovy dependency
See https://ossindex.sonatype.org/vuln/91433254-870c-47a2-aa06-1b303a92c018

 #TPV-3545 Fixed
2019-10-29 16:07:52 +01:00
Alexander Udalov 896512f7cd Support KClass.isInstance/cast/safeCast in stdlib-only reflection implementation
#KT-14720 Fixed
2019-10-29 15:52:00 +01:00
Alexander Udalov 5c89f2fa54 Support KClass.qualifiedName in stdlib-only reflection implementation
#KT-34586 Fixed
2019-10-29 15:51:25 +01:00
Alexander Udalov c164745301 Support KClass.simpleName in stdlib-only reflection implementation
#KT-33646 Fixed
2019-10-29 15:51:21 +01:00
Alexander Udalov df4ab4ed81 Add JVM bytecode target version 13
#KT-34119 Fixed
2019-10-29 12:54:24 +01:00
LepilkinaElena b37dc32e03 Kotlin/Native performance gradle plugin (#2713) 2019-10-29 14:23:50 +03:00
Ilya Goncharov 042100ea77 [Gradle, JS] Disable puppeteer downloading Chrome 2019-10-29 12:03:49 +03:00
Vyacheslav Gerasimov 38f0fd256e Build: Specify LIBRARY_ELEMENTS_ATTRIBUTE to JAR for configurations with js libraries 2019-10-28 17:21:23 +03:00
Nikolay Krasko 3643ae4765 Update 193 to more recent 193.4778.7-EAP 2019-10-28 14:06:06 +03:00