Sebastian Sellmair
1cce57b50b
[Gradle] KT-56712: Add assertions for ide dependencies
...
^KT-56712 Verification Pending
2023-02-16 13:51:10 +00:00
Sebastian Sellmair
b83a490034
[Gradle] MppDependencyProjectStructureMetadataExtractorFactory: Cache on rootProject...
...
Because composite builds might have isolated classloaders,
therefore caching the MppDependencyProjectStructureMetadataExtractorFactory
on a compositeBuildRoot will lead to ClassCastExceptions
^KT-56712 Verification Pending
2023-02-16 13:51:10 +00:00
Sebastian Sellmair
70a44ccc67
[Gradle] ExtraPropertiesExtension.getOrPut: Use castIsolatedKotlinPluginClassLoaderAware
...
To provide better error messages for users when this function
fails due to isolated classpaths
... for KT-56712
2023-02-16 13:51:10 +00:00
Sebastian Sellmair
45a99d197a
[MPP] MppCompositeBuildIT: Implement sample6-KT-56712-umbrella-composite test
...
... for KT-56712
2023-02-16 13:51:09 +00:00
Alexander Udalov
0e767a7020
Log Kotlin compiler classpath with File.pathSeparator in Gradle
...
To make it easier to copy-paste it to run the compiler outside of
Gradle.
2023-02-16 11:29:30 +00:00
Alexander.Likhachev
0ab8d07e23
[Gradle] Don't trigger all root project properties evaluation on FUS report
...
`Project.properties` triggers all the properties computation to return them as `Map`. We should query only for a required property instead.
#KT-56421 Fixed
2023-02-16 11:25:27 +00:00
Alexander.Likhachev
76ca96d2e2
[Gradle, JS] Apply module name setup regardless of enabled stats
...
#KT-56705 Fixed
2023-02-16 10:29:23 +00:00
Pavel Kirpichenkov
317b9d28e0
[MPP] Use correct name for resolved K/N distribution libraries for IDE
...
KT-56671
2023-02-15 14:19:54 +00:00
Leonid Startsev
4b524b8589
Document that read/write methods may throw IAE and make sure this is true:
...
- Replace !! with requireNotNull()
- Add try/catch to wrap all other exceptions (mainly protobuf parser ones)
- Add tests for malformed input for both read and write
- Hide InconsistentMetadataException from public API
- Replace its external usages with IllegalArgumentException
2023-02-15 11:21:43 +00:00
Leonid Startsev
64838d5ec9
Extract separate ArrayKClassValue from KClassValue
...
Remove `data` from KmAnnotation
2023-02-15 11:21:43 +00:00
Anton Lakotka
515a401b23
[Gradle, Test] separate lib publication and app assemble to different builds
...
To prevent build failures due to race conditions
with publication and consumption
2023-02-14 15:15:12 +00:00
Anton Lakotka
96ba03a708
[Gradle] Move configureMDConfigurations to resolvableMetadataConfiguration
2023-02-14 15:15:12 +00:00
Sebastian Sellmair
25f6b4c922
[Gradle][Minor] Make collectAllProjectStructureMetadataInCurrentBuild private
...
^KT-56431 Verification Pending
^KT-56461 Verification Pending
2023-02-14 15:15:11 +00:00
Sebastian Sellmair
8f4dd86788
[Gradle] Move KotlinSourceSet metadata configuration into separate source file
...
^KT-56431 Verification Pending
2023-02-14 15:15:11 +00:00
Sebastian Sellmair
f21e08f6b9
[kotlin-tooling-core] Add extrasNullableLazyProperty API
...
^KT-56431 Verification Pending
2023-02-14 15:15:11 +00:00
Sebastian Sellmair
b646a43dab
[Gradle] ResolvableMetadataConfigurationTest: Check ide dependencies
...
^KT-56461 Verification Pending
2023-02-14 15:15:10 +00:00
Sebastian Sellmair
0a2b873415
[Gradle] GranularMetadataTransformation: Support dependency constraints
...
^KT-56431 Verification Pending
^KT-56461 Verification Pending
2023-02-14 15:15:10 +00:00
Sebastian Sellmair
380ca95661
[Gradle] resolvableMetadataConfiguration: Ensure consistent resolution across all compile dependencies
...
^KT-56461 Verification Pending
^KT-56431 Verification Pending
2023-02-14 15:15:10 +00:00
Anton Lakotka
5ec153822a
[Gradle] Replace provider by lazy in ProjectData
2023-02-14 15:15:09 +00:00
Anton Lakotka
0bee621b21
[Gradle] Minor: optimize imports
2023-02-14 15:15:09 +00:00
Anton Lakotka
737afcb343
[Gradle] Move creation of GranularMetadataTransformation to source set
...
Now it is encapsulated to DefaultKotlinSourceSet and is lazily created
upon demand during project import
But metadata configurations still should be created during metadata
target configuration.
^KT-56431 Verification Pending
2023-02-14 15:15:09 +00:00
Anton Lakotka
db6c6c736a
[Gradle] Cache data that collected from all projects in rootProject
2023-02-14 15:15:08 +00:00
Aleksei.Cherepanov
0470a9568d
[Maven] Fix flaky test-plugins
...
Logging in maven has been slightly changed, so it no longer matches the old patterns. It was flaky because sometimes it loaded the plexus artifact (and sometimes it didn't) and such event was shown in the log with different log message
2023-02-14 10:09:52 +00:00
Yahor Berdnikau
30d218827a
Align Gradle enterprise version in KGP
2023-02-13 12:58:31 +00:00
Sebastian Sellmair
1936efed11
[MPP] NativeDistributionCommonizerLock: Support classpath isolation
...
^KT-56510 Verification Pending
2023-02-10 18:55:28 +00:00
Sebastian Sellmair
ec67131d82
[MPP] Implement NativeDistributionCommonizerLockTest for isolated class loaders
...
KT-56510
2023-02-10 18:55:28 +00:00
Ilya Goncharov
c596c1ad73
[Gradle, JS] Make compilation binaries publiс
2023-02-10 11:43:24 +00:00
Pavel Kirpichenkov
eb59f399de
Minor: refactor source set constraints
2023-02-10 11:02:21 +00:00
Pavel Kirpichenkov
1b8c517e1e
[MPP] Don't apply common parts of IDE import resolution for JVM+Android
...
- Don't resolve common parts of MPP libraries
- Filter out kotlin-stdlib-common
KT-56453
2023-02-10 11:02:21 +00:00
Alexander.Likhachev
93a1d61a30
[Gradle] Use variant factories provider in KotlinJvmTest and KotlinTest
...
Reverts 063dcea2e2
KT-55241 Related
2023-02-09 21:59:18 +01:00
Alexander.Likhachev
1565c800d9
[Gradle] Pass factories to VariantImplementationFactories as parameters
...
These changes are required to make the factories persistent to work properly with configuration cache
#KT-55241 Fixed
2023-02-09 21:59:17 +01:00
Pavel Kirpichenkov
8d62e488fe
[MPP] use commonizerNativeTargets in names of propagated cinterops
...
KTIJ-24573
2023-02-09 13:15:10 +00:00
Sebastian Sellmair
b931868d41
[Gradle] GlobalProjectStructureMetadataStorage: Properly store PSM using the buildName...
...
...instead of the root projects name
^KT-56536 Verification Pending
2023-02-09 12:36:53 +00:00
Sebastian Sellmair
419b0e3e23
[Gradle] Implement MppCompositeBuildIT for builds with rootProject.name set
...
KT-56536
2023-02-09 12:36:53 +00:00
Yahor Berdnikau
3c01ad6bc3
Exclude transitive :kotlin-build-common dependency
...
This dependency has non-relocated 'com.intellij' types which could
lead to build errors if build classpath will have it earlier in the list
then kotlin-compiler-embeddable.
^KT-56414 Fixed
2023-02-09 10:09:24 +00:00
Ilya Goncharov
40d75d531b
[Gradle, JS] Wasm Karma support
...
^KT-56159 fixed
2023-02-09 09:47:05 +00:00
Igor Chevdar
633d182846
[gradle] Do not pass cache-related options for optimized compilation
...
#KT-56443 Fixed
2023-02-08 18:36:35 +00:00
Yahor Berdnikau
4e705d2f40
Fix flaky JS tests.
...
They are disabling error for using JS/Legacy backend via System property
by passing it to the Kotlin Daemon. But daemon may already be started
and not contain such property.
Workaround for now is to use 'in-process' compilation for such cases.
2023-02-08 16:27:29 +00:00
Yahor Berdnikau
b3e6a3c274
Update test-data for Gradle 7.6 version.
2023-02-08 16:27:28 +00:00
Yahor Berdnikau
4de3a62680
Update KGP test-suite plugin setup
...
This ensures compatibility with changes in test-suite plugin new
versions.
2023-02-08 16:27:28 +00:00
Martin Bonnin
a199fa7624
Bump Gradle version to 7.6
...
As well remove usages of forUseAtConfigurationTime - see also
https://github.com/JetBrains/kotlin/pull/5003
2023-02-08 16:27:26 +00:00
Stanislav Erokhin
da98a47c4c
Minor: tweak wording in the deprecated message
2023-02-08 15:41:21 +00:00
Ilya Goncharov
bea80f8b54
[Gradle, JS] Add debugger.js with debugger statement to stop on the first line in a browser
...
^KT-56488 fixed
2023-02-08 12:50:29 +00:00
Alexander.Likhachev
67c4dc3cce
[Gradle, K/N] Stop using enableEndorsedLibs Gradle flag, make it Error
...
#KT-54098 Fixed
2023-02-06 19:24:05 +00:00
Sebastian Sellmair
3b75658113
[Gradle] IdeBinaryDependencyResolverTest: Add test - android artifact transformation
...
^KT-56439 Verification Pending
2023-02-06 18:38:49 +00:00
Sebastian Sellmair
dd2317b1c2
[Gradle] IdeBinaryDependencyResolver: Add componentFilter to 'ResolvableConfiguration' and 'Compilation'
...
^KT-56439 Verification Pending
2023-02-06 18:38:49 +00:00
Sebastian Sellmair
889dc8d669
[Gradle] Rename IdePlatformDependencyResolverTest.kt to IdeBinaryDependencyResolverTest.kt
...
KT-56439
2023-02-06 18:38:49 +00:00
Sebastian Sellmair
3a9ca1c1eb
[Gradle] IdeMultiplatformImportFactory: Empty overwrite for Android AdditionalArtifactResolutionPhase.SourcesAndDocumentationResolution
...
^KT-56430 Verification Pending
2023-02-06 13:05:06 +00:00
Sebastian Sellmair
7341f37838
[Gradle] Implement IdeAndroidDependencyResolutionTest
...
Added failing test for: KT-56430
2023-02-06 13:05:05 +00:00
Sebastian Sellmair
300995209f
[Gradle] MppIdeDependencyResolutionIT: Use correct encoder for assertion
...
^KT-56429 Verification Pending
2023-02-06 09:54:58 +00:00