Skip to content

Commit

Permalink
harness agent
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Oct 28, 2024
1 parent 98be0b4 commit a1ca620
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,26 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}

// This adds HARNESS_JAVA_AGENT to the testing command if it's
// provided through the command line.
// Local builds will still remain same as it only adds if the
// parameter is provided.
tasks.withType(Test) {
if(System.getProperty("HARNESS_JAVA_AGENT")) {
jvmArgs += [System.getProperty("HARNESS_JAVA_AGENT")]
}
}

// This makes sure that any test tasks for subprojects don't
// fail in case the test filter does not match.
gradle.projectsEvaluated {
tasks.withType(Test) {
filter {
setFailOnNoMatchingTests(false)
}
}
}

artifacts {
archives sourcesJar
archives javadocJar
Expand Down

0 comments on commit a1ca620

Please sign in to comment.