Skip to content

adding local jar dependencies #313

Open
@amiracam

Description

@amiracam

what if we wanted to include a "local" jar ? i.e. jars we had internally created or from external parties which do not provide Maven coordinates but rather just a download ?

I noticed that JRubyPrepare.groovy has the following code snippet:

@optional
/** Adds dependencies from the given configuration to be prepared
*
* @param f A file, directory, configuration or list of gems
*/
void dependencies(Object f) {
dependencies.add(f)
}

so I tried this:

dependencies {
'/Users/charles/IdeaProjects/JrubyGradleTest5/local_jars/ojdbc6-11.2.0.3.jar'
}

figured an absolute path would make for a more direct test

Running JRubyPrepare task however did not capture above specified jar.

Is there perhaps a way of specifying "local-ness" via a jrubyJar entry
e.g.
jrubyJar 'file:///Users/charles/IdeaProjects/JrubyGradleTest5/local_jars/ojdbc6-11.2.0.3.jar'

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions