From 286c6e7e3efd699b8cd1e84974355215348dbf0b Mon Sep 17 00:00:00 2001 From: samuelim01 Date: Thu, 26 Oct 2023 21:01:50 +0800 Subject: [PATCH] build.gradle: Enable assertions By default, assertions are disabled. This could create a situation where one thinks that all assertions are verified when they in fact are not being checked. According to [the project details](https://nus-cs2103-ay2324s1.github.io/website/schedule/week10/project.html#3-start-the-next-iteration), assertions should be enabled in the gradle file. Let's modify build.gradle to enable assertions. --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 88741522f2e..361465fced2 100644 --- a/build.gradle +++ b/build.gradle @@ -69,4 +69,8 @@ shadowJar { archiveFileName = 'wedlog.jar' } +run { + enableAssertions = true +} + defaultTasks 'clean', 'test'