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
Sebastian Sellmair
7f3970fb0f
[Gradle] Implement KotlinJvmWithJavaAndroidCompatibilityChecker to fail when 'withJava' is used together with AGP
...
As both (AGP and 'withJava') are using project global names like
'main' and 'test' which will lead to clashes (e.g. configuration names
are the same for both)
^KT-59595 Verification Pending
2023-07-04 16:59:26 +00:00
Sebastian Sellmair
1e87ba3485
[Gradle] Do not create dummy 'compileClasspath' anymore
...
As newer AGP versions do not suffer from KT-27170 anymore and
it was causing issues for buildscripts like
```
jvm()
jvm().withJava()
```
KT-59595
2023-07-04 16:59:26 +00:00
Sebastian Sellmair
e47f4137f4
[Gradle] KotlinJvmTarget: Apply java-base plugin instead of java plugin for withJava
...
^KT-59595 Verification Pending
2023-07-04 16:59:26 +00:00
Sebastian Sellmair
c7795c7863
[Wasm] Implement WasmDependencyResolutionSmokeTest
2023-07-04 14:16:26 +00:00
Igor Yakovlev
c6fdf1b3dd
[Wasm] Add kotlin wasm gradle attribute
2023-07-04 14:16:26 +00:00
Svyatoslav Scherbina
85919c4d62
Bump Kotlin/Native version in KGP to 1.9.20-dev-5069
...
Also, adjust NativeIrLinkerIssuesIT after 5f3dad1 . See the explanation
below.
5f3dad1 makes -Xlazy-ir-for-caches disabled by default. So the compiler
now deserializes different subsets of IR and in different orders.
As a result, the error message for a test changes. Both error messages
(before and after this commit) are correct, and the selection depends
on the IR deserialization strategy.
Moreover, this commit changes the expected error message to the initial
version, used before -Xlazy-ir-for-caches was introduced.
2023-07-04 10:16:32 +00:00
Artem Daugel-Dauge
de56f788f6
[Gradle] Warn about kotlinArtifacts DSL usage
...
^KT-58029 Verification Pending
2023-07-04 08:29:39 +00:00
Yahor Berdnikau
4c95797067
[Gradle] disable toolchain auto-download in tests
...
Required JDKs should be already downloaded by Kotlin repo itself.
2023-07-04 07:38:12 +00:00
Yahor Berdnikau
5b1ffb417a
[Gradle] Update AGP versions for tests
2023-07-04 07:38:12 +00:00
Yahor Berdnikau
f4fbc2edc6
[Gradle] Update Gradle versions for tests
...
Added Gradle 8.2 release
2023-07-04 07:38:12 +00:00
Sebastian Sellmair
8d2ac41454
[Gradle] Only register CInteropMetadataDependencyTransformationTask's for shared native source sets
...
KT-58712
2023-07-03 18:42:14 +00:00
Timofey Solonin
4695d9088a
[MPP] Enable cinterop commonization if CocoaPods plugin is applied
...
^KT-58712
2023-07-03 18:42:14 +00:00
Artem Daugel-Dauge
caaade1f4f
[Gradle] Fix invalidation framework after sync while preserving 'generateDummyFramework' task semantic
...
^KT-49430 Verification Pending
2023-07-03 17:37:37 +00:00
Anton Lakotka
182c10f77d
[Gradle] Mark some tasks with @DisableCachingByDefault
...
By default, tasks should opt-in for supporting build cache through
marking class with @CacheableTask.
However, some tasks should not be cacheable by default, as for these
tasks doesn't do any heavy load. Even worse, storing and extracting
tasks results from the remote cache (for example) would take more time
than actual run on host machine.
So these tasks are marked as @DisableCachingByDefault
^KT-59307 Verification Pending
2023-07-03 15:46:34 +00:00
Timofey Solonin
e59371d291
[MPP] Add a test for configuration avoidance between CommonizeCInterop
...
and CInterop tasks
^KT-58712
2023-07-03 15:41:31 +00:00
Timofey Solonin
a1db10c5fe
[MPP] Use SetProperty in CInteropCommonizerTask for configuration avoidance
...
^KT-58712
2023-07-03 15:41:30 +00:00
Sebastian Sellmair
23174add97
[Gradle] IdeBinaryDependencyResolver: Demote unresolved dependency logging to 'info'
...
The unresolved dependency built below will be reported by the
IDE as 'UnresolvedDependencySyncIssue'
KT-59844
2023-07-03 13:04:24 +00:00
Sebastian Sellmair
4e85434536
[Gradle] Implement CompilationAssociator.default, ...
...
... to allow extending the default behaviour for ExternalTargetApi consumers
^KT-59562 Verification Pending
2023-07-01 06:58:16 +00:00
Yahor Berdnikau
89f7053437
[Gradle] Add comment why nagFreeCompilerArgsModification message is not shown
...
Gradle 8.0 suppresses such messages produced by `kotlin-dsl` plugin
^KT-59587 Fixed
2023-06-30 14:18:06 +00:00
Yahor Berdnikau
447c849b29
[Gradle] Fix jvm target validation test on Gradle 8
...
^KT-59587 In Progress
2023-06-30 14:18:06 +00:00
Yahor Berdnikau
6a80cd596a
[Gradle] Fix kapt jvm target validation test on Gradle 8
...
^KT-59587 In Progress
2023-06-30 14:18:06 +00:00
Yahor Berdnikau
9453deb840
[Gradle] Update jvm validation test tags
...
Annotation each test separately, so each test should run on CI.
^KT-59587 In Progress
2023-06-30 14:18:05 +00:00
Yahor Berdnikau
6cf35c74af
[Gradle] Update toolchain tests to run on Gradle 8+
...
^KT-59587 In Progress
2023-06-30 14:18:05 +00:00
Yahor Berdnikau
36f748cbcc
[Gradle] Fix Jvm Toolchain Android tests are not running on CI
...
JUnit5 combines tags and then applies to this combined list filters from
the test task. If this list contains any excluded tag - test will be
ignored.
^KT-59587 In Progress
2023-06-30 14:18:05 +00:00
Yahor Berdnikau
05ce873d2a
[Gradle] Fix Android tests for Jvm Toolchain
...
^KT-59587 In Progress
2023-06-30 14:18:05 +00:00
Sergey Bogolepov
d433d1eb3f
KT-58862: Remove cinterop -mode option
...
metadata cinterop libraries perform pretty well for years,
so we can drop this flag.
2023-06-30 14:16:01 +00:00
Pavel Kargashinsky
807e7f1c28
[MPP][Tests] Bump AndroidAndJavaConsumeMppLibIT tests Gradle version to 7.6.
...
Tests will be failed if AGP >=7.1.0 or Gradle >= 8.0
See KT-57351 for details
2023-06-30 14:15:40 +00:00
Pavel Kargashinsky
816efc2def
[MPP][Tests] Use max supported Gradle version for MPP old-dsl tests
2023-06-30 14:15:39 +00:00
Nataliya.Valtman
ea8b482f4f
Don't get BuildScanExtension when buildScan report is disabled
...
#KT-59589: Fixed
2023-06-30 09:59:09 +00:00
ksenia.sergeeva
5e7e1e6c92
add gradle integration tests for explicit api mode in android KT-59117
2023-06-30 09:52:17 +00:00
Sebastian Sellmair
24debfd9b7
[Gradle] ExternalTargetApi: Implement ExternalKotlinTargetSourcesJarUtils
...
This utils are intended to be used external target authors exclusively
and shall help to create sources.jar files using regular
Kotlin Multiplatform conventions.
^KT-58109 Verification Pending
2023-06-30 09:34:07 +00:00
Sebastian Sellmair
3f1faa26ac
[Gradle] ExternalTargetApi: Add sourcesElements-published and add this configuration to the published component
...
^KT-58109 In Progress
2023-06-30 09:34:07 +00:00
Bogdan Mukvich
45e56f9c14
Disable SBOM for Gradle plugins
...
Current implementation causes publishing to fail
^KTI-1282
2023-06-30 07:55:45 +00:00
Timofey Solonin
d6d1ed6c35
[MPP] Fix NewMultiplatformIT and make it run on arm macOS
...
^KT-58822
2023-06-29 14:59:45 +00:00
Ilya Goncharov
49b2ac1b10
[JS] Remove legacy js in maven
2023-06-29 14:25:45 +00:00
Artem Daugel-Dauge
6861591840
[Gradle] Migrate Xcode/CocoaPods warnings to the new diagnostics infra + elevate deprecation of useLibraries
...
^KT-59313 Verification Pending
^KT-58519 Verification Pending
2023-06-29 14:23:55 +00:00
Artem Daugel-Dauge
67c19b00e0
[Gradle] Excplictly pass locale to CocoaPods invocations
...
^KT-59522 Verification Pending
2023-06-29 14:23:30 +00:00
Artem Daugel-Dauge
27600eecb3
[Gradle] Make check for illegal target names case-insensitive
...
^KT-59733 Verification Pending
2023-06-28 17:51:07 +00:00
Ilya Goncharov
0b912b0200
[Gradle, JS] Return back deprecated methods for compatibility
...
^KT-59604 fixed
2023-06-28 17:14:52 +00:00
Timofey Solonin
16236936e5
[MPP] Use proper assertion in CommonizerIT
...
^KT-58712
2023-06-28 16:58:10 +00:00
Ilya Goncharov
2d178e5273
[Gradle, JS] Not reset runtimeChunk because it does not affect stacktraces
2023-06-28 15:58:22 +00:00
Leonid Startsev
1a1cbcb321
Rework flags in kotlinx.metadata:
...
Introduce extensions for KmNodes to work with various modifiers instead of old Flags.SOMETHING.invoke(flags).
Provide Visibility, Modality, and Kind enums.
Introduce KmPropertyAccessorAttributes to replace KmProperty.getterFlags and KmProperty.setterFlags.
Deprecate nodes constructors which take flags but not flags itself (yet).
Adapt KotlinP to changes.
#KT-59440 Fixed
2023-06-27 15:12:46 +00:00
Alexander Udalov
ecc1f9fb0b
Update to kotlinx-metadata-jvm 0.6.2
...
Migrate to the new API in kotlin-reflect build script, remove obsolete
workarounds.
2023-06-27 14:32:15 +00:00
Dmitrii Krasnov
78e288be38
Bumped max supported gradle version to 8.0 in tests
...
#KT-56636 Fixed
Merge-request: KT-MR-10723
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com >
2023-06-27 11:39:51 +00:00
Bogdan Mukvich
4ded83d266
Add SBOM publishing for kotlin-test-js-runner
...
^KTI-1273
2023-06-27 09:02:18 +00:00
Bogdan Mukvich
acb97d8cc9
Add SBOM for gradle plugins
...
^KTI-1273
2023-06-27 09:02:17 +00:00
Troels Bjerre Lund
111bb461a9
CLI: Change kotlin reflection to java reflection
...
The command line argument parser is using between 0.25s and 0.5s
(depending on platform) on finding annotated properties. This fix
replaces the slow kotlin reflection with java reflection, which is an
order of magnitude faster.
#KT-58183 Fixed
2023-06-27 08:34:40 +00:00