jar-dependencies icon indicating copy to clipboard operation
jar-dependencies copied to clipboard

Feature Request: test-jars

Open spencerdcarlson opened this issue 5 years ago • 0 comments

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)

spencerdcarlson avatar Jun 23 '19 05:06 spencerdcarlson