Skip to content
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

Enable build and test with JDK11 #5528

Merged
merged 20 commits into from
May 20, 2022

Conversation

gerashegalov
Copy link
Collaborator

@gerashegalov gerashegalov commented May 18, 2022

This PR closes #4649, #3682.

  • add a doc for JDK9+ property with potential cross-compilation to lower Java major versions
  • allowConventionalDistJar for conventional jar creation when only one shim is included
  • automatically detect conventional jar and suppress warnings about classloader issues
  • remove manual configuration of javac args for scala-maven-plugin. This plugin processes maven .compiler.* and adds the right set of javac opts automatically. 3.4.x we use for db doesn't handle maven.compiler.release, however, we don't need it at the moment and it's currently not used.
  • disambiguate calls to buf.position() generating errors on JDK11

Note this PR only builds skipping running tests -DskipTests because we still need to address #3851 (comment)

Signed-off-by: Gera Shegalov gera@apache.org

Signed-off-by: Gera Shegalov <gera@apache.org>
Signed-off-by: Gera Shegalov <gera@apache.org>
Signed-off-by: Gera Shegalov <gera@apache.org>
Signed-off-by: Gera Shegalov <gera@apache.org>
@gerashegalov
Copy link
Collaborator Author

build

@jlowe jlowe added this to the May 2 - May 20 milestone May 18, 2022
@gerashegalov gerashegalov self-assigned this May 18, 2022
@gerashegalov gerashegalov added the build Related to CI / CD or cleanly building label May 18, 2022
@gerashegalov
Copy link
Collaborator Author

build

otherwise activateByDefault is not activated
@gerashegalov
Copy link
Collaborator Author

build

Signed-off-by: Gera Shegalov <gera@apache.org>
pom.xml Outdated Show resolved Hide resolved
@gerashegalov gerashegalov changed the title Enable build with JDK11 Enable build and test with JDK11 May 20, 2022
Signed-off-by: Gera Shegalov <gera@apache.org>
Signed-off-by: Gera Shegalov <gera@apache.org>
@gerashegalov
Copy link
Collaborator Author

build

CONTRIBUTING.md Outdated Show resolved Hide resolved
Comment on lines +115 to +117
Also make sure to use scala-maven-plugin version `scala.plugin.version` 4.6.0 or later to correctly process
[maven.compiler.release](https://github.com/davidB/scala-maven-plugin/blob/4.6.1/src/main/java/scala_maven/ScalaMojoSupport.java#L161)
flag if cross-compilation is required.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why we don't simply update the scala plugin version in the pom? Is there something that breaks if we do?

Copy link
Collaborator Author

@gerashegalov gerashegalov May 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing should break, however, I am mitigating risks since my time for this effort is limited and cross-compilation is not necessary right now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we should do a followup for this then? Normally we don't tolerate bugs long-term in Maven plugins if upgrading to a fixed version works.

Co-authored-by: Jason Lowe <jlowe@nvidia.com>
@gerashegalov
Copy link
Collaborator Author

build

1 similar comment
@gerashegalov
Copy link
Collaborator Author

build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to CI / CD or cleanly building
Projects
None yet
2 participants