Skip to content

Commit

Permalink
[mxnet] Fixes build error on JDK 22
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Sep 27, 2024
1 parent fb51e89 commit a6bb5ea
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions engines/mxnet/jnarator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ tasks {
checkstyleMain { exclude("ai/djl/mxnet/jnarator/parser/*") }
pmdMain { exclude("ai/djl/mxnet/jnarator/parser/*") }

compileJava {
options.apply {
release = 8
encoding = "UTF-8"
compilerArgs = listOf("-proc:none", "-Xlint:all,-options,-static", "-Werror")
}
}

jar {
dependsOn(generateGrammarSource)
manifest {
Expand All @@ -39,5 +47,4 @@ tasks {
generateTestGrammarSource {
dependsOn(verifyJava)
}

}
}

0 comments on commit a6bb5ea

Please sign in to comment.