Skip to content

Commit

Permalink
Initialize ObjectId, ClientMetadataHelper at runtime, GraalVM (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
katcharov authored Feb 6, 2023
1 parent 44d7045 commit 493b248
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
Args = --initialize-at-run-time=com.mongodb.UnixServerAddress,com.mongodb.internal.connection.SnappyCompressor
Args = --initialize-at-run-time=org.bson.types.ObjectId
3 changes: 0 additions & 3 deletions driver-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ ext {
pomName = 'MongoDB Java Driver Core'
}

// Add native-image.properties
sourceSets.main.resources.srcDirs = ['src/resources']

configurations {
consumableTestRuntimeOnly {
extendsFrom testRuntimeOnly
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Copyright 2008-present MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Args = --initialize-at-run-time=com.mongodb.UnixServerAddress,com.mongodb.internal.connection.SnappyCompressor,org.bson.types.ObjectId,com.mongodb.internal.connection.ClientMetadataHelper

0 comments on commit 493b248

Please sign in to comment.