Skip to content

Commit

Permalink
Add workarounds to get PMD working with outdated Gradle version
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnerbart committed Nov 27, 2024
1 parent 89431c3 commit e8e3c24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ dependencies {
testImplementation("org.bouncycastle:bcpkix-jdk15on:${property("bouncycastle.version")}")
testImplementation("org.eclipse.paho:org.eclipse.paho.client.mqttv3:${property("paho.version")}")
testRuntimeOnly("org.slf4j:slf4j-simple:${property("slf4j.version")}")

// TODO: Workaround for PMD, see https://github.com/gradle/gradle/issues/24502. Can be removed after Gradle update.
pmd("net.sourceforge.pmd:pmd-ant:7.7.0")
pmd("net.sourceforge.pmd:pmd-java:7.7.0")
}

/* ******************** integration Tests ******************** */
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ plugin.javadoc-links.version=0.3.0
# options
#
org.gradle.caching=true
# TODO: Needed for PMD. Check if this can be removed after Gradle is updated.
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED

0 comments on commit e8e3c24

Please sign in to comment.