-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade forbiddenapis to 2.6 #33809
Upgrade forbiddenapis to 2.6 #33809
Conversation
Pinging @elastic/es-core-infra |
@@ -51,7 +51,7 @@ | |||
public class ThirdPartyAuditTask extends DefaultTask { | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Yes this message was changed due to the cleanup of missing class reporting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 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 )