-
Notifications
You must be signed in to change notification settings - Fork 379
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
[#1179] feat(build): Make Gravitino build and run against JDK8, 11, 17 #1199
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ public static EntitySerDe createEntitySerDe(String name) { | |
String className = ENTITY_SERDES.getOrDefault(name, name); | ||
|
||
try { | ||
return (EntitySerDe) Class.forName(className).newInstance(); | ||
return (EntitySerDe) Class.forName(className).getDeclaredConstructor().newInstance(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is deprecated in Java 11+ |
||
} catch (Exception e) { | ||
LOG.error("Failed to create EntitySerDe by name {}.", name, e); | ||
throw new RuntimeException("Failed to create EntitySerDe: " + name, e); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,7 @@ version = 0.4.0-SNAPSHOT | |
#sonatype credentials | ||
SONATYPE_USER = admin | ||
SONATYPE_PASSWORD = password | ||
|
||
#jdkVersion is used to specify the version of JDK to build and test against Gravitino, current | ||
# supported version is 8, 11, and 17. | ||
jdkVersion = 8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if the value of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is the same as before, if the specified There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean if the value of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it will build, test against jdk8, no matter which version you installed in your environment. |
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.
AccessController
is deprecated in JDK17 with no replacement, so currently suppress the warning as a workaround.