Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Add run-time and build-time configuration #31

Merged
merged 3 commits into from Oct 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions google-cloud-graalvm-samples/logging-sample/pom.xml
Expand Up @@ -93,6 +93,8 @@
-H:EnableURLProtocols=http,https
--report-unsupported-elements-at-runtime
--enable-all-security-services
-H:+TraceClassInitialization
-H:+ReportExceptionStackTraces
</buildArgs>
</configuration>
<executions>
Expand Down
2 changes: 2 additions & 0 deletions google-cloud-graalvm-samples/pubsub-sample/pom.xml
Expand Up @@ -99,6 +99,8 @@
-H:EnableURLProtocols=http,https
--report-unsupported-elements-at-runtime
--enable-all-security-services
-H:+TraceClassInitialization
-H:+ReportExceptionStackTraces
</buildArgs>
</configuration>
<executions>
Expand Down
2 changes: 2 additions & 0 deletions google-cloud-graalvm-samples/storage-sample/pom.xml
Expand Up @@ -98,6 +98,8 @@
-H:EnableURLProtocols=http,https
--report-unsupported-elements-at-runtime
--enable-all-security-services
-H:+TraceClassInitialization
-H:+ReportExceptionStackTraces
</buildArgs>
</configuration>
<executions>
Expand Down
2 changes: 2 additions & 0 deletions google-cloud-graalvm-samples/trace-sample/pom.xml
Expand Up @@ -98,6 +98,8 @@
-H:EnableURLProtocols=http,https
--report-unsupported-elements-at-runtime
--enable-all-security-services
-H:+TraceClassInitialization
-H:+ReportExceptionStackTraces
</buildArgs>
</configuration>
<executions>
Expand Down
@@ -0,0 +1,15 @@
# Copyright 2019 The Netty Project
#
# The Netty Project licenses this file to you 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=io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator,io.grpc.netty.shaded.io.netty.buffer.ByteBufAllocator,io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil,io.grpc.netty.shaded.io.netty.buffer.AbstractReferenceCountedByteBuf
@@ -0,0 +1,16 @@
# Copyright 2019 The Netty Project
#
# The Netty Project licenses this file to you 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-build-time=io.grpc.netty.shaded.io.netty \
--initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.codec.http.HttpObjectEncoder,io.grpc.netty.shaded.io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder,io.grpc.netty.shaded.io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder
@@ -0,0 +1,16 @@
# Copyright 2019 The Netty Project
#
# The Netty Project licenses this file to you 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-build-time=io.grpc.netty.shaded.io.netty \
--initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2CodecUtil,io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ClientUpgradeCodec,io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler,io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameWriter
@@ -0,0 +1,15 @@
# Copyright 2019 The Netty Project
#
# The Netty Project licenses this file to you 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=io.grpc.netty.shaded.io.netty.util.AbstractReferenceCounted,io.grpc.netty.shaded.io.netty.util.concurrent.GlobalEventExecutor,io.grpc.netty.shaded.io.netty.util.concurrent.ImmediateEventExecutor,io.grpc.netty.shaded.io.netty.util.concurrent.ScheduledFutureTask,io.grpc.netty.shaded.io.netty.util.internal.ThreadLocalRandom
@@ -0,0 +1,15 @@
# Copyright 2019 The Netty Project
#
# The Netty Project licenses this file to you 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=io.grpc.netty.shaded.io.netty.handler.ssl.util.ThreadLocalInsecureRandom
@@ -0,0 +1,15 @@
# Copyright 2019 The Netty Project
#
# The Netty Project licenses this file to you 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 = -H:ReflectionConfigurationResources=${.}/reflection-config.json
@@ -0,0 +1,15 @@
[
{
"name": "io.grpc.netty.shaded.io.netty.channel.socket.nio.NioServerSocketChannel",
"methods": [
{ "name": "<init>", "parameterTypes": [] }
]
},
{
"name": "sun.nio.ch.SelectorImpl",
"fields": [
{ "name": "selectedKeys", "allowUnsafeAccess" : true},
{ "name": "publicSelectedKeys", "allowUnsafeAccess" : true}
]
}
]
@@ -0,0 +1,10 @@
Args = --initialize-at-build-time=org.conscrypt \
--initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.ssl.OpenSsl,\
io.grpc.netty.shaded.io.netty.handler.ssl.OpenSslContext,\
io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpenSslEngine,\
io.grpc.netty.shaded.io.netty.internal.tcnative.SSL,\
io.grpc.netty.shaded.io.netty.internal.tcnative.CertificateVerifier,\
io.grpc.netty.shaded.io.netty.internal.tcnative.SSLPrivateKeyMethod,\
io.grpc.netty.shaded.io.grpc.netty,\
io.grpc.netty.shaded.io.netty.channel.epoll,\
io.grpc.netty.shaded.io.netty.channel.unix