From cb3a5b93eae0a759c7d484f83cdeb9d4bc6db720 Mon Sep 17 00:00:00 2001 From: Reynold Morel Date: Wed, 20 Nov 2024 10:54:07 -0400 Subject: [PATCH] Disable auto checks of checkstyle and spotless when building --- rskj-core/build.gradle | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/rskj-core/build.gradle b/rskj-core/build.gradle index f7a8fb332a..39b637edda 100644 --- a/rskj-core/build.gradle +++ b/rskj-core/build.gradle @@ -21,6 +21,7 @@ checkstyle { } spotless { + enforceCheck false java { googleJavaFormat() indentWithTabs(2) @@ -150,6 +151,7 @@ tasks.withType(Checkstyle).configureEach { Checkstyle task -> } } } + task.dependsOn processResources } configurations { @@ -565,9 +567,14 @@ static def amendPathIfNeeded(details) { } } -tasks.named('check').configure { - dependsOn 'checkstyleMain' - dependsOn 'checkstyleTest' - dependsOn 'checkstyleJmh' - dependsOn 'checkstyleIntegrationTest' -} \ No newline at end of file +task checkstyleAll { + group = 'Verification' + description = 'Run all Checkstyle checks' + dependsOn 'checkstyleMain', 'checkstyleTest', 'checkstyleJmh', 'checkstyleIntegrationTest' +} + +task spotlessAll { + group = 'Verification' + description = 'Run all Spotless checks' + dependsOn 'spotlessJavaCheck' +}