@@ -40,19 +40,21 @@ subprojects {
40
40
* other libs. This keeps our dependencies simpler.
41
41
*/
42
42
project. afterEvaluate {
43
- configurations. all { Configuration conf ->
44
- dependencies. matching { it instanceof ProjectDependency }. all { ProjectDependency dep ->
45
- Project depProject = project. project(dep. path)
46
- if (depProject != null
47
- && (false == depProject. path. equals(' :libs:opensearch-core' ) &&
48
- false == depProject. path. equals(' :libs:opensearch-common' ))
49
- && depProject. path. startsWith(' :libs' )) {
50
- throw new InvalidUserDataException (" projects in :libs "
51
- + " may not depend on other projects libs except "
52
- + " :libs:opensearch-core or :libs:opensearch-common but "
53
- + " ${ project.path} depends on ${ depProject.path} " )
43
+ if (! project. path. equals(' :libs:agent-sm:agent' )) {
44
+ configurations. all { Configuration conf ->
45
+ dependencies. matching { it instanceof ProjectDependency }. all { ProjectDependency dep ->
46
+ Project depProject = project. project(dep. path)
47
+ if (depProject != null
48
+ && (false == depProject. path. equals(' :libs:opensearch-core' ) &&
49
+ false == depProject. path. equals(' :libs:opensearch-common' ))
50
+ && depProject. path. startsWith(' :libs' )) {
51
+ throw new InvalidUserDataException (" projects in :libs "
52
+ + " may not depend on other projects libs except "
53
+ + " :libs:opensearch-core or :libs:opensearch-common but "
54
+ + " ${ project.path} depends on ${ depProject.path} " )
55
+ }
56
+ }
54
57
}
55
- }
56
58
}
57
59
}
58
60
}
0 commit comments