[JAVA-3537] GraalVM support Created: 12/Dec/19  Updated: 28/Oct/23  Resolved: 07/Jan/20

Status: Closed
Project: Java Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.12.1

Type: Improvement Priority: Major - P3
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to JAVA-5196 Add MongoDB Java Driver to List of Gr... Backlog
related to JAVA-3580 Test against graalvm and test native-... Backlog
is related to JAVA-4856 Ensure ObjectId uniqueness when using... Closed

 Description   

Support GraalVM's native-image tool, that can create executable self-contained applications out of jar files.

See: https://github.com/mongodb/mongo-java-driver/pull/527



 Comments   
Comment by Githook User [ 07/Jan/20 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Add native-image.properties

To support GraalVM, defer the initialization of classes
com.mongodb.UnixServerAddress and com.mongodb.internal.connection.SnappyCompressor
to the run-time

JAVA-3537
Branch: 3.12.x
https://github.com/mongodb/mongo-java-driver/commit/4ea94c3738a51fdd59d0332ed37f22038ac75924

Comment by Githook User [ 07/Jan/20 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Add native-image.properties

To support GraalVM, defer the initialization of classes
com.mongodb.UnixServerAddress and com.mongodb.internal.connection.SnappyCompressor
to the run-time

JAVA-3537
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/9c3d62626fff5818ebb548fa72de5946dfccbada

Comment by Ross Lawley [ 06/Jan/20 ]

PR: https://github.com/rozza/mongo-java-driver/pull/345

I took and rebased the pr and reduced the changes to the build.gradle

Generated at Thu Feb 08 08:59:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.