Igor Yakovlev
18a9c1916e
[Wasm] Wasi kotlin.test implementation
2023-08-08 18:10:19 +02:00
Ilya Gorbunov
ff1dbab290
[stdlib-mpp] Extract separate variants of kotlin-test for jsIR and jsV1
...
Otherwise stdlib-js dependency can't be resolved by spdx plugin
because stdlib has different variants for legacy and IR JS.
KT-56106
2023-08-03 14:47:21 +00:00
Ilya Gorbunov
a9bc8fa402
[stdlib-mpp] Exclude kotlin-stdlib-js/js-ir projects and use kotlin-stdlib instead
...
- Specify disambiguating attributes in kotlin-dom-api-compat
compile dependency configurations
because it uses the flag that removes JS compiler type attribute
from all configurations and variants
KT-56106
2023-08-03 14:47:21 +00:00
Ilya Gorbunov
b3707807b6
[stdlib-mpp] Do not depend on kotlin-stdlib-common in kotlin-test-common
...
KT-56106
2023-08-03 14:47:21 +00:00
Ilya Gorbunov
9390afa749
[stdlib-mpp] Remove workaround for building kotlin-test-js as a modern K/JS project
...
KT-56106
2023-08-03 14:47:21 +00:00
Ilya Gorbunov
dcc71e77f3
[stdlib-mpp] Specify configuration attributes for stdlib-js variant disambiguation
...
#KT-56106
2023-08-03 14:47:20 +00:00
Ilya Gorbunov
9bdd365be4
[stdlib-mpp] Workaround for building kotlin-test-js as a modern K/JS project
...
#KT-56106
2023-08-03 14:47:19 +00:00
Ilya Gorbunov
e53602e763
[stdlib-mpp] use stdlib-mpp dependency instead of stdlib in kotlin-test projects
...
#KT-56106
2023-08-03 14:47:19 +00:00
Ilya Goncharov
b9e5b8a087
[Gradle, Wasm] Add wasmWasi target, replace wasm target onto wasmJs
...
KT-60654
2023-08-01 13:11:36 +00:00
Ilya Gorbunov
865f392681
[Docs] Use absolute urls in links, new Dokka doesn't support relative
2023-07-26 10:15:45 +00:00
Yahor Berdnikau
5b5dae9249
[repo] Move buildSrc into repo/gradle-build-conventions/buildsrc-compat project
...
Include new project as build logic included build. Such change will
allow us to start migration into build convention plugins by splitting
buildSrc logic into subprojects.
2023-07-13 08:24:49 +00:00
Yahor Berdnikau
73f6316f27
[repo] Enable warnings as errors for Gradle Kotlin scripts
2023-07-12 12:49:32 +00:00
Yahor Berdnikau
7bfe59253f
[repo] Migrate 'manifestAttributes()' into buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
db1086f005
[repo] Migrate 'configureFrontendIr()' into buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
d7fc4a1d27
[repo] Migrate Groovy build scripts to use 'sourcesJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
6d5f1c84a7
[repo] Migrate Groovy build scripts to use 'javadocJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
5de2b5aeb4
[repo] Migrate Groovy build scripts to use 'kotlinStdlib()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Ilya Goncharov
0bc19e70b6
[JS] Update npm dependencies in integration tests
2023-07-03 14:44:34 +00:00
Nikolay Krasko
e6df34805f
Fix Gradle implicit dependency error in kotlin-test when signing enabled
...
Remove dependency to same javadoc jar in all publications as it produces
an implicit dependency to the same signing task. Use different javadoc
tasks instead.
Error:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':kotlin-test:signCommonPublication' (type 'Sign').
- Gradle detected a problem with the following location: '/kotlin/libraries/kotlin.test/build/distributions/kotlin-test-1.9.20-dev-0000-javadoc.jar.asc'.
Reason: Task ':kotlin-test:publishAnnotationsCommonPublicationToMavenLocal' uses this output of task ':kotlin-test:signCommonPublication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Reproduce:
gradle :kotlin-test:publishToMavenLocal -Psigning.gnupg.keyName=***** -Psigning.gnupg.passphrase=**** -PsigningRequired=true
KTI-1282
2023-06-28 18:00:14 +00:00
Bogdan Mukvich
53ce5c22ca
Add SBOM publishing for kotlin-test libraries
...
^KTI-1273
2023-06-27 09:02:18 +00:00
Alexander Udalov
c66bc36382
Build: fix some warnings in buildSrc and build.gradle.kts
2023-06-26 15:42:21 +00:00
Alexander.Likhachev
cb087b7def
[Build] Bump gradle-node-plugin version to 5.0.0
...
This change is required to fix a configuration cache problem revealed after migration to Gradle 8.1
2023-06-26 10:36:25 +00:00
Alexander.Likhachev
a93c49baf1
[Build] Fix a bunch of buildscript compilation warnings
...
#KTI-1221 Fixed
2023-06-22 15:16:08 +00:00
Alexander.Likhachev
8dd957d371
[Build] Mark kotlin.test publication variant not consumable
...
Their attribute sets are the same as for platform-specific publications, thus Gradle raises a legit deprecation warning here. These configurations are not being consumed directly, so it's fine to make them not consumable
#KTI-1221 In Progress
2023-06-22 15:16:08 +00:00
cristiangarcia
46d113605b
Adopt configuration-avoidance where possible
...
Before this change `./gradlew help` (with native enabled)
Created immediately: 1322
Created during configuration: 1541
after this change:
Created immediately: 596
Created during configuration: 1509
To know more about configuration avoidance: https://docs.gradle.org/current/userguide/task_configuration_avoidance.html
2023-06-06 14:27:42 +00:00
Igor Yakovlev
ed1c15b64b
[Wasm] Remove redundant code
2023-05-19 15:50:06 +00:00
Igor Yakovlev
0629f6758f
[Wasm] Fix kotlin test throw methods
2023-04-26 16:55:11 +00:00
Zalim Bashorov
2e4a09f841
[Wasm] Replace takeIf with ifEmpty in TeamcityAdapter
2023-04-05 20:50:52 +02:00
Zalim Bashorov
295acdf2af
[Wasm] Rewrite lazy initialization without by lazy and lateinit to reduce overhead
2023-04-05 20:50:52 +02:00
Zalim Bashorov
f206b0b72d
[Wasm] TeamcityAdapter: rewrite lazy property initialization using lateinit
2023-04-05 20:50:52 +02:00
Zalim Bashorov
494403c4bb
[Wasm] Don't use by lazy inside TeamcityAdapter
2023-04-05 20:50:52 +02:00
Svyatoslav Kuzmich
635671d623
[Wasm] Stop using Dynamic in kotlin-test
2023-03-29 11:08:28 +00:00
Artem Kobzar
c6e4858bc9
[K/JS] Remove the ability to run Legacy JS backend from the Gradle Plugin
2023-03-28 12:47:04 +00:00
Vyacheslav Gerasimov
76c54a8ff3
Build: Fix usages of apis deprecated in Gradle 8
2023-03-20 19:45:39 +00:00
Artem Kobzar
4da81b2b6e
[K/JS] Remove an internal system property and replace it with the new compiler flag
2023-03-17 12:38:34 +00:00
Svyatoslav Kuzmich
1208a26fc4
[Wasm] Use JsAny, JsHandle and other Js* types in stdlib and kotlin-test
2023-03-16 09:12:07 +00:00
Svyatoslav Kuzmich
7175b9f31c
[Wasm] Migrate usages of @JsFun to js("code")
2023-03-03 19:39:10 +00:00
Vyacheslav Gerasimov
34fcbb32ff
Revert "[Build] Fix compilation of kotlin-js(-ir) libraries in 1.9.0 (stdlib and test)"
...
This reverts commit d39fd9416a .
2023-03-03 15:06:23 +00:00
Ilya Gorbunov
2cfbbb185d
Change docs artifacts directory layout for easier publishing
...
Change module names of libraries to be consistent
2023-02-22 23:52:39 +00:00
Artem Kobzar
d39fd9416a
[Build] Fix compilation of kotlin-js(-ir) libraries in 1.9.0 (stdlib and test)
2023-02-18 13:26:53 +00:00
Yunir Salimzyanov
3cb0d489bf
KT-55700: fix kotlin-test-sources.jar in compiler lib
...
to contain both jvm and common parts
as it is made for maven artifacts distribution
2023-02-13 17:42:27 +00:00
Svyatoslav Kuzmich
81072ac9b4
[Wasm] Fix parsing D8 CLI arguments in kotlin.test
...
`@JsFun("code")` is now executed inside a JS function which brings its
`arguments` into the scope shadowing D8's CLI `arguments`.
Accessing arguments through `globalThis` fixes the problem.
Merge-request: KT-MR-8630
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2023-02-02 16:37:32 +00:00
Ilya Goncharov
d7c31f79a8
Do not suppress NPM related tasks, but be aware about checking of them in task graph
2023-01-19 13:43:57 +00:00
dependabot[bot]
2dc13506f5
Bump json5 from 2.2.1 to 2.2.3 in /libraries/kotlin.test/js-ir/it
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-10 12:28:08 +01:00
dependabot[bot]
c1d03731e8
Bump json5 from 2.2.1 to 2.2.3 in /libraries/kotlin.test/js/it
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-10 12:27:40 +01:00
Igor Yakovlev
8b14f4b15c
[Wasm] Mocha test framework support
2022-12-29 11:57:47 +00:00
Svyatoslav Kuzmich
7ec6608e29
[Wasm] Add Promise and support tests that return Promise
...
Co-authored-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com >
Merge-request: KT-MR-7717
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2022-11-25 20:56:47 +00:00
Ilya Goncharov
bf8681296b
[Gradle, JS] IR by default and report warnings for using legacy compiler
...
- just legacy - report warning about deprecation
- both - report warning about deprecation of legacy
- no compiler explicitly chosen - error about explicit setting compiler
warn from cli legacy compiler
nowarn flag - kotlin.js.compiler.nowarn
KT-42326
KT-53074
2022-09-16 09:48:41 +00:00
Nikolay Krasko
01f567a16d
Disable yarn and npm tasks from the build when tests are not active
...
Kotlin build shouldn't depend on npm during while deploy artefacts tasks
^KTI-887 Fixed
^KT-53687 Related
2022-08-30 22:15:16 +00:00
Andrey Uskov
3b63c1bf82
Update dependency on junit-jupiter-api to 5.6.3
...
#KT-51063 Fixed
2022-08-17 14:15:44 +04:00