Skip to content

Refactor code to not require Spring JDBC as mandatory dependency #100

@pull-vert

Description

@pull-vert

spring-jdbc is now an optional dependency, wich is a good thing !
But this leads to an error

java.lang.NoClassDefFoundError: org/springframework/jdbc/core/SqlProvider
...
at org.springframework.data.r2dbc.function.DefaultSqlResult.<init>(DefaultSqlResult.java:78) ~[spring-data-r2dbc-1.0.0.BUILD-SNAPSHOT.jar:1.0.0.BUILD-SNAPSHOT]

In DefaultSqlResult, this line does not compile anymore, because SqlProvider is a spring-jdbc Interface

interface SqlFunction<T, R> extends Function<T, R>, SqlProvider {}

Workaround is to add dependency on spring-jdbc in my project, but the fix would be to not depend anymore on spring-jdbc 😄

Maybe there are other spring-jdbc remaining uses in r2dbc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions