Skip to content

Commit 217cf25

Browse files
committed
avoid circular dependency in archrules-common
1 parent 3e76864 commit 217cf25

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/nebula/plugin/plugin/ArchRulesUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.gradle.api.Project;
44

55
import java.util.List;
6+
import java.util.Set;
67

78
/**
89
* Shared code for applying archRules
@@ -12,7 +13,8 @@ private ArchRulesUtil() {
1213
}
1314

1415
static void setupArchRules(Project project) {
15-
if(!project.getName().equals("nebula-archrules-core")) { // avoid circular dependency
16+
// avoid circular dependencies in core libraries
17+
if (!Set.of("nebula-archrules-core", "archrules-common").contains(project.getName())) {
1618
String nebulaRulesVersion = "0.+";
1719
project.getPlugins().apply("com.netflix.nebula.archrules.runner");
1820
final var nebulaRules = List.of(

0 commit comments

Comments
 (0)