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, or tag containing either mariadb or mysql as a substring and build plan contains jvm-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
A service is bound with a payload containing a binding_name, instance_name, label, or tag containing postgres as a substring and build plan contains jvm-application
and the application does not contain postgresql-version.jar
Contributes postgresql-jdbc to the build plan
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
postgresql-jdbc
Contributes the PostgreSQL JDBC Driver to a layer marked launch
Adds the PostgreSQL JDBC Driver to the classpath
License
This buildpack is released under version 2.0 of the Apache License.
jdbc-cnbThe 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, ortagcontaining eithermariadbormysqlas a substring and build plan containsjvm-applicationand the application does not contain either mariadb-java-client-version.jar or mysql-connector-java-version.jar
mariadb-jdbcto the build planA service is bound with a payload containing a
binding_name,instance_name,label, ortagcontainingpostgresas a substring and build plan containsjvm-applicationand the application does not contain postgresql-version.jar
postgresql-jdbcto the build planBuild
If the build plan contains
mariadb-jdbclaunchpostgresql-jdbclaunchLicense
This buildpack is released under version 2.0 of the Apache License.