From 67530ea661ae2a887a6bd621953183fa6b6e5fd6 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Tue, 20 Aug 2024 10:13:43 +0530 Subject: [PATCH 1/2] Update csv api doc comments --- ballerina/csv_api.bal | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ballerina/csv_api.bal b/ballerina/csv_api.bal index 292e335..66527eb 100644 --- a/ballerina/csv_api.bal +++ b/ballerina/csv_api.bal @@ -37,6 +37,7 @@ public isolated function parseString(string csvString, ParseOptions options = {} # Converts byte[] to subtype of `record{}[]` or `anydata[][]`. # ```ballerina # byte[] csvBytes = check io:fileReadBytes("example.csv"); +# # record{int id; string name;}[] csv1 = check csv:parseBytes(csvBytes); # [int, string][] csv2 = check csv:parseBytes(csvBytes); # record{|int id;|}[] csv3 = check csv:parseBytes(csvBytes); @@ -54,10 +55,13 @@ public isolated function parseBytes(byte[] csvBytes, ParseOptions options = {}, # ```ballerina # stream csvByteStream = check io:fileReadBlocksAsStream("example.csv"); # record{int id; string name;}[] csv1 = check csv:parseStream(csvByteStream); +# # stream csvByteStream2 = check io:fileReadBlocksAsStream("example.csv"); # [int, string][] csv2 = check csv:parseStream(csvByteStream2); +# # stream csvByteStream3 = check io:fileReadBlocksAsStream("example.csv"); # record{|int id;|}[] csv3 = check csv:parseStream(csvByteStream3); +# # stream csvByteStream4 = check io:fileReadBlocksAsStream("example.csv"); # record{int id;}[] csv4 = check csv:parseStream(csvByteStream4, {skipLines: [1]}); # ``` From c84fd71f769456769a426de314bf364219c18730 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Tue, 20 Aug 2024 13:22:40 +0530 Subject: [PATCH 2/2] Update gradle plugin version --- .gitignore | 2 +- build.gradle | 6 +++++- gradle.properties | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e8bcae9..38d72e0 100644 --- a/.gitignore +++ b/.gitignore @@ -34,7 +34,7 @@ target bin/ # IDEA Files -.idea2/ +.idea/ *.iml *.ipr *.iws diff --git a/build.gradle b/build.gradle index d020275..44c60de 100644 --- a/build.gradle +++ b/build.gradle @@ -45,7 +45,7 @@ allprojects { } maven { - url = 'https://maven.pkg.github.com/ballerina-platform/ballerina-lang' + url = 'https://maven.pkg.github.com/ballerina-platform/*' credentials { username System.getenv("packageUser") password System.getenv("packagePAT") @@ -63,9 +63,13 @@ subprojects { configurations { ballerinaStdLibs + jbalTools } dependencies { + jbalTools ("org.ballerinalang:jballerina-tools:${ballerinaLangVersion}") { + transitive = false + } /* Standard libraries */ ballerinaStdLibs "io.ballerina.stdlib:file-ballerina:${stdlibFileVersion}" ballerinaStdLibs "io.ballerina.stdlib:io-ballerina:${stdlibIoVersion}" diff --git a/gradle.properties b/gradle.properties index d7c11be..cda8444 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ spotbugsVersion=5.0.14 shadowJarPluginVersion=8.1.1 downloadPluginVersion=4.0.4 releasePluginVersion=2.8.0 -ballerinaGradlePluginVersion=2.0.1 +ballerinaGradlePluginVersion=2.2.6 javaJsonPathVersion=2.9.0 javaJsonSmartVersion=2.4.11 javaAccessorsSmartVersion=2.4.7