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

Use build info for versions in kotlinlib #3633

Merged

Conversation

0xnm
Copy link
Contributor

@0xnm 0xnm commented Sep 30, 2024

Some minor cleanup for the previous work on the Kotlin-related modules:

  • Read tooling versions from build info (Add Ktfmt support #3620 (comment) and Add Ktfmt support #3620 (comment))
  • Declare versions only once in the unit tests
  • Change parent module to JavaModule for Ktfmt support, because we don't need the code to be compiled in this module, so declaring Kotlin version there was looking a bit strange. In fact only sources() method is needed, which is available in the JavaModule. In the future KotlinModule may be split into different traits: the one which collects Kotlin+Java files, but doesn't do any compilation (so Kotlin version is not needed) and the one which actually does compilation.

build.mill Outdated Show resolved Hide resolved
@lihaoyi
Copy link
Member

lihaoyi commented Oct 1, 2024

Thanks @0xnm !

@lihaoyi lihaoyi merged commit 72497fc into com-lihaoyi:main Oct 1, 2024
24 checks passed
Comment on lines +195 to +205
val koverVersion = "0.8.3"
val koverCli = ivy"org.jetbrains.kotlinx:kover-cli:$koverVersion"
val koverJvmAgent = ivy"org.jetbrains.kotlinx:kover-jvm-agent:$koverVersion"
val ktfmtVersion = "0.52"
val ktfmt = ivy"com.facebook:ktfmt:$ktfmtVersion"
val detektVersion = "1.23.7"
val detektCli = ivy"io.gitlab.arturbosch.detekt:detekt-cli:$detektVersion"
val dokkaVersion = "1.9.20"
val dokkaCli = ivy"org.jetbrains.dokka:dokka-cli:$dokkaVersion"
val dokkaBase = ivy"org.jetbrains.dokka:dokka-base:$dokkaVersion"
val dokkaAnalysisDescriptors = ivy"org.jetbrains.dokka:analysis-kotlin-descriptors:$dokkaVersion"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please sort these?

@lefou lefou added this to the 0.12.0-RC3 milestone Oct 2, 2024
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.

3 participants