Skip to content

Commit

Permalink
Limit asciidoc-extensions to Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Jan 25, 2024
1 parent 028830d commit 04480f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build-logic/asciidoc-extensions/asciidoc-extensions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ dependencies {
compileOnly 'org.asciidoctor:asciidoctorj:2.5.11'
}

java {
toolchain {
// IntelliJ currently doesn't support running classes compiled with Java 21 in its preview viewer
languageVersion = JavaLanguageVersion.of(17)
}
}

tasks.register('installAsciidocExtension', Copy) {
from(tasks.named('jar'))
into('../../.asciidoctor/lib')
Expand All @@ -16,4 +23,3 @@ tasks.register('installAsciidocExtension', Copy) {
tasks.named('ideaModule') {
it.dependsOn('installAsciidocExtension')
}

0 comments on commit 04480f0

Please sign in to comment.