diff --git a/build.gradle b/build.gradle index 9380b95..b1cd168 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ final def semverProcessor = "net.thauvin.erik:semver:1.2.0" ext.versions = [ log4j : '2.14.1', - pmd : '6.34.0', + pmd : '6.35.0', ] repositories { @@ -65,8 +65,8 @@ dependencies { test { testLogging { - exceptionFormat "full" - events /* "passed", */ "skipped", "failed" + exceptionFormat = "full" + events(/* "passed", */ "skipped", "failed") } useTestNG() { options.suites('src/test/resources/testng.xml') @@ -129,7 +129,7 @@ clean { } run { - args '-d' + args('-d') } incrementBuildMeta { @@ -144,9 +144,9 @@ incrementBuildMeta { sonarqube { properties { - property "sonar.organization", "ethauvin-github" - property "sonar.projectKey", "ethauvin_mobibot" - property "sonar.host.url", "https://sonarcloud.io" + property("sonar.organization", "ethauvin-github") + property("sonar.projectKey", "ethauvin_mobibot") + property("sonar.host.url", "https://sonarcloud.io") } } @@ -155,7 +155,7 @@ jacoco { } jacocoTestReport { - dependsOn test + dependsOn(test) reports { html.enabled = true xml.enabled = true @@ -175,27 +175,26 @@ tasks.sonarqube { task copyToDeploy(type: Copy) { from('properties') - from jar - into deployDir + from(jar) + into(deployDir) } task copyToDeployLib(type: Copy) { from(configurations.runtimeClasspath) { - exclude 'annotations-*.jar' + exclude('annotations-*.jar') } - into deployDir + '/lib' + into(deployDir + '/lib') } task deploy(dependsOn: ['clean', 'build', 'jar']) { description = "Copies all needed files to the ${deployDir} directory." group = 'Publishing' - outputs.dir deployDir - inputs.files copyToDeploy - inputs.files copyToDeployLib + outputs.dir(deployDir) + inputs.files(copyToDeploy, copyToDeployLib) doLast { file(deployDir + '/logs').mkdir() } - mustRunAfter clean + mustRunAfter(clean) } task release(dependsOn: ['wrapper', 'deploy']) { diff --git a/config/pmd.xml b/config/pmd.xml index 2760bff..890a490 100644 --- a/config/pmd.xml +++ b/config/pmd.xml @@ -1,116 +1,82 @@ + xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> Erik's Ruleset - - - - - - - - - - - - + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + @@ -118,85 +84,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -204,60 +96,16 @@ - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + diff --git a/src/main/java/net/thauvin/erik/mobibot/modules/War.java b/src/main/java/net/thauvin/erik/mobibot/modules/War.java index 32cf9e6..88e70f7 100644 --- a/src/main/java/net/thauvin/erik/mobibot/modules/War.java +++ b/src/main/java/net/thauvin/erik/mobibot/modules/War.java @@ -52,10 +52,10 @@ public final class War extends AbstractModule { // War command private static final String WAR_CMD = "war"; // Deck of card - private static final String[] WAR_DECK = - new String[]{"Ace", "King", "Queen", "Jack", "10", "9", "8", "7", "6", "5", "4", "3", "2"}; + private static final String[] WAR_DECK = + {"Ace", "King", "Queen", "Jack", "10", "9", "8", "7", "6", "5", "4", "3", "2"}; // Suits for the deck of card - private static final String[] WAR_SUITS = new String[]{"Hearts", "Spades", "Diamonds", "Clubs"}; + private static final String[] WAR_SUITS = {"Hearts", "Spades", "Diamonds", "Clubs"}; /** * The default constructor. diff --git a/version.properties b/version.properties index b0d3bda..772f2ee 100644 --- a/version.properties +++ b/version.properties @@ -1,9 +1,9 @@ #Generated by the Semver Plugin for Gradle -#Fri May 28 11:36:41 PDT 2021 -version.buildmeta=855 +#Sat May 29 22:00:14 PDT 2021 +version.buildmeta=866 version.major=0 version.minor=8 version.patch=0 version.prerelease=beta version.project=mobibot -version.semver=0.8.0-beta+855 +version.semver=0.8.0-beta+866