After update from 6.22.0 to 6.23.2 can't configure ktfmt style.
ktfmt().kotlinlangStyle().configure {
it.setMaxWidth(120)
it.setRemoveUnusedImport(true)
}
Error:
e: file:///project/build.gradle.kts:233:26: Cannot access 'configure': it is private in 'ConfigurableStyle'
In 6.23.0 there was a problem with private BaseKotlinConfigure (changed from 6.22.0). In 6.23.2 - BaseKotlinConfigure is public now. But method configure is still private in KtfmtConfig.
public class ConfigurableStyle {
private void configure(Consumer<KtfmtStep.KtfmtFormattingOptions> optionsConfiguration) {
KtfmtStep.KtfmtFormattingOptions ktfmtFormattingOptions = new KtfmtStep.KtfmtFormattingOptions();
optionsConfiguration.accept(ktfmtFormattingOptions);
options = ktfmtFormattingOptions;
replaceStep(createStep());
}
}
Spotless Gradle version is 6.23.2.
If you are submitting a bug, please include the following:
After update from 6.22.0 to 6.23.2 can't configure ktfmt style.
ktfmt().kotlinlangStyle().configure { it.setMaxWidth(120) it.setRemoveUnusedImport(true) }Error:
In 6.23.0 there was a problem with private BaseKotlinConfigure (changed from 6.22.0). In 6.23.2 - BaseKotlinConfigure is public now. But method
configureis still private inKtfmtConfig.Spotless Gradle version is 6.23.2.
If you are submitting a bug, please include the following:
gradlew spotless[Apply/Check] --stacktrace