diff options
author | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-28 11:33:21 -0800 |
---|---|---|
committer | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-28 11:33:21 -0800 |
commit | 096b6866408da72db37051565f8b5b450df920d7 (patch) | |
tree | b91bda047cb9e261252b6e570276ef10cdd61c21 /build.gradle | |
parent | 9a650b94e04fd0aa565e24b04d4a7de47e9d0a1b (diff) | |
download | jca-096b6866408da72db37051565f8b5b450df920d7.tar jca-096b6866408da72db37051565f8b5b450df920d7.tar.gz jca-096b6866408da72db37051565f8b5b450df920d7.tar.bz2 jca-096b6866408da72db37051565f8b5b450df920d7.zip |
Add checkstyle
Signed-off-by: Yuuta Liang <yuutaw@student.cs.ubc.ca>
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 6796b7b..60876c8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { - id 'application' + id 'application' id 'jacoco' + id 'checkstyle' } application { @@ -44,6 +45,7 @@ dependencies { } test { + dependsOn checkstyleMain useJUnitPlatform() finalizedBy jacocoTestReport } @@ -65,3 +67,11 @@ jacocoTestReport { }) } } + +tasks.withType(Checkstyle) { + reports { + xml.required = false + html.required = true + configFile file('checkstyle.xml') + } +} |