# README
jdbc-cnb
The Cloud Foundry JDBC Buildpack is a Cloud Native Buildpack V3 that provides JDBC drivers to applications.
This buildpack is designed to work in collaboration with other buildpacks.
Detection
The detection phase passes if:
-
A service is bound with a payload containing a
binding_name
,instance_name
,label
, ortag
containing eithermariadb
ormysql
as a substring and build plan containsjvm-application
-
and the application does not contain either mariadb-java-client-version.jar or mysql-connector-java-version.jar
- Contributes
mariadb-jdbc
to the build plan
- Contributes
-
A service is bound with a payload containing a
binding_name
,instance_name
,label
, ortag
containingpostgres
as a substring and build plan containsjvm-application
-
and the application does not contain postgresql-version.jar
- Contributes
postgresql-jdbc
to the build plan
- Contributes
Build
If the build plan contains
-
mariadb-jdbc
- Contributes the MariaDB JDBC Driver to a layer marked
launch
- Adds the MariaDB JDBC Driver to the classpath
- Contributes the MariaDB JDBC Driver to a layer marked
-
postgresql-jdbc
- Contributes the PostgreSQL JDBC Driver to a layer marked
launch
- Adds the PostgreSQL JDBC Driver to the classpath
- Contributes the PostgreSQL JDBC Driver to a layer marked
License
This buildpack is released under version 2.0 of the Apache License.