Skip to content

Commit

Permalink
Fix build dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
aoli-al committed Aug 13, 2024
1 parent 0b461fe commit 07c46bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
4 changes: 4 additions & 0 deletions instrumentation/agent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ dependencies {
implementation(project(":instrumentation:base"))
}

tasks.build {
dependsOn("shadowJar")
}

tasks.named<ShadowJar>("shadowJar") {
archiveClassifier.set("shadow")
relocate("org.objectweb.asm", "org.pastalab.fray.instrumentation.agent.asm")
Expand Down
1 change: 0 additions & 1 deletion instrumentation/jdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 07c46bd

Please sign in to comment.