Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/refactoring' into refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Mautsch committed Nov 15, 2024
2 parents d572d3a + 64c27bf commit 2db2030
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ repositories {

dependencies {
constraints {
annotationProcessor("org.mapstruct:mapstruct-processor:1.6.2")
implementation("org.mapstruct:mapstruct:1.6.2")
annotationProcessor("org.mapstruct:mapstruct-processor:1.6.3")
implementation("org.mapstruct:mapstruct:1.6.3")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0")
implementation("io.github.resilience4j:resilience4j-spring-boot3:2.2.0")
implementation("net.ttddyy.observation:datasource-micrometer-spring-boot:1.0.5")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.tngtech.archunit.junit.ArchTest;
import com.tngtech.archunit.lang.ArchRule;
import org.goafabric.calleeservice.Application;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportRuntimeHints;
Expand All @@ -22,11 +23,15 @@ public boolean includes(Location location) {
return !location.contains("$$") && !location.contains("EnhancerByCGLIB");
}
}

@ArchTest
static final ArchRule reflectionShouldBeAvoided =
noClasses()
.that().areNotAnnotatedWith(Configuration.class)
.that()
.areNotAnnotatedWith(Configuration.class)
.and()
.doNotImplement(RuntimeHintsRegistrar.class)
.and()
.haveSimpleNameNotContaining("AuditTrailListener")
.should()
.dependOnClassesThat()
.resideInAPackage("java.lang.reflect")
Expand Down

0 comments on commit 2db2030

Please sign in to comment.