Skip to content

Commit

Permalink
Made aspectj deps optional
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak authored and shakuzen committed Jun 19, 2024
1 parent 1d0c2c9 commit 706ef1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions micrometer-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ dependencies {
}

// Aspects
implementation libs.aspectjrt
java11Implementation libs.aspectjrt
optionalApi 'org.aspectj:aspectjweaver'
optionalApi libs.aspectjrt
java11RuntimeOnly libs.aspectjrt

// instrumentation options
optionalApi 'io.dropwizard.metrics:metrics-core' // TODO move dropwizard out of core module? DropwizardMeterRegistry for e.g. JMX registry
Expand Down Expand Up @@ -212,6 +211,8 @@ dependencies {
testImplementation 'io.grpc:grpc-inprocess'
testImplementation 'io.grpc:grpc-testing-proto'
testImplementation 'com.squareup.retrofit2:retrofit'

testImplementation 'org.aspectj:aspectjweaver'
}

task shenandoahTest(type: Test) {
Expand Down
4 changes: 2 additions & 2 deletions micrometer-observation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ dependencies {
optionalApi 'javax.servlet:javax.servlet-api'

// Aspects
implementation libs.aspectjrt
optionalApi 'org.aspectj:aspectjweaver'
optionalApi libs.aspectjrt

// log monitoring
testImplementation 'ch.qos.logback:logback-classic'
Expand All @@ -47,4 +46,5 @@ dependencies {

testImplementation 'org.assertj:assertj-core'
testImplementation 'org.awaitility:awaitility'
testImplementation 'org.aspectj:aspectjweaver'
}

0 comments on commit 706ef1a

Please sign in to comment.