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

Support native targets #6

Merged
merged 15 commits into from Nov 21, 2022
Merged

Support native targets #6

merged 15 commits into from Nov 21, 2022

Conversation

nulls
Copy link
Contributor

@nulls nulls commented Nov 9, 2022

Supported: jvm, linuxX64, mingwX64 and macosX64

It closes #5

build.gradle.kts Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Show resolved Hide resolved
kotlin("plugin.serialization") version "1.7.20"
id("org.jetbrains.dokka") version "1.7.20"
Copy link
Member

Choose a reason for hiding this comment

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

Dokka setup looks good. javadoc-silence.txt is not necessary although Dokka is quite noisy.

build.gradle.kts Show resolved Hide resolved
build.gradle.kts Show resolved Hide resolved
gradle.properties Outdated Show resolved Hide resolved
build.gradle.kts Show resolved Hide resolved
build.gradle.kts Outdated
`maven-publish`
signing
kotlin("jvm") version "1.7.20"
kotlin("multiplatform") version "1.7.20"
Copy link
Member

Choose a reason for hiding this comment

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

Note: this will download about 500MB extra on each CI, and additionally requires 2GB of permanent disk space on local machines.

Copy link
Member

Choose a reason for hiding this comment

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

additionally requires 2GB of permanent disk space on local machines. I think we have gradle caches so it is not a net new addition if the dev machine already compiles kotlin multiplatform?

Copy link
Member

Choose a reason for hiding this comment

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

if the dev machine already compiles kotlin multiplatform

That's why I noticed it, this is the first KMP build I did.

we have gradle caches

I don't think ~/.konan is part of Gradle caches, it seems that Kotlin Native doesn't use the traditional Gradle features to download stuff. Anyway, not much we can do if we want to accept this build feature.

@nulls nulls mentioned this pull request Nov 14, 2022
.github/workflows/merge-check.yml Outdated Show resolved Hide resolved
build.gradle.kts Outdated
`maven-publish`
signing
kotlin("jvm") version "1.7.20"
kotlin("multiplatform") version "1.7.20"
Copy link
Member

Choose a reason for hiding this comment

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

additionally requires 2GB of permanent disk space on local machines. I think we have gradle caches so it is not a net new addition if the dev machine already compiles kotlin multiplatform?

@chao2zhang
Copy link
Member

Waiting for @TWiStErRob for a final look

Copy link
Member

@TWiStErRob TWiStErRob left a comment

Choose a reason for hiding this comment

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

I think I'm good, except a nit to silence the build output for something that's not actionable.

@TWiStErRob
Copy link
Member

TWiStErRob commented Nov 21, 2022

I updated with latest main, there was some conflicts because we (Renovate) bumped versions. Also fixed the nit above. So this is good to go @chao2zhang, ✔.

@chao2zhang chao2zhang merged commit bd2ed67 into detekt:main Nov 21, 2022
@TWiStErRob
Copy link
Member

Thank you for the contrib, @nulls! Great to see these kinds of improvements.

I also just noticed that you work for the competition :)

@akuleshov7
Copy link
Contributor

akuleshov7 commented Nov 22, 2022

thank you guys for making this library! Only one thing is remaining: to release this change to the Central, yes?
@TWiStErRob

@chao2zhang
Copy link
Member

I will do it tomorrow

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.

Support Multi Platform Project builds
5 participants