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

[K2] Run unit tests against the latest Analysis API #3552

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dokka-subprojects/analysis-kotlin-symbols/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ The `.jar` produced by this project shadows all dependencies. There are several
2. There are many intertwining transitive dependencies of different versions, as well as direct copy-paste,
that can lead to runtime errors due to classpath conflicts, so it's best to let Gradle take care of
dependency resolution, and then pack everything into a single jar in a single place that can be tuned.

## Testing with an override version of Analysis API

To build it with an override version of Analysis API, the property
`org.jetbrains.dokka.build.overrideAnalysisAPIVersion=2.2.0-dev-*` should be added to the project. Any version can be set in the property instead of `2.2.0-dev-*`.

17 changes: 17 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,20 @@ include(
project(":dokka-subprojects:core").name = "dokka-core"

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

// OVERWRITING CATALOG VERSIONS
// for testing against the latest dev version of Analysis API
// currently, Analysis API is used only in the analysis-kotlin-symbols project
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
val kotlinCompilerK2Version = providers.gradleProperty(
"org.jetbrains.dokka.build.overrideAnalysisAPIVersion"
).orNull
if (kotlinCompilerK2Version != null) {
logger.lifecycle("Using the override version $kotlinCompilerK2Version of Analysis API")
version("kotlin-compiler-k2", kotlinCompilerK2Version)
}
}
}
}
Loading