Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional KMP functional tests #115

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

additional KMP functional tests #115

wants to merge 2 commits into from

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Aug 31, 2023

additional KMP function tests for #114, but split out into a separate PR because GitHub runs out of memory

aSemy added a commit to antohaby/dokkatoo that referenced this pull request Aug 31, 2023
…ub Actions doesn't like them (OOM), so I'll deal with them in adamko-dev#115
@aSemy aSemy changed the title additional KMP function tests for https://github.com/adamko-dev/dokkatoo/pull/114,… additional KMP functional tests Aug 31, 2023
aSemy added a commit that referenced this pull request Aug 31, 2023
…dle Plugin API (#114)

* Use `compileDependencyFiles` as main source of compilation dependencies

Additionally, for Native compilations explicitly include stdlib and
platform dependencies from Kotlin Native distribution.

Home location of Kotlin Native distribution is collected
via Internal API of Kotlin Gradle Plugin.
It is safe for few reasons:
* konanHome property is accessed only for past Kotlin versions (up to 1.9.X)
* In Kotlin 2.0 `compileDependencyFiles` will include native-specific dependencies

* Don't add suppressed source sets to generator task Inputs

This prevents from unnecessary dependency resolutions,
including compile tasks.

Particularly test source sets depend on compilations output
of main source sets. And if test source sets are not skipped
then Kotlin compilation will be triggered unnecessary.

* Bump kotlin version in multiplatform-example project

Kotlin 1.9.0 supports Gradle Configuration Cache for Multiplatform projects
Dokka generation task now depends on `transform{sourceSetName}DependenciesMetadata`
tasks from Kotlin Gradle Plugin that didn't support Gradle Configuration Cache
in earlier versions of Kotlin. Making whole gradle build incompatible with
configuration cache.

* remove unused 'compileDependencyFiles'

* tidy up GradleTestKitUtils

* test more Kotlin versions and add K/N targets in KMP functional tests

* disable Gradle Daemon in Gradle TestKit tests

* fix Kotlin Native tests in KotlinMultiplatformFunctionalTest

* refactoring & tidying

- use KotlinToolingVersion to get the Kotlin version
- rename 'isMain' properties/functions to 'isPublished', because it makes a bit more sense
- fetch the konanHome prop by using extraProperties

* KotlinMultiplatformFunctionalTest moved to a separate PR because GitHub Actions doesn't like them (OOM), so I'll deal with them in #115

---------

Co-authored-by: Adam <897017+aSemy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant