mirror of
https://github.com/sbt/sbt.git
synced 2026-09-02 20:00:01 +02:00
When a test fails with ClassNotFoundException/IllegalAccessError, sbt suggests a set command to change classLoaderLayeringStrategy. If the project name contains hyphens (e.g. bug-report), the suggested command was syntactically invalid because it parses as subtraction in Scala. Quote project IDs using Util.quoteIfNotScalaId so the suggested commands are valid when copy-pasted. Fixes #5803