Skip to content

Commit 0f41c71

Browse files
author
per
committed
release 2.0.5
1 parent 15b0007 commit 0f41c71

File tree

4 files changed

+54
-27
lines changed

4 files changed

+54
-27
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022-2026 Alipsa HB
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ data-utils is available from Maven Central.
1717

1818
**Gradle:**
1919
```groovy
20-
implementation "se.alipsa.groovy:data-utils:2.0.4"
20+
implementation "se.alipsa.groovy:data-utils:2.0.5"
2121
```
2222

2323
**Maven:**
2424
```xml
2525
<dependency>
2626
<groupId>se.alipsa.groovy</groupId>
2727
<artifactId>data-utils</artifactId>
28-
<version>2.0.4</version>
28+
<version>2.0.5</version>
2929
</dependency>
3030
```
3131

3232
## Quick Start
3333

3434
```groovy
35-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
35+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
3636
@Grab('org.postgresql:postgresql:42.7.8')
3737
3838
import se.alipsa.groovy.datautil.SqlUtil
@@ -49,7 +49,7 @@ SqlUtil.withInstance("jdbc:postgresql://localhost:5432/mydb", "user", "password"
4949
### H2 (In-Memory)
5050

5151
```groovy
52-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
52+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
5353
@Grab('com.h2database:h2:2.2.224')
5454
5555
import se.alipsa.groovy.datautil.SqlUtil
@@ -73,7 +73,7 @@ SqlUtil.withInstance("jdbc:h2:mem:testdb", "sa", "") { sql ->
7373
### H2 (File-based)
7474

7575
```groovy
76-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
76+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
7777
@Grab('com.h2database:h2:2.2.224')
7878
7979
import se.alipsa.groovy.datautil.SqlUtil
@@ -87,7 +87,7 @@ SqlUtil.withInstance("jdbc:h2:file:${dbPath}", "sa", "password") { sql ->
8787
### MySQL / MariaDB
8888

8989
```groovy
90-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
90+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
9191
@Grab('com.mysql:mysql-connector-j:8.2.0')
9292
9393
import se.alipsa.groovy.datautil.SqlUtil
@@ -100,7 +100,7 @@ SqlUtil.withInstance("jdbc:mysql://localhost:3306/mydb", "root", "password") { s
100100
```
101101

102102
```groovy
103-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
103+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
104104
@Grab('org.mariadb.jdbc:mariadb-java-client:3.3.0')
105105
106106
import se.alipsa.groovy.datautil.SqlUtil
@@ -113,7 +113,7 @@ SqlUtil.withInstance("jdbc:mariadb://localhost:3306/mydb", "root", "password") {
113113
### PostgreSQL
114114

115115
```groovy
116-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
116+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
117117
@Grab('org.postgresql:postgresql:42.7.8')
118118
119119
import se.alipsa.groovy.datautil.SqlUtil
@@ -128,7 +128,7 @@ SqlUtil.withInstance("jdbc:postgresql://localhost:5432/mydb", "postgres", "passw
128128
### SQL Server
129129

130130
```groovy
131-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
131+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
132132
@Grab('com.microsoft.sqlserver:mssql-jdbc:12.4.2.jre11')
133133
134134
import se.alipsa.groovy.datautil.SqlUtil
@@ -146,7 +146,7 @@ SqlUtil.withInstance(
146146
### Oracle
147147

148148
```groovy
149-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
149+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
150150
@Grab('com.oracle.database.jdbc:ojdbc11:23.3.0.23.09')
151151
152152
import se.alipsa.groovy.datautil.SqlUtil
@@ -164,7 +164,7 @@ SqlUtil.withInstance(
164164
### SQLite
165165

166166
```groovy
167-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
167+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
168168
@Grab('org.xerial:sqlite-jdbc:3.44.1.0')
169169
170170
import se.alipsa.groovy.datautil.SqlUtil
@@ -178,7 +178,7 @@ SqlUtil.withInstance("jdbc:sqlite:mydb.sqlite", null, null) { sql ->
178178
### Apache Derby
179179

180180
```groovy
181-
@Grab('se.alipsa.groovy:data-utils:2.0.4')
181+
@Grab('se.alipsa.groovy:data-utils:2.0.5')
182182
@Grab('org.apache.derby:derby:10.16.1.1')
183183
@Grab('org.apache.derby:derbytools:10.16.1.1')
184184
@@ -413,18 +413,18 @@ dataSource.close()
413413

414414
## Supported Databases
415415

416-
| Database | URL Prefix | Auto-detected Driver |
417-
|----------|-----------|---------------------|
418-
| H2 | `jdbc:h2:` | `org.h2.Driver` |
419-
| PostgreSQL | `jdbc:postgresql:` | `org.postgresql.Driver` |
420-
| MySQL | `jdbc:mysql:` | `com.mysql.jdbc.Driver` |
421-
| MariaDB | `jdbc:mariadb:` | `org.mariadb.jdbc.Driver` |
422-
| SQL Server | `jdbc:sqlserver:` | `com.microsoft.sqlserver.jdbc.SQLServerDriver` |
423-
| Oracle | `jdbc:oracle:` | `oracle.jdbc.OracleDriver` |
424-
| Derby | `jdbc:derby:` | `org.apache.derby.jdbc.EmbeddedDriver` |
425-
| HSQLDB | `jdbc:hsqldb:` | `org.hsqldb.jdbc.JDBCDriver` |
426-
| SQLite | `jdbc:sqlite:` | `org.sqlite.JDBC` |
427-
| DB2 | `jdbc:db2:` | `com.ibm.db2.jcc.DB2Driver` |
416+
| Database | URL Prefix | Auto-detected Driver |
417+
|------------|--------------------|------------------------------------------------|
418+
| H2 | `jdbc:h2:` | `org.h2.Driver` |
419+
| PostgreSQL | `jdbc:postgresql:` | `org.postgresql.Driver` |
420+
| MySQL | `jdbc:mysql:` | `com.mysql.jdbc.Driver` |
421+
| MariaDB | `jdbc:mariadb:` | `org.mariadb.jdbc.Driver` |
422+
| SQL Server | `jdbc:sqlserver:` | `com.microsoft.sqlserver.jdbc.SQLServerDriver` |
423+
| Oracle | `jdbc:oracle:` | `oracle.jdbc.OracleDriver` |
424+
| Derby | `jdbc:derby:` | `org.apache.derby.jdbc.EmbeddedDriver` |
425+
| HSQLDB | `jdbc:hsqldb:` | `org.hsqldb.jdbc.JDBCDriver` |
426+
| SQLite | `jdbc:sqlite:` | `org.sqlite.JDBC` |
427+
| DB2 | `jdbc:db2:` | `com.ibm.db2.jcc.DB2Driver` |
428428

429429
## More Examples
430430

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
}
1414

1515
group = 'se.alipsa.groovy'
16-
version = '2.0.5-SNAPSHOT'
16+
version = '2.0.5'
1717
description = 'Extensions to Groovy SQL'
1818

1919
repositories {

releases.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
### 2.0.5, 2026-02-07
44
- Allow asJson to include the actual password value when maskPassword is false (was previously always masking the password)
5-
-
5+
- Fix `ConnectionInfo` equality/hash/compare behaviour for unnamed connections and correct password masking for multiline passwords
6+
- Improve runtime safety: null/case-insensitive database URL handling, invalid date-range validation, and corrected `LONGVARCHAR` JDBC mapping
7+
- Release/build quality updates: `release.sh` now fails on dirty git state, main classes are `@CompileStatic`, and CodeNarc baseline was tightened (priority 3 violations now 0)
8+
- Add regression tests for the above fixes
9+
- Upgrade dependencies:
10+
- Groovy [5.0.3 -> 5.0.4]
11+
612
### 2.0.4, 2026-01-20
713
- Upgrade dependencies
814
- Groovy [5.0.1 -> 5.0.3]
@@ -85,4 +91,4 @@ e.g. LocalDate inserts in Derby which must be converted to java.sql.Date for set
8591
- Build script fixes
8692

8793
### 1.0.0, 2022-07-15
88-
- initial release
94+
- initial release

0 commit comments

Comments
 (0)