Skip to content

Commit

Permalink
Make the asciidoc extension available to IJ plugin
Browse files Browse the repository at this point in the history
Copy the local to ``.asciidoctor/lib`, so that the IntelliJ Asciidoctor
plugin can pick it up. This can be done manually by calling the
`installAsciidocExtension` task on the `asciidoc-extensions` project,
or simply by triggering the `idea` task.
  • Loading branch information
leonard84 committed Jun 30, 2022
1 parent 9fa0e20 commit 5625d11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -35,5 +35,6 @@ stacktrace.log

Foo.*
/.shelf/
/.asciidoctor/

!.idea/icon.png
9 changes: 9 additions & 0 deletions build-logic/asciidoc-extensions/asciidoc-extensions.gradle
Expand Up @@ -8,3 +8,12 @@ dependencies {
compileOnly 'org.asciidoctor:asciidoctorj:2.5.4'
}

tasks.register('installAsciidocExtension', Copy) {
from(tasks.named('jar'))
into('../../.asciidoctor/lib')
}

tasks.named('ideaModule').configure {
it.dependsOn('installAsciidocExtension')
}

0 comments on commit 5625d11

Please sign in to comment.