diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 531c327c..17460885 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -29,6 +29,8 @@ tasks.test { jvmArgs("-agentpath:${jvmti.layout.buildDirectory.get().asFile}/native-libs/libjvmti.so") jvmArgs("-javaagent:${agent.layout.buildDirectory.get().asFile}/libs/" + "${agent.name}-${agent.version}-shadow.jar") + dependsOn(":instrumentation:jdk:build") + dependsOn(":instrumentation:agent:build") } tasks.named("build") { diff --git a/instrumentation/agent/build.gradle.kts b/instrumentation/agent/build.gradle.kts index 5b5ee869..6d703d93 100644 --- a/instrumentation/agent/build.gradle.kts +++ b/instrumentation/agent/build.gradle.kts @@ -17,6 +17,10 @@ dependencies { implementation(project(":instrumentation:base")) } +tasks.build { + dependsOn("shadowJar") +} + tasks.named("shadowJar") { archiveClassifier.set("shadow") relocate("org.objectweb.asm", "org.pastalab.fray.instrumentation.agent.asm") diff --git a/instrumentation/jdk/build.gradle.kts b/instrumentation/jdk/build.gradle.kts index a75fdc8d..07f2cf49 100644 --- a/instrumentation/jdk/build.gradle.kts +++ b/instrumentation/jdk/build.gradle.kts @@ -38,7 +38,6 @@ tasks.build { val jdkPath = "${layout.buildDirectory.get().asFile}/java-inst" outputs.dirs(jdkPath) doLast { - println(state) if (!state.upToDate) { exec { if (File(jdkPath).exists()) {