diff --git a/build.gradle b/build.gradle index d59ac8e8f..5a3400213 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,9 @@ import java.awt.Desktop +ext { + checkstyleVersion = '10.14.2' +} + plugins { id 'java' id 'org.springframework.boot' version '3.2.0' @@ -11,6 +15,8 @@ plugins { id 'pl.allegro.tech.build.axion-release' version '1.15.1' // maven publish plugin id 'maven-publish' + // gradle checkstyle plugin + id 'checkstyle' } apply plugin: 'java' @@ -18,6 +24,7 @@ apply plugin: 'checkstyle' apply plugin: 'io.spring.javaformat' apply plugin: 'pl.allegro.tech.build.axion-release' apply plugin: 'maven-publish' +apply plugin: 'checkstyle' gradle.startParameter.excludedTaskNames += [ "checkFormatAot", "checkFormatAotTest" ] @@ -33,8 +40,12 @@ java { sourceCompatibility = JavaVersion.VERSION_17 } +checkstyle { + toolVersion = checkstyleVersion +} + repositories { -// mavenCentral() + mavenCentral() maven { url 'http://localhost:9081/repository/maven-central-proxy/' allowInsecureProtocol = true diff --git a/config/checksyle/rulex.xml b/config/checksyle/rulex.xml new file mode 100644 index 000000000..b8a8f11e3 --- /dev/null +++ b/config/checksyle/rulex.xml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file