From 0b7cfcacdf19edb956e316b8fb9982f63ec844f3 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sun, 31 Dec 2023 22:51:09 -0800 Subject: [PATCH] Bumped Checkstyle version to 10.12.7 --- README.md | 14 ++++++++------ .../src/bld/java/com/example/ExamplesBuild.java | 2 +- .../bld/extension/CheckstyleOperationBuild.java | 5 ++--- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0d588e6..e1922fb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [Checkstyle](https://checkstyle.sourceforge.io/) Extension for [bld](https://rife2.com/bldb) +# [Checkstyle](https://checkstyle.sourceforge.io/) Extension for [bld](https://rife2.com/bldb) [![License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Java](https://img.shields.io/badge/java-17%2B-blue)](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) @@ -27,13 +27,15 @@ public void checkstyle() throws Exception { - [View Examples](https://github.com/rife2/bld-checkstyle/blob/master/examples/src/bld/java/com/example/) -Please check the [CheckstyleOperation documentation](https://rife2.github.io/bld-checkstyle/rife/bld/extension/CheckstyleOperation.html#method-summary) for all available configuration options. +Please check the [CheckstyleOperation documentation](https://rife2.github.io/bld-checkstyle/rife/bld/extension/CheckstyleOperation.html#method-summary) +for all available configuration options. -### Checkstyle Dependency +## Checkstyle Dependency -Don't forget to add a Checkstyle `test` dependency to your build file, as it is not provided by the extension. For example: +Don't forget to add a Checkstyle `test` dependency to your build file, as it is +not provided by the extension. For example: ```java repositories = List.of(MAVEN_CENTRAL); -scope(test).include(dependency("com.puppycrawl.tools", "checkstyle", version(10, 12, 4))); - +scope(test).include(dependency("com.puppycrawl.tools", "checkstyle", version(10, 12, 7))); +``` diff --git a/examples/src/bld/java/com/example/ExamplesBuild.java b/examples/src/bld/java/com/example/ExamplesBuild.java index daf4979..9afcda0 100644 --- a/examples/src/bld/java/com/example/ExamplesBuild.java +++ b/examples/src/bld/java/com/example/ExamplesBuild.java @@ -19,7 +19,7 @@ public class ExamplesBuild extends BaseProject { downloadSources = true; repositories = List.of(MAVEN_CENTRAL); - scope(test).include(dependency("com.puppycrawl.tools", "checkstyle", version(10, 12, 4))); + scope(test).include(dependency("com.puppycrawl.tools", "checkstyle", version(10, 12, 7))); testOperation().mainClass("com.example.ExamplesTest"); } diff --git a/src/bld/java/rife/bld/extension/CheckstyleOperationBuild.java b/src/bld/java/rife/bld/extension/CheckstyleOperationBuild.java index fcff6a5..c9f00cf 100644 --- a/src/bld/java/rife/bld/extension/CheckstyleOperationBuild.java +++ b/src/bld/java/rife/bld/extension/CheckstyleOperationBuild.java @@ -45,11 +45,10 @@ public class CheckstyleOperationBuild extends Project { scope(compile) .include(dependency("com.uwyn.rife2", "bld", version(1, 7, 5))); scope(test) - .include(dependency("com.puppycrawl.tools", "checkstyle", version(10, 12, 5))) - .include(dependency("org.jsoup", "jsoup", version(1, 16, 2))) + .include(dependency("com.puppycrawl.tools", "checkstyle", version(10, 12, 7))) .include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 1))) .include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 1))) - .include(dependency("org.assertj", "assertj-core", version(3, 24, 2))); + .include(dependency("org.assertj", "assertj-core", version(3, 25, 0))); javadocOperation() .javadocOptions() .author()