Skip to content

Cannot make sbt compile fail #7

Closed Answered by mcavigelli
mcavigelli asked this question in Q&A
Discussion options

You must be logged in to vote

Hi community

The checkstyle task on its own behaves as expected. It is also reacts on the checkstyleSeverityLevel setting.
But when invoked through the compile task (Compile / checkstyle) := (Compile / checkstyle).triggeredBy(Compile / compile).value, it does not fail the compile task.

Not sure if my expectation was wrong or if this is a bug. Anyway, the desired behaviour can be done with two separate tasks:

sbt checkstyle
sbt compile

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mcavigelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant