Skip to content

Commit 81aac1d

Browse files
authored
Fix muzzle so it can be run without assemble first (hypertrace#29)
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
1 parent 83916bb commit 81aac1d

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
TERM: dumb
4040
steps:
4141
- checkout
42-
- run: ./gradlew assemble muzzle
42+
- run: ./gradlew muzzle
4343

4444
workflows:
4545
version: 2

buildSrc/src/main/groovy/MuzzlePlugin.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ class MuzzlePlugin implements Plugin<Project> {
327327
}
328328

329329
def muzzleTask = instrumentationProject.task(taskName) {
330+
dependsOn(instrumentationProject.configurations.named("runtimeClasspath"))
330331
doLast {
331332
ClassLoader instrumentationCL = createInstrumentationClassloader(instrumentationProject, toolingProject)
332333
def ccl = Thread.currentThread().contextClassLoader

instrumentation/servlet/servlet-3.0/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ afterEvaluate{
3232
val instrumentationMuzzle by configurations.creating
3333

3434
dependencies {
35-
implementation(project(":blocking"))
35+
api(project(":blocking"))
3636

3737
compileOnly("javax.servlet:javax.servlet-api:3.1.0")
3838
implementation("net.bytebuddy:byte-buddy:1.10.10")

0 commit comments

Comments
 (0)