ObservedAspect uses `and not` which is invalid for the AspectJ compiler/weaver and only works with the Spring AOP implementation. See https://github.com/micrometer-metrics/micrometer/issues/1149
53 lines
1.3 KiB
Groovy
53 lines
1.3 KiB
Groovy
plugins {
|
|
id "io.freefair.aspectj.post-compile-weaving" version "8.0.1"
|
|
id "java"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
maven { url "https://repo.spring.io/snapshot" }
|
|
}
|
|
|
|
compileJava {
|
|
sourceCompatibility "17"
|
|
targetCompatibility "17"
|
|
}
|
|
|
|
compileTestJava {
|
|
sourceCompatibility "17"
|
|
targetCompatibility "17"
|
|
}
|
|
|
|
dependencies {
|
|
aspect platform(libs.org.springframework.spring.framework.bom)
|
|
aspect platform(libs.org.springframework.security.spring.security.bom)
|
|
aspect ("org.springframework.security:spring-security-aspects") {
|
|
exclude(group: "io.micrometer", module: "micrometer-observation")
|
|
}
|
|
|
|
implementation platform(libs.org.springframework.spring.framework.bom)
|
|
implementation platform(libs.org.springframework.security.spring.security.bom)
|
|
implementation platform("org.junit:junit-bom:5.10.0")
|
|
|
|
implementation "org.springframework.security:spring-security-config"
|
|
|
|
testImplementation "org.assertj:assertj-core:3.18.0"
|
|
testImplementation "org.springframework:spring-test"
|
|
testImplementation "org.springframework.security:spring-security-test"
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api"
|
|
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
|
|
}
|
|
|
|
tasks.withType(Test).configureEach {
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
//aspectj {
|
|
// version = aspectjVersion
|
|
//}
|
|
|