Skip to content

Commit 86cf470

Browse files
committed
Cleanup forbidden dependencies plugin usage
1 parent c1c8512 commit 86cf470

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

build-tools-internal/src/main/groovy/elasticsearch.forbidden-dependencies.gradle

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ Closure checkDeps = { Configuration configuration ->
2222
}
2323
}
2424

25-
subprojects {
26-
if (project.path.startsWith(':test:fixtures:') || project.path.equals(':build-tools')) {
27-
// fixtures are allowed to use whatever dependencies they want...
28-
return
29-
}
30-
pluginManager.withPlugin('java') {
31-
checkDeps(configurations.compileClasspath)
32-
checkDeps(configurations.testCompileClasspath)
33-
}
25+
if (project.path.startsWith(':test:fixtures:') || project.path.equals(':build-tools')) {
26+
// fixtures are allowed to use whatever dependencies they want...
27+
return
28+
}
29+
30+
pluginManager.withPlugin('java') {
31+
checkDeps(configurations.compileClasspath)
32+
checkDeps(configurations.testCompileClasspath)
3433
}

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,5 @@ gradle.lifecycle.beforeProject {
175175
// unfortunately we cannot nest script plugins
176176
apply plugin: 'elasticsearch.eclipse'
177177
apply plugin: 'elasticsearch.formatting'
178+
apply plugin: 'elasticsearch.forbidden-dependencies'
178179
}

0 commit comments

Comments
 (0)