Merge branch '3.0.x' into 3.1.x

This commit is contained in:
Marcus Da Coregio
2023-10-19 11:04:12 -03:00
29 changed files with 15 additions and 29 deletions

View File

@@ -36,7 +36,8 @@ class CheckstylePlugin implements Plugin<Project> {
.named("libs")
project.plugins.withType(JavaPlugin) {
def checkstyleDir = project.rootProject.file(CHECKSTYLE_DIR)
if (checkstyleDir.exists() && checkstyleDir.directory) {
boolean isSampleProject = project.name.contains('sample')
if (checkstyleDir.exists() && checkstyleDir.directory && !isSampleProject) {
project.getPluginManager().apply('checkstyle')
project.dependencies.add('checkstyle', versionCatalog.findLibrary('io-spring-javaformat-spring-javaformat-checkstyle').get())
project.dependencies.add('checkstyle', versionCatalog.findLibrary('io-spring-nohttp-nohttp-checkstyle').get())