Upgrade forbiddenapis to 2.6#33809
Conversation
|
Pinging @elastic/es-core-infra |
|
|
||
| private static final Pattern MISSING_CLASS_PATTERN = Pattern.compile( | ||
| "WARNING: The referenced class '(.*)' cannot be loaded\\. Please fix the classpath!" | ||
| "WARNING: Class '(.*)' cannot be loaded \\(.*\\)\\. Please fix the classpath!" |
There was a problem hiding this comment.
Nice catch. Yes this message was changed due to the cleanup of missing class reporting.
There was a problem hiding this comment.
... a much appreciated change. Thanks for that !
|
The failed CI job is due to the fact that we still run Gradle with java 8 there, and run into class not found errors when scanning the java 9 classes which have references to classes introduced in 9. |
|
I was just wondering. Because a while back you changed the minimum version to build Elasticsearch to Java 9 (or even later), but used the "-release" to compile the Java 8 classes. |
|
...BTW this was also a reason why I wondered that you fork anywhere in Elasticsearch's build. Since Java 9 it's perfectly possible to build 100% Java 8 compatible artifacts, as the "release" switch allows to actually compile against the older class signatures (real cross-compiling). IMHO, no forking is needed anymore, except for tests. |
|
Yes, that is correct, we will only be working for tests. |
AFAIK we don't fully enforce that and CI was still running Gradle with java 8 using |
|
@rjernst this is ready for review now and passes CI |
* Upgrade forbiddenapis to 2.6 Closes #33759 * Switch forbiddenApis back to official plugin * Remove CLI based task * Fix forbiddenApisJava9
* Upgrade forbiddenapis to 2.6 Closes #33759 * Switch forbiddenApis back to official plugin * Remove CLI based task * Fix forbiddenApisJava9
Closes #33759 ( w.r.t. the version upgrade, but the discussion there is welcome to continue )