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

Java: Publish JAR to local Maven repository #256

Merged

Conversation

jonathanl-bq
Copy link

This change publishes the Java glide client JAR to the local Maven repository. The built JAR file contains the Rust native lib code. This is not portable, so we will need to ensure that we build one JAR per supported platform.

* Native Interface).
*
* @see <a
* href="http://adamheinrich.com/blog/2012/how-to-load-native-jni-library-from-jar">http://adamheinrich.com/blog/2012/how-to-load-native-jni-library-from-jar</a>
Copy link
Author

Choose a reason for hiding this comment

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

Most of the contents of this file are taken from here. The code is MIT licensed, which is why I preferred this solution over the NativeLibLoader solution that was copy pasted from stack overflow.

publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'software.amazon'
Copy link
Author

Choose a reason for hiding this comment

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

I set this based on what they use for the Amazon SDK in the Polyglot dependencies. It might not be correct.

Choose a reason for hiding this comment

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

worth asking them

Copy link

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

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

lgtm!

mavenJava(MavenPublication) {
groupId = 'software.amazon'
artifactId = 'glide'
version = "0.0.1"

Choose a reason for hiding this comment

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

keep this for now, but I think we want sync the version number with node/python before we publish

}
}
repositories {
mavenLocal()

Choose a reason for hiding this comment

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

nice

@jonathanl-bq jonathanl-bq merged commit 382ef2b into java/integ_lotjonat_publish_jar May 2, 2024
11 checks passed
@Yury-Fridlyand Yury-Fridlyand deleted the java/dev_lotjonat_publish_jar branch May 2, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants