* make sure Files.path() properly closes its directory, using try-with-resources
* missing one, found by @violetagg
* cherry pick from 1abd516456 and ec894cb82f
Contains feedback from @Kehrlann
Original commit by @abelsromero - amended to keep compatibility with Spring Boot 2
Add integration tests
* use Maven modules to do so
* spring-cloud-bindings goes one level down
* addition of a spring-cloud-bindings parent
Inspired by @gregturn and spring-data-rest
Integrate PR#94 comments from @Kehrlann
* move bindings to src/test/resources
* get rid of unused / duplicate annotations
* move all dependencies to test scope for test projects
Spring Boot 2 support
* only in branch 1.x, SB3 support is in main branch
- read `ca.crt`, `tls.crt` and `tls.key` optional properties in eureka bindings
- process them into keystore and truststore, and wire up eureka client/instance properties
- place the trust-store and keystore in the `$TMPDIR` and reference them by absolute path.
- add a `pem` package for parsing and converting PEM encoded RSA keys
and certificates. (This package may eventually be replaced by the PEM
package in spring-boot, but not until 3.1 is the minimum supported
boot version. The package here is copied from spring-boot but
simplified and made Java 8 compatible.)
Co-authored-by: Dave Walter <walterda@vmware.com>
Co-authored-by: Andrew Wittrock <awittrock@vmware.com>
Co-authored-by: Matt Royal <mroyal@vmware.com>
Co-authored-by: Paul Aly <maly7; paly@vmware.com>
If allowing the mapping to generate a JDBC/R2DBC URL then all three of the fields are required, the host, port and database. If even one is not set, the information will not be mapped and the default value for the property will be used.
Reference: #74
Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
* Adding logic to flex the MySQL jdbc and r2dbc connection sting based on classpath
This PR is related to issue #72.
Co-authored-by: gm2552 <meyerg@vmware.com>
* add support for authorization-grant-types key for oauth2 bindings
* Introduce MapMapper.Source#when(Predicate<Object>)
* update readme with oauth2 -> authorization-grant-type(s)
Previously Spring Cloud Bindings always composed spring.datasource.url from the host port and database properties. This is limiting in that it does not provide a mechanism for users to specify jdbc properties (e.g. sslMode). The PR retains the original behavior but also respects jdbc-url and r2dbc-url keys in all RDBS bindings. The explicit jdbc-url and r2dbc-url keys take precedence over the composed value.
Signed-off-by: Emily Casey <ecasey@vmware.com>