HHH-12901 Enable loading of additional JDBC drivers from a local path, rename the Oracle dependency

This commit is contained in:
Sanne Grinovero 2018-08-09 12:33:41 +01:00
parent 20c6f15af2
commit cd8b754494
2 changed files with 10 additions and 1 deletions

View File

@ -40,6 +40,13 @@ allprojects {
name "jboss-snapshots" name "jboss-snapshots"
url "http://snapshots.jboss.org/maven2/" url "http://snapshots.jboss.org/maven2/"
} }
//Allow loading additional dependencis from a local path;
//useful to load JDBC drivers which can not be distributed in public.
if (System.env['ADDITIONAL_REPO'] != null) {
flatDir {
dirs "${System.env.ADDITIONAL_REPO}"
}
}
} }
apply plugin: 'idea' apply plugin: 'idea'

View File

@ -4,4 +4,6 @@
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
jdbcDependency 'com.oracle.ojdbc:ojdbc7:12.1.0.2.0' // Expected to match the jar name: drop a copy of ojdbc8.jar in a local directory,
// then point the environment variable ADDITIONAL_REPO to that directory.
jdbcDependency name : 'ojdbc8'