Skip to content

Commit f539c12

Browse files
committed
Explicitly run PMD when requested (like CheckStyle)
1 parent d2981e2 commit f539c12

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/check-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
cache: 'gradle'
9494

9595
- name: Run Checkstyle
96-
run: ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled=true
96+
run: ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled
9797

9898
pmd:
9999
runs-on: ubuntu-latest
@@ -115,7 +115,7 @@ jobs:
115115
cache: 'gradle'
116116

117117
- name: Run PMD
118-
run: ./gradlew pmdMain pmdTest
118+
run: ./gradlew pmdMain pmdTest -PpmdEnabled
119119

120120
- name: Upload report
121121
if: always()

.run/Run Tests.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<option name="executionName" />
66
<option name="externalProjectPath" value="$PROJECT_DIR$" />
77
<option name="externalSystemIdString" value="GRADLE" />
8-
<option name="scriptParameters" value="-PskipPMD" />
8+
<option name="scriptParameters" value="" />
99
<option name="taskDescriptions">
1010
<list />
1111
</option>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ tasks.withType(Checkstyle).configureEach {
120120
}
121121

122122
tasks.withType(Pmd).configureEach {
123-
enabled = !project.hasProperty("skipPMD")
123+
enabled = project.hasProperty("pmdEnabled")
124124
}
125125

126126
// Configure compileJava AND compileTestJava

0 commit comments

Comments
 (0)