Skip to content

Commit 5dbec34

Browse files
authored
Revert Gradle "javaagent" specification
1 parent 2109619 commit 5dbec34

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,11 @@ dependencies {
211211
...
212212
compile 'com.nordstrom.tools:junit-foundation:11.3.0'
213213
}
214+
ext {
215+
junitFoundation = configurations.compile.resolvedConfiguration.resolvedArtifacts.find { it.name == 'junit-foundation' }
216+
}
214217
test.doFirst {
215-
jvmArgs "-javaagent:${classpath.find { it.name == 'junit-foundation' }.absolutePath}"
218+
jvmArgs "-javaagent:${junitFoundation.file}"
216219
}
217220
test {
218221
// debug true

0 commit comments

Comments
 (0)