eed3si9n / scalaxb

scalaxb is an XML data binding tool for Scala.

Home Page:http://scalaxb.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scalaxbGenerateRuntime setting not taken into account

LeonardMeyer opened this issue · comments

Thanks for the project ! I'm running into a small issue. In my build I set :

(Compile / scalaxbGenerateRuntime) := false

When I run show Compile / scalaxbGenerateRuntime it is indeed false, but when I run the compilation it still generates me the xmlprotocol.scala file, as well as the scalaxb.scala one. From what I understood, it generates mappers from/to XML for the user, but I do not need those, just the XSD -> Scala code once at compile. Worse some of the generated code in those files gets flagged by compiler options for unused values. I can filter them, but still.

Moreover if I read my build :

[warn] there's a key that's not used by any other settings/tasks:
[warn]  
[warn] * xxxx / Compile / scalaxbGenerateRuntime
[warn]   +- /home/centos/Documents/IdeaProjects/xxxx/project/Defaults.scala:83
[warn]  
[warn] note: a setting might still be used by a command; to exclude a key from this `lintUnused` check
[warn] either append it to `Global / excludeLintKeys` or call .withRank(KeyRanks.Invisible) on the key

Versions :

"org.scalaxb" % "sbt-scalaxb" % "1.8.1"
"org.scala-lang.modules" %% "scala-xml" % "1.3.0"
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2"