https://kotlinlang.org logo
Title
p

Paul Dingemans

04/21/2023, 3:43 PM
Hi all, I am glad to announce that ktlint
0.49.0
has been released. See release notes. A new code style
ktlint_official
is introduced. This code style is work in progress but will become the default code style in the
1.0
release. Please try out the new code style and provide your feedback via the issue tracker. The
0.49
release is intended to be the last minor release before the
1.0
which is to be expected in September.
e

eygraber

04/24/2023, 3:42 PM
@Paul Dingemans for issues like this is it better to create a new issue, or comment like I did here?
p

Paul Dingemans

04/24/2023, 3:44 PM
I prefer issues. Communication via slack gets messy quite soon. But simple questions can just be asked on slack.
e

eygraber

04/24/2023, 4:06 PM
To clarify, I was asking if I should leave a comment on the closed issue, or if I should create a new one.
p

Paul Dingemans

04/24/2023, 4:06 PM
Lol, didn’t get that. Just comment in the issue. I will see it anyways.
r

Roberto Leinardi

04/28/2023, 6:55 PM
hello, I've just upgraded to but now I can't find anymore these imports:
import com.pinterest.ktlint.core.Code
import com.pinterest.ktlint.core.KtLintRuleEngine
import com.pinterest.ktlint.core.RuleSetProviderV2
import com.pinterest.ktlint.core.api.EditorConfigDefaults
is there a migration guide somewhere?
OK, I figured out that I need to import this 2 new artifacts:
ktlint-cli-ruleset-core = { module = "com.pinterest.ktlint:ktlint-cli-ruleset-core", version.ref = "ktlint" }
ktlint-rule-engine = { module = "com.pinterest.ktlint:ktlint-rule-engine", version.ref = "ktlint" }
but if I do this, now the SLF4J issue is back...
I think I found the issue and I suggested a possible fix: https://github.com/pinterest/ktlint/issues/1875#issuecomment-1527996492