Skip to content

Commit 1d8c298

Browse files
authored
Revise Gradle config Java agent specification
This specification was encountered here: http://jmockit.github.io/tutorial/Introduction.html#gradle
1 parent be1eda2 commit 1d8c298

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ repositories {
209209
}
210210
dependencies {
211211
...
212-
compile 'com.nordstrom.tools:junit-foundation:11.2.0
213-
'
214-
}
215-
ext {
216-
junitFoundation = configurations.compile.resolvedConfiguration.resolvedArtifacts.find { it.name == 'junit-foundation' }
212+
compile 'com.nordstrom.tools:junit-foundation:11.2.0'
217213
}
214+
//ext {
215+
// junitFoundation = configurations.compile.resolvedConfiguration.resolvedArtifacts.find { it.name == 'junit-foundation' }
216+
//}
218217
test.doFirst {
219-
jvmArgs "-javaagent:${junitFoundation.file}"
218+
jvmArgs "-javaagent:${classpath.find { it.name == 'junit-foundation' }.absolutePath}"
219+
// jvmArgs "-javaagent:${junitFoundation.file}"
220220
}
221221
test {
222222
// debug true

0 commit comments

Comments
 (0)