Commit Graph

122 Commits

Author SHA1 Message Date
Marten Deinum
77f441b5c1 Allow a Locale to be set for formatting
The internal DataFormatter used from Apache POI allows for setting a fixed
Locale to use when reading numbers, dates etc. Initially we didn't set this
and thus it always used the default Locale as set from the Java runtime. This
could lead to unexpected results. We now allow to set the userLocale property
and use this to configure the DataFormatter used internally.

We also took the opportunity to make this work with the streaming ItemReader
as well as the regular ItemReader. The streaming item reader now also uses
a pre-configured DataFormatter.

Closes: #98
2022-12-06 15:25:01 +01:00
Marten Deinum
e8c67a115d Add maven.config file
Reduce the output generated for the build. 

Add the -ntp (no transfer progress) as to not to pollute the server output
and thus improve performance.
2022-12-06 14:19:25 +01:00
Marten Deinum
ff44bc5db8 Fix error in pom.xml 2022-12-06 14:09:37 +01:00
Marten Deinum
700e3bfe15 Remove now obsolete log4j2.xml 2022-12-06 14:08:38 +01:00
Marten Deinum
cd72a2851d Reduce output during test
Instead of Log4j2 use the SLF4J NOP logger. This will disable logging output,
this will cleanup the output during a build.
2022-12-06 13:45:26 +01:00
Marten Deinum
3ed5093daa Fix dependency scope for AssertJ
Prior to this commit the dependency scope was not set and thus the default 
provided would apply. We now explicitly set it to a scope of test
2022-12-06 13:42:16 +01:00
Marten Deinum
005e4cb206 Update Spring Batch to 4.3.7 2022-12-06 10:59:59 +01:00
Mahmoud Ben Hassine
e971789964 Add new module for Apache Geode support
Related to https://github.com/spring-projects/spring-batch/issues/4214
2022-10-18 13:19:18 +02:00
Mahmoud Ben Hassine
c72b72fed8 Add parikshitdutta as lead of spring-batch-elasticsearch 2022-06-08 13:15:45 +02:00
Mahmoud Ben Hassine
ccf18e18c5 Update README 2022-04-28 17:25:46 +02:00
Spring Builds
08eac5b8a3 [artifactory-release] Next development version of spring-batch-excel 2022-04-28 09:13:14 +00:00
Spring Builds
a8bb0bb969 [artifactory-release] Release version 0.1.1 of spring-batch-excel 2022-04-28 09:13:12 +00:00
Marten Deinum
7820d8ea6a Optional iso dates (#94)
* Optionally use ISO formatting for dates

Prior to this commit we always used the date pattern as
assigned in the Excel workbook for the cell. Which could
lead to surprising results.

We now allow the dates to be formatted as an ISO date time with
offset, so dates/times are consistently formatted in the result.

Closes: #88
2022-04-12 10:58:18 +02:00
Marten Deinum
c8b48a05d5 Upgrade to Spring Batch 4.3.5 (#93)
Closes: #92
2022-04-12 10:48:56 +02:00
Marten Deinum
f22212b70b Improve resource file check (#90)
With this commit we use the isFile check introduced in
Spring 5 to check if something is an actaul file resource
instead of relying on FileNotFoundException.

Resource implementations didn't consistently throw a
FileNotFoundException (like the Google Big Query one)
leading to issues with reading.

Closes: 89
2022-02-03 08:29:48 +01:00
Marten Deinum
87da259177 Merge pull request #87 from spring-projects/dependabot/maven/spring-batch-excel/org.apache.logging.log4j-log4j-core-2.17.1
Bump log4j-core from 2.17.0 to 2.17.1 in /spring-batch-excel
2022-01-05 07:44:45 +01:00
dependabot[bot]
9585996ed8 Bump log4j-core from 2.17.0 to 2.17.1 in /spring-batch-excel
Bumps log4j-core from 2.17.0 to 2.17.1.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-04 16:50:38 +00:00
Marten Deinum
37ed946243 Merge pull request #86 from spring-projects/dependabot/maven/spring-batch-excel/org.apache.logging.log4j-log4j-core-2.17.0
Bump log4j-core from 2.16.0 to 2.17.0 in /spring-batch-excel
2021-12-20 11:49:26 +01:00
dependabot[bot]
e19d61fb11 Bump log4j-core from 2.16.0 to 2.17.0 in /spring-batch-excel
Bumps log4j-core from 2.16.0 to 2.17.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-18 18:34:49 +00:00
Marten Deinum
a9f15d876b Merge pull request #85 from spring-projects/dependabot/maven/spring-batch-excel/org.apache.logging.log4j-log4j-core-2.16.0
Bump log4j-core from 2.15.0 to 2.16.0 in /spring-batch-excel
2021-12-15 07:31:18 +01:00
dependabot[bot]
ae5037fe5c Bump log4j-core from 2.15.0 to 2.16.0 in /spring-batch-excel
Bumps log4j-core from 2.15.0 to 2.16.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-14 21:55:09 +00:00
Marten Deinum
e75976d046 Merge pull request #84 from spring-projects/dependabot/maven/spring-batch-excel/org.apache.logging.log4j-log4j-core-2.15.0
Bump log4j-core from 2.13.3 to 2.15.0 in /spring-batch-excel
2021-12-13 07:19:22 +01:00
dependabot[bot]
bbf46056ee Bump log4j-core from 2.13.3 to 2.15.0 in /spring-batch-excel
Bumps log4j-core from 2.13.3 to 2.15.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-10 01:52:41 +00:00
Marten Deinum
403df3da16 Merge pull request #83 from mdeinum/main
Polish testing and dependencies
2021-12-07 10:10:03 +01:00
Marten Deinum
a2f746fa07 Upgrade to Spring Batch 4.3.4 2021-12-07 09:50:14 +01:00
Marten Deinum
6471d899b5 Polish testing
Enabled junit5 testing in Maven (upgrade plugin) and added
additional tests to the Streaming and XLSX reader.
2021-12-07 09:48:49 +01:00
Marten Deinum
3f81bdb75c Polish 2021-12-07 09:29:31 +01:00
Marten Deinum
029d2d5394 Update to Mockito 3.11.0 2021-12-07 09:29:31 +01:00
Marten Deinum
c793dbb9a2 Update to JUnit 5.7.2 2021-12-07 09:29:30 +01:00
César Alves
b378ac1dfd Move to next sheet when there are only empty/invalid rows (#82)
When there are blank or empty lines in the end of one sheet, null is returned by doRead without trying to read next sheet. A recursive call makes sheet moving happen when another exists.

Co-authored-by: Mahmoud Ben Hassine <mbenhassine@vmware.com>
Co-authored-by: cesar.alves@gmail.com <coa@pc-coa.caso.pt>
2021-12-07 09:27:46 +01:00
Mahmoud Ben Hassine
96d6137ff5 Update README 2021-09-02 17:53:27 +02:00
Spring Builds
2e3186cc1b [artifactory-release] Next development version of spring-batch-bigquery 2021-09-02 15:39:46 +00:00
Spring Builds
539d998ddc [artifactory-release] Release version 0.1.0 of spring-batch-bigquery 2021-09-02 15:39:44 +00:00
Mahmoud Ben Hassine
70df763e80 Fix link in Javadoc of BigQueryItemWriterBuilder 2021-09-02 17:32:43 +02:00
Mahmoud Ben Hassine
ce6d4e6a6f Update README 2021-09-02 13:06:47 +02:00
Spring Builds
c0a935596a [artifactory-release] Next development version of spring-batch-neo4j 2021-09-01 20:35:06 +00:00
Spring Builds
5fbb1bff63 [artifactory-release] Release version 0.1.0 of spring-batch-neo4j 2021-09-01 20:35:04 +00:00
Mahmoud Ben Hassine
3fc3cb7adb Fix javadoc generation error on special character 2021-09-01 18:06:43 +02:00
Mahmoud Ben Hassine
d295efe37b Prepare pom for Maven central release 2021-09-01 18:05:03 +02:00
Mahmoud Ben Hassine
591ce00234 Fix imports in Neo4j item reader/writer builders 2021-09-01 17:50:35 +02:00
Mahmoud Ben Hassine
edae1738c5 Add module for Neo4j
This initial import is a copy of the code
from Spring Batch v4.3.3.
2021-09-01 10:03:38 +02:00
Vova
e1d5fc5a4a [bq] 0.1 BigQuery preparation 2021-06-13 14:56:24 +03:00
Mahmoud Ben Hassine
e63fe4a249 Update README with release 0.1.0 of spring-batch-excel 2021-05-28 13:52:29 +02:00
Spring Builds
19a6e33dc5 [artifactory-release] Next development version of of spring-batch-excel 2021-05-28 10:49:19 +00:00
Spring Builds
f98cf0aecf [artifactory-release] Release version 0.1.0 of spring-batch-excel 2021-05-28 10:49:16 +00:00
Mahmoud Ben Hassine
7d09b891db Rollback release 0.1.0 and fix Maven Central validation checks 2021-05-28 12:40:58 +02:00
Spring Builds
8297a93629 [artifactory-release] Next development version of spring-batch-excel 2021-05-28 10:13:39 +00:00
Spring Builds
434a1e00d6 [artifactory-release] Release version 0.1.0 of spring-batch-excel 2021-05-28 10:13:35 +00:00
Mahmoud Ben Hassine
0e92ce86ef Upgrade Spring Batch version to 4.3.3 2021-05-28 11:45:14 +02:00
Marten Deinum
529065939c Merge pull request #72 from mdeinum/main
Added note on thread-safety to documentation
2021-05-19 08:53:32 +02:00