Skip to content

Commit

Permalink
Explicitly list all the processor classes in javacOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Dec 2, 2024
1 parent 9b5f1b2 commit e294877
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3216,10 +3216,20 @@ lazy val `runtime-parser` =
Compile / moduleDependencies ++= Seq(
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion
),
Compile / javacOptions ++= Seq(
"-processor",
"org.enso.runtime.parser.processor.IRProcessor"
),
// Java compiler is not able to correctly find all the annotation processor, because
// one of the is on module-path. To overcome this, we explicitly list all of them here.
Compile / javacOptions ++= {
val processorClasses = Seq(
"org.enso.runtime.parser.processor.IRProcessor",
"org.enso.persist.impl.PersistableProcessor",
"org.netbeans.modules.openide.util.ServiceProviderProcessor",
"org.netbeans.modules.openide.util.NamedServiceProcessor"
).mkString(",")
Seq(
"-processor",
processorClasses
)
},
Compile / internalModuleDependencies := Seq(
(`syntax-rust-definition` / Compile / exportedModule).value,
(`persistance` / Compile / exportedModule).value,
Expand Down

0 comments on commit e294877

Please sign in to comment.