Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scalaxbGenerateRuntime setting not taken into account #566

Open
LeonardMeyer opened this issue Apr 12, 2021 · 0 comments
Open

scalaxbGenerateRuntime setting not taken into account #566

LeonardMeyer opened this issue Apr 12, 2021 · 0 comments

Comments

@LeonardMeyer
Copy link

LeonardMeyer commented Apr 12, 2021

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant