-
Notifications
You must be signed in to change notification settings - Fork 166
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
Applying plugin to subprojects doesn't work #826
Comments
Minimal example: https://github.com/ydavygora/ktlint_example |
What about adding it to root's plugins {
id("org.jlleitschuh.gradle.ktlint") version ("12.1.2")
+ kotlin("jvm") version ("2.1.0") apply false
} |
Hi @matsudamper , the |
Oh, sorry @matsudamper , I misunderstood you. You were talking about the kotlin-jvm plugin, not the ktlint plugin. I will try this, thanks! |
It works! Thank you very much again, @matsudamper and sorry for the initial misunderstanding! |
Hello,
I'm running into an issue with a multiproject setup (using Gradle 8.12). My top level
build.gradle.kts
is minimal:If I leave the line commented, then the code in the subprojects does not get formatted/checked. If I uncomment the line, here's the error I get:
If I run this with stacktrace, the first three lines are:
To be honest, I am not sure if I am doing anything wrong or if there is a bug in the plugin. In any case I would be really grateful for your assistance. If you need more input from me (more logs, a minimal working or, rather, failling example), please let me know and thank you very much in advance!
The text was updated successfully, but these errors were encountered: