Skip to content

Commit ef34668

Browse files
committed
remove GradleUtils from build script
1 parent 849d19d commit ef34668

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plugins/examples/security-authorization-engine/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
apply plugin: 'elasticsearch.esplugin'
22
apply plugin: 'elasticsearch.java-rest-test'
33

4-
import org.elasticsearch.gradle.util.GradleUtils
5-
64
esplugin {
75
name 'security-authorization-engine'
86
description 'An example spi extension plugin for security that implements an Authorization Engine'
@@ -12,13 +10,12 @@ esplugin {
1210
noticeFile rootProject.file('NOTICE.txt')
1311
}
1412

15-
// let the javaRestTest see the classpath of main
16-
GradleUtils.extendSourceSet(project, "main", "javaRestTest")
17-
1813
dependencies {
1914
compileOnly "org.elasticsearch.plugin:x-pack-core:${versions.elasticsearch}"
2015
javaRestTestImplementation "org.elasticsearch.plugin:x-pack-core:${versions.elasticsearch}"
2116
javaRestTestImplementation "org.elasticsearch.client:elasticsearch-rest-high-level-client:${versions.elasticsearch}"
17+
// let the javaRestTest see the classpath of main
18+
javaRestTestImplementation project.sourceSets.main.runtimeClasspath
2219
}
2320
//no unit tests
2421
test.enabled = false

0 commit comments

Comments
 (0)