diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64eb17c..f45e234 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,8 +24,7 @@ stages: style_job: stage: style script: - - java -jar ~/checkstyle.jar -c CheckStyle.xml `find src/ -name "*.java"` - - java -jar ~/checkstyle.jar -c CheckStyle.xml `find test/src/ -name "*.java"` + - mvn $MAVEN_CLI_OPTS checkstyle:checkstyle build_job: stage: build @@ -45,7 +44,6 @@ test_job: artifacts: when: on_success expire_in: 3 day - keep: latest paths: - target/site/jacoco reports: @@ -61,6 +59,5 @@ package_job: artifacts: when: on_success expire_in: 3 day - keep: latest paths: - target/*.jar \ No newline at end of file diff --git a/pom.xml b/pom.xml index ff9fb9b..de0114d 100644 --- a/pom.xml +++ b/pom.xml @@ -96,6 +96,18 @@ true + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.1.0 + + CheckStyle.xml + true + true + true + +