-
Notifications
You must be signed in to change notification settings - Fork 0
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
Java: Publish JAR to local Maven repository #256
Conversation
* 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> |
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.
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' |
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.
I set this based on what they use for the Amazon SDK in the Polyglot dependencies. It might not be correct.
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.
worth asking them
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!
mavenJava(MavenPublication) { | ||
groupId = 'software.amazon' | ||
artifactId = 'glide' | ||
version = "0.0.1" |
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.
keep this for now, but I think we want sync the version number with node/python before we publish
} | ||
} | ||
repositories { | ||
mavenLocal() |
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
382ef2b
into
java/integ_lotjonat_publish_jar
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.