Skip to content

Commit f56d7fc

Browse files
authored
Fix eclipse compilation after plugin spi (#76437)
Painless extensions now compile against it's `spi` subproject. Gradle and IntelliJ rig the dependencies correctly but Eclipse doesn't seem to manage it. This temporarily declares the `spi` as a `compileOnly` dependency when in Eclipse land so Eclipse can see the classes.
1 parent 59d75f2 commit f56d7fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/lang-painless/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ testClusters.all {
2626
configurations {
2727
spi
2828
compileOnlyApi.extendsFrom(spi)
29+
if (isEclipse) {
30+
// Eclipse buildship doesn't know about compileOnlyApi
31+
api.extendsFrom(spi)
32+
}
2933
}
3034

3135
dependencies {

0 commit comments

Comments
 (0)