Skip to content

Commit aed48cf

Browse files
authored
Update dependencies and plugins (#1625)
1 parent 22a8417 commit aed48cf

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ ext {
6262
jacocoVersion = '0.8.8'
6363

6464
libs = [
65-
jetbrainsAnnotations: "org.jetbrains:annotations:20.1.0",
66-
asm : "org.ow2.asm:asm:9.2",
67-
bytebuddy : "net.bytebuddy:byte-buddy:1.12.14",
65+
jetbrainsAnnotations: "org.jetbrains:annotations:24.0.1",
66+
asm : "org.ow2.asm:asm:9.5",
67+
bytebuddy : "net.bytebuddy:byte-buddy:1.14.3",
6868
cglib : "cglib:cglib-nodep:3.3.0",
6969
groovy : groovyDependencies,
7070
groovyNio : "$groovyGroup:groovy-nio:$groovyVersion", //for groovy methods on Path
7171
groovySql : "$groovyGroup:groovy-sql:$groovyVersion", //for some Spring and Unitils tests
7272
groovyTest : "$groovyGroup:groovy-test:$groovyVersion", //for @NotYetImplemented
7373
groovyJmx : "$groovyGroup:groovy-jmx:$groovyVersion", //for triggering jacoco dump via jmx
74-
h2database : "com.h2database:h2:1.4.200",
74+
h2database : "com.h2database:h2:2.1.214",
7575
hamcrest : "org.hamcrest:hamcrest:2.2",
76-
jaxb : "javax.xml.bind:jaxb-api:2.3.0",
76+
jaxb : "javax.xml.bind:jaxb-api:2.3.1",
7777
junit4 : "junit:junit:4.13.2",
7878
junitBom : "org.junit:junit-bom:5.9.0",
7979
jupiter : "org.junit.jupiter:junit-jupiter",

settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ pluginManagement {
88

99
plugins {
1010
id "com.gradle.enterprise" version "3.12.4"
11-
id "com.gradle.common-custom-user-data-gradle-plugin" version "1.9"
11+
id "com.gradle.common-custom-user-data-gradle-plugin" version "1.10"
1212
id "org.asciidoctor.jvm.convert" version "3.3.2"
1313
id "net.nemerosa.versioning" version "3.0.0"
14-
id "io.github.gradle-nexus.publish-plugin" version "1.2.0"
14+
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
1515
id "com.github.ben-manes.versions" version "0.46.0"
1616
id "biz.aQute.bnd.builder" version "6.4.0"
1717
id "io.spring.nohttp" version "0.0.11"

spock-unitils/src/test/groovy/org/spockframework/unitils/dbunit/UserDao.groovy

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
package org.spockframework.unitils.dbunit
1616

17-
import groovy.sql.Sql
1817
import javax.sql.DataSource
1918

19+
import groovy.sql.Sql
20+
2021
class UserDao {
2122
private Sql sql
2223

@@ -25,12 +26,12 @@ class UserDao {
2526
}
2627

2728
User findByName(String firstName, String lastName) {
28-
def row = sql.firstRow("select * from user where first_name=? and last_name=?", [firstName, lastName])
29+
def row = sql.firstRow("select * from `user` where first_name=? and last_name=?", [firstName, lastName])
2930
row2User(row)
3031
}
3132

3233
List<User> findByMinimalAge(int age) {
33-
sql.rows("select * from user where age >= ?", [age]).collect {
34+
sql.rows("select * from `user` where age >= ?", [age]).collect {
3435
row2User(it)
3536
}
3637
}

spock-unitils/src/test/groovy/org/spockframework/unitils/dbunit/UserDaoSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UserDaoSpec extends Specification {
3232
@Shared Sql sql = Sql.newInstance("jdbc:h2:mem:userdb", "org.h2.Driver")
3333

3434
def setupSpec() {
35-
sql.execute("create table user (first_name varchar(25), last_name varchar(50), age int)")
35+
sql.execute("create table `user` (first_name varchar(25), last_name varchar(50), age int)")
3636
}
3737

3838
def cleanupSpec() {

0 commit comments

Comments
 (0)