Skip to content

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

License

Notifications You must be signed in to change notification settings

robin-a-meade/example-gradle-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published