Jetbrains @NotNull annotations in final Maven builds?
Hello!
I am using Jetbrains @NotNull annotations and loving it. I have tests that demonstrates that exceptions are thrown when the contract is not followed. That works great then running the tests from inside IntelliJ Idea because I have the 'Add runtime assertions for notnull-annotated methods and parameters'.
But when the Continuous Integration service build the code and executes the tests. Those tests fails because those runtime annotations are not added to the source that it builds (only the manipulated version of the source that IntellJ runs the tests on).
How do you guys make your Maven builds insert those runtime assertions and include those in the final production builds?
Best regards,
- Morten Green Hermansen
Please sign in to leave a comment.
Hi Morten - it is a valid observation. Please upvote https://youtrack.jetbrains.com/issue/IDEA-226562