Sha256: ad08c067c8ca374bad47d7f1946a392d8f3478b36999367097a67dea80f3987c

Contents?: true

Size: 631 Bytes

Versions: 7

Compression:

Stored size: 631 Bytes

Contents

# this file is maven DSL

(0..10_000).each do |i|
  coord = ENV_JAVA["jars.#{i}"]
  break unless coord
  artifact = Maven::Tools::Artifact.from_coordinate(coord)
  exclusions = []
  (0..10_000).each do |j|
    exclusion = ENV_JAVA["jars.#{i}.exclusions.#{j}"]
    break unless exclusion
    exclusions << exclusion
  end
  scope = ENV_JAVA["jars.#{i}.scope"]
  artifact.scope = scope if scope
  classifier = ENV_JAVA["jars.#{i}.classifier"]
  artifact.classifier = classifier if classifier

  # declare the artifact inside the POM
  dependency_artifact(artifact) do
    exclusions.each do |ex|
      exclusion ex
    end
  end
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/jar-dependencies-0.4.1/lib/jars/attach_jars_pom.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.5.0/gems/jar-dependencies-0.4.1/lib/jars/attach_jars_pom.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.5.0/gems/jar-dependencies-0.4.1/lib/jars/attach_jars_pom.rb
jar-dependencies-0.4.1 lib/jars/attach_jars_pom.rb
jar-dependencies-0.4.0 lib/jars/attach_jars_pom.rb
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/jar-dependencies-0.3.12/lib/jars/attach_jars_pom.rb
jar-dependencies-0.3.12 lib/jars/attach_jars_pom.rb