diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index 1c732d63..f42708e0 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -1,7 +1,7 @@ [package] org = "ballerinax" name = "mssql" -version = "1.5.0" +version = "1.5.1" authors = ["Ballerina"] keywords = ["database", "client", "network", "SQL", "RDBMS", "SQLServer", "MSSQL"] repository = "https://github.com/ballerina-platform/module-ballerinax-mssql" @@ -12,14 +12,14 @@ distribution = "2201.2.0" [[platform.java11.dependency]] groupId = "io.ballerina.stdlib" artifactId = "mssql-native" -version = "1.5.0" -path = "../native/build/libs/mssql-native-1.5.0.jar" +version = "1.5.1" +path = "../native/build/libs/mssql-native-1.5.1-SNAPSHOT.jar" [[platform.java11.dependency]] groupId = "io.ballerina.stdlib" artifactId = "sql-native" -version = "1.5.0" -path = "./lib/sql-native-1.5.0.jar" +version = "1.5.1" +path = "./lib/sql-native-1.5.1-20221013-124900-90866bf.jar" [[platform.java11.dependency]] path = "./lib/mssql-jdbc-9.2.0.jre11.jar" diff --git a/ballerina/CompilerPlugin.toml b/ballerina/CompilerPlugin.toml index 1fd13986..8c0c576f 100644 --- a/ballerina/CompilerPlugin.toml +++ b/ballerina/CompilerPlugin.toml @@ -3,4 +3,4 @@ id = "mssql-compiler-plugin" class = "io.ballerina.stdlib.mssql.compiler.MSSQLCompilerPlugin" [[dependency]] -path = "../compiler-plugin/build/libs/mssql-compiler-plugin-1.5.0.jar" +path = "../compiler-plugin/build/libs/mssql-compiler-plugin-1.5.1-SNAPSHOT.jar" diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index ee7d92ab..b57252ba 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -9,7 +9,7 @@ dependencies-toml-version = "2" [[package]] org = "ballerina" name = "crypto" -version = "2.2.2" +version = "2.2.3" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "time"} @@ -21,7 +21,7 @@ modules = [ [[package]] org = "ballerina" name = "file" -version = "1.4.0" +version = "1.4.1" scope = "testOnly" dependencies = [ {org = "ballerina", name = "io"}, @@ -92,7 +92,7 @@ dependencies = [ [[package]] org = "ballerina" name = "log" -version = "2.4.0" +version = "2.4.1" scope = "testOnly" dependencies = [ {org = "ballerina", name = "io"}, @@ -113,7 +113,7 @@ dependencies = [ [[package]] org = "ballerina" name = "os" -version = "1.4.0" +version = "1.4.1" scope = "testOnly" dependencies = [ {org = "ballerina", name = "io"}, @@ -133,7 +133,7 @@ dependencies = [ [[package]] org = "ballerina" name = "sql" -version = "1.5.0" +version = "1.5.1" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -170,7 +170,7 @@ modules = [ [[package]] org = "ballerinax" name = "mssql" -version = "1.5.0" +version = "1.5.1" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "file"}, diff --git a/gradle.properties b/gradle.properties index cb1d5b25..51370198 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ ballerinaGradlePluginVersion=0.15.0 ballerinaLangVersion=2201.2.0 -stdlibSqlVersion=1.5.0 +stdlibSqlVersion=1.5.1-20221013-124900-90866bf # Direct Dependencies # Level 01 @@ -23,10 +23,10 @@ stdlibTimeVersion=2.2.2 # Level 02 stdlibLogVersion=2.4.0 -stdlibOsVersion=1.4.0 +stdlibOsVersion=1.4.1-20220923-100900-5935e0c # Level 03 -stdlibFileVersion=1.4.0 +stdlibFileVersion=1.4.1-20220926-142300-9b48f88 # Ballerinax Observer observeVersion=1.0.5 @@ -38,21 +38,21 @@ stdlibConstraintVersion=1.0.0 stdlibUrlVersion=2.2.2 # Level 02 -stdlibCryptoVersion=2.2.2 -stdlibTaskVersion=2.2.2 +stdlibCryptoVersion=2.2.3-20220921-105400-812e99d +stdlibTaskVersion=2.2.3-20220920-184600-c109457 # Level 03 -stdlibCacheVersion=3.2.2 +stdlibCacheVersion=3.3.0-20220926-104700-377cccd stdlibMimeVersion=2.4.0 -stdlibUuidVersion=1.3.0 +stdlibUuidVersion=1.3.1-20220926-130700-3e3e76b # Level 04 -stdlibAuthVersion=2.4.0 -stdlibJwtVersion=2.4.0 -stdlibOAuth2Version=2.4.0 +stdlibAuthVersion=2.4.1-20220927-114400-615039d +stdlibJwtVersion=2.4.1-20220926-140600-6b1756f +stdlibOAuth2Version=2.4.1-20220928-092800-5ca4f8b # Level 05 -stdlibHttpVersion=2.4.0 +stdlibHttpVersion=2.4.1-20220928-131100-d539a2e # Level 06 -stdlibTransactionVersion=1.2.0 +stdlibTransactionVersion=1.2.1-20220930-110100-4e984cb diff --git a/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/native-image.properties b/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/native-image.properties new file mode 100644 index 00000000..6ff35ded --- /dev/null +++ b/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/native-image.properties @@ -0,0 +1,18 @@ +# Copyright (c) 2022, 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 = -H:+AddAllCharsets \ + --report-unsupported-elements-at-runtime diff --git a/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/reflect-config.json b/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/reflect-config.json new file mode 100644 index 00000000..c638cad1 --- /dev/null +++ b/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/reflect-config.json @@ -0,0 +1,90 @@ +[ + { + "name": "com.microsoft.sqlserver.jdbc.SQLServerDataSource", + "queryAllPublicMethods": true, + "methods": [ + { + "name": "", + "parameterTypes": [ ] + }, + { + "name": "setEncrypt", + "parameterTypes": [ + "boolean" + ] + }, + { + "name": "setKeyStoreAuthentication", + "parameterTypes": [ + "java.lang.String" + ] + }, + { + "name": "setKeyStoreLocation", + "parameterTypes": [ + "java.lang.String" + ] + }, + { + "name": "setKeyStoreSecret", + "parameterTypes": [ + "java.lang.String" + ] + }, + { + "name": "setLoginTimeout", + "parameterTypes": [ + "int" + ] + }, + { + "name": "setPassword", + "parameterTypes": [ + "java.lang.String" + ] + }, + { + "name": "setQueryTimeout", + "parameterTypes": [ + "int" + ] + }, + { + "name": "setSocketTimeout", + "parameterTypes": [ + "int" + ] + }, + { + "name": "setTrustServerCertificate", + "parameterTypes": [ + "boolean" + ] + }, + { + "name": "setTrustStore", + "parameterTypes": [ + "java.lang.String" + ] + }, + { + "name": "setTrustStorePassword", + "parameterTypes": [ + "java.lang.String" + ] + }, + { + "name": "setURL", + "parameterTypes": [ + "java.lang.String" + ] + }, + { + "name": "setUser", + "parameterTypes": [ + "java.lang.String" + ] + } + ] + } +] diff --git a/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/resource-config.json b/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/resource-config.json new file mode 100644 index 00000000..7f0b32ee --- /dev/null +++ b/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/mssql-native/resource-config.json @@ -0,0 +1,14 @@ +{ + "bundles": [ + { + "name": "com.microsoft.sqlserver.jdbc.SQLServerResource", + "locales": [ + "", + "en-LK" + ], + "classNames": [ + "com.microsoft.sqlserver.jdbc.SQLServerResource" + ] + } + ] +}