Skip to content

Commit

Permalink
Merge pull request #20 from ballerina-platform/graalvm-check
Browse files Browse the repository at this point in the history
Add GraalVM native build support
  • Loading branch information
NipunaRanasinghe committed Aug 3, 2023
2 parents 841c21b + 81470d4 commit 8dc711d
Show file tree
Hide file tree
Showing 7 changed files with 1,084 additions and 8 deletions.
13 changes: 11 additions & 2 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
[package]
org = "ballerinax"
name = "snowflake"
version = "1.2.0"
version = "1.2.1"
authors = ["Ballerina"]
keywords = ["IT Operations/Cloud Services", "Cost/Paid"]
repository = "https://github.com/ballerina-platform/module-ballerinax-snowflake"
icon = "icon.png"
license = ["Apache-2.0"]
distribution = "2201.7.0"

[platform.java11]
graalvmCompatible = true

[[platform.java11.dependency]]
path = "../native/build/libs/snowflake-native-1.2.0.jar"
groupId = "io.ballerina.stdlib"
artifactId = "snowflake-native"
version = "1.2.1"
path = "../native/build/libs/snowflake-native-1.2.1.jar"

[[platform.java11.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "sql-native"
version = "1.10.0"
path = "./lib/sql-native-1.10.0.jar"
10 changes: 5 additions & 5 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.7.0"

[[package]]
org = "ballerina"
name = "io"
version = "1.3.0"
version = "1.5.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"}
Expand Down Expand Up @@ -39,7 +40,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "sql"
version = "1.5.0"
version = "1.10.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
Expand All @@ -53,15 +54,15 @@ modules = [
[[package]]
org = "ballerina"
name = "time"
version = "2.2.2"
version = "2.3.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerinax"
name = "snowflake"
version = "1.1.0"
version = "1.2.1"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "sql"}
Expand All @@ -70,4 +71,3 @@ modules = [
{org = "ballerinax", packageName = "snowflake", moduleName = "snowflake"}
]


9 changes: 9 additions & 0 deletions build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ icon = "icon.png"
license = ["Apache-2.0"]
distribution = "2201.7.0"

[platform.java11]
graalvmCompatible = true

[[platform.java11.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "snowflake-native"
version = "@project.version@"
path = "../native/build/libs/snowflake-native-@project.version@.jar"

[[platform.java11.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "sql-native"
version = "@sql.native.version@"
path = "./lib/sql-native-@sql.native.version@.jar"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=io.ballerinax
version=1.2.0
version=1.2.1

puppycrawlCheckstyleVersion=8.18
checkstyleToolVersion=7.8.2
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved.
#
# WSO2 LLC. 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=net.snowflake.client.jdbc.internal.apache.tika.mime.MediaType \
--initialize-at-build-time=net.snowflake.client.jdbc.internal.apache.tika.config.ServiceLoader \
--initialize-at-build-time=net.snowflake.client.jdbc.internal.apache.tika.mime.MimeTypesReader
Loading

0 comments on commit 8dc711d

Please sign in to comment.