Skip to content

Latest commit

 

History

History
69 lines (45 loc) · 2.15 KB

README.md

File metadata and controls

69 lines (45 loc) · 2.15 KB

An example project illustrating how to use Oracle's maven repo with gradle.

Instructions

METHOD 1 - credentials in build.gradle

Edit build.gradle and scroll down to the METHOD 1 section.

Uncomment the credentials block and enter your Oracle Account credentials.

Then test if gradle can resolve dependencies from the Oracle Maven repository:

./gradlew resolveDependencies

Above command should download the Oracle JDBC driver (or verify that they've already been downloaded).

METHOD 2 - use maven's settings.xml and optional encryption

Prerequisites

Before trying this method, I advise you to try it with straight maven first. See:

  • example-maven-oracle
    github.com/robin-a-meade/example-maven-oracle
    an example of how to use the Oracle Maven Repo with maven

That way you'll know that your ~/.m2/settings.xml and, if opting to encrypt password, settings-security.xml, are properly set up.

Instructions

Edit build.gradle.

Uncomment the 'net.lingquica.maven-settings' plugin at the top.

Scroll down to the METHOD 2 section.

Verify that the name property matches the server id you configured for the Oracle maven repo in your ~/.m2/settings.xml.

Then, as above, test if gradle can resolve dependencies from the Oracle Maven repository:

./gradlew resolveDependencies

See also