Skip to content

Feature Request: test-jars #72

@spencerdcarlson

Description

@spencerdcarlson

It would be really nice to have some notion of environments. My understanding is that Jars::Installer.new.vendor_jars! looks at anything in Gem::Specification requirements and installs them into the ENV['JARS_HOME'] directory.

I currently require jars for test that I do not want to bloat my runtime-jars with. Not sure what the best way to distinguish runtime jars from test jars would be, but it would be a nice feature. Maybe add en ENV=<custom_value> that could also be ready by Jars::Installer.new.vendor_jars!

Gem::Specification.new do |s|
  s.requirements << "jar 'com.zaxxer:HikariCP', '2.7.2'"
  s.requirements << "ENV=test jar 'org.postgresql:postgresql', '42.2.5'"
end

Above I only need HikariCP at runtime but to test I need some JDBC implementation JAR (postgres)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions