This package contains shared checkstyle config files for use across Java projects.
Merge the following code into your build.gradle.kts file:
plugins {
id("com.consentframework.consentmanagement.checkstyle-config") version "1.2.1"
}
repositories {
gradlePluginPortal()
}Merge the following code into your settings.gradle.kts file:
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
}Run gradle build and validate that:
- config/checkstyle/checkstyle.xml and config/checkstyle/suppressions.xml files are created
- The build runs checkstyleMain and checkstyleTest tasks
- If you have any Java source files with unused imports, the checkstyle tasks fail with relevant checkstyle violation errors
Checkstyle is a development tool that can be used to automatically validate whether Java code adheres to specified code style rules, which reduces the effort to maintain consistent coding standards.
Gradle is used to build the project and manage package dependencies.
Gradle Plugin Portal is used to publish the plugin for use by other Java Gradle projects.
The code in this project is released under the GPL-3.0 License.