File: lock_down_pom.rb

package info (click to toggle)
ruby-jar-dependencies 0.3.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 232 kB
  • sloc: ruby: 1,325; xml: 14; makefile: 9
file content (27 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# this file is maven DSL and used by maven via jars/lock_down.rb

basedir( ENV_JAVA[ "jars.basedir" ] )

eval( File.read( File.join( File.dirname(__FILE__), 'attach_jars_pom.rb' ) ) )

jfile = ENV_JAVA[ "jars.jarfile" ]
jarfile( jfile ) if jfile

# need to fix the version of this plugin for gem:jars_lock goal
jruby_plugin :gem, ENV_JAVA[ "jruby.plugins.version" ]


# if you use bundler we collect all root jar dependencies
# from each gemspec file. otherwise we need to resolve
# the gemspec artifact in the maven way
unless ENV_JAVA[ "jars.bundler" ]

  gemspec rescue nil

end

properties( 'project.build.sourceEncoding' => 'utf-8' )

plugin :dependency, ENV_JAVA[ "dependency.plugin.version" ]

eval( File.read( File.join( File.dirname(__FILE__), 'output_jars_pom.rb' ) ) )