Make muzzle task depend on instrumentation project runtimeclasspath (#1408)

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
This commit is contained in:
Pavol Loffay 2020-10-21 10:46:48 +02:00 committed by GitHub
parent 9c97941580
commit 137df965ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ class MuzzlePlugin implements Plugin<Project> {
}
def muzzleTask = instrumentationProject.task(taskName) {
dependsOn(instrumentationProject.configurations.named("runtimeClasspath"))
doLast {
ClassLoader instrumentationCL = createInstrumentationClassloader(instrumentationProject, toolingProject)
def ccl = Thread.currentThread().contextClassLoader