anybody tried to use the asciidoc plugin? <https:/...
# gradle
t
anybody tried to use the asciidoc plugin? https://asciidoctor.org/docs/asciidoctor-gradle-plugin/
c
I use it for many projects. What's your question?
t
I am having problem configuring it with the kotlin dsl, but it seems to be a problem with intellij
import org.asciidoctor.gradle.AsciidoctorTask
marks
asciidoctor
as unresolved reference, but from cli it is ok
I guess I will clean some caches, update and restart
c
or run something simple like tasks in the intellij gradle window
d
I use it extensively with spring-restdocs
😍 2
t
it is what I am doing atm, I realized today when I moved a project from maven to gradle I forgot to migrate the asciidoc configuration. Now I am done, but intellij still complains. Will figure out 🙂
c
interesting... if you continue to have problems, I can try to help you later today
d
If it helps, here's a very very cut down version of a build.gradle.kts. It may provide some helpful pointers
t
thanks guys, ofc I should have gone with the
have you tried turn it off and on again
solution earlier. restarting with fresh cache solved the issue for me
😁 1
@dharrigan tbf I don't get what
asciidoctor("org.springframework.restdocs:spring-restdocs-asciidoctor")
is for, I know it is in spring restdocs documentation, but even omitting it I don't really see any difference
c
It's a macro. Spring REST Docs adds some extra shortcuts on top of just the normal asciidoctor ones
the link is to a particular slide which shows you what the macro replaces