Version 0.9.1-SNAPSHOT

This commit is contained in:
Erik C. Thauvin 2023-04-15 13:22:43 -07:00
parent ea82d9925e
commit d5ab8b6518
2 changed files with 11 additions and 10 deletions

View file

@ -12,25 +12,26 @@ To check all source code using the [java quickstart rule](https://pmd.github.io/
```java ```java
@BuildCommand @BuildCommand
public void pmd() throws Exception { public void pmd() throws Exception {
new PmdOperation new PmdOperation()
.fromProject(this) .fromProject(this)
.execute(); .execute();
} }
``` ```
```text ```text
./bld pmd test ./bld pmd test
``` ```
To check the main source code using a custom rule, [java error prone rule](https://pmd.github.io/pmd/pmd_rules_java.html) and failing on any violation. To check the main source directory using a custom rule, [java error prone rule](https://pmd.github.io/pmd/pmd_rules_java.html) and failing on any violation.
```java ```java
@BuildCommand @BuildCommand
public void pmdMain() throws Exception { public void pmdMain() throws Exception {
new PmdOperation new PmdOperation()
.fromProject(this) .fromProject(this)
.failOnValidation(true) .failOnViolation(true)
.addInputPath(project.srcMainDirectory().toPath()) .inputPaths(this.srcMainDirectory().toPath())
.addRuletSet("config/pmd.xml", "category/java/errorprone.xml"); .ruleSets("config/pmd.xml", "category/java/errorprone.xml")
.execute(); .execute();
} }
``` ```

View file

@ -16,7 +16,7 @@ public class PmdOperationBuild extends Project {
public PmdOperationBuild() { public PmdOperationBuild() {
pkg = "rife.bld.extension"; pkg = "rife.bld.extension";
name = "bld-pmd"; name = "bld-pmd";
version = version(0, 9, 0, "SNAPSHOT"); version = version(0, 9, 1, "SNAPSHOT");
javaRelease = 17; javaRelease = 17;
downloadSources = true; downloadSources = true;
@ -40,7 +40,7 @@ public class PmdOperationBuild extends Project {
.link("https://javadoc.io/doc/net.sourceforge.pmd/pmd-core/latest/"); .link("https://javadoc.io/doc/net.sourceforge.pmd/pmd-core/latest/");
publishOperation() publishOperation()
// .repository(MAVEN_LOCAL) // .repository(MAVEN_LOCAL)
.repository(version.isSnapshot() ? repository("rife2-snapshot") : repository("rife2")) .repository(version.isSnapshot() ? repository("rife2-snapshot") : repository("rife2"))
.info() .info()
.groupId("com.uwyn.rife2") .groupId("com.uwyn.rife2")