-
Notifications
You must be signed in to change notification settings - Fork 459
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
feat(#2183): flexmark configuration support #2280
base: main
Are you sure you want to change the base?
Conversation
@@ -89,6 +89,7 @@ dependencies { | |||
compatDiktat2Dot0Dot0CompileOnly "com.saveourtool.diktat:diktat-runner:2.0.0" | |||
// flexmark | |||
flexmarkCompileOnly 'com.vladsch.flexmark:flexmark-all:0.64.8' | |||
implementation 'com.vladsch.flexmark:flexmark-util-data:0.64.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has to be flexmarkCompileOnly
, not implementation
. Spotless has way too many dependencies to deal with all the transitive conflicts. You can only use flexmark classes inside of FlexmarkFormatterFunc
, which gets called with a special classloader after Gradle/Maven has done the dependency resolution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nedtwigg okay, got it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nedtwigg I'm a bit confused. If we 're using only flexmarkCompileOnly
it means that I can't get access to flexmark-util-data
API inside of FlexmarkStep, which makes it impossible to run with custom configuration or am I wrong?
implementation 'com.vladsch.flexmark:flexmark-all:0.64.8' | ||
implementation 'com.vladsch.flexmark:flexmark-util-data:0.64.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can't be here either.
WIP PR,
closes #2183