buildr 1.5.0.dev2 → 1.5.0.dev3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/addon/buildr/custom_pom.rb +2 -2
- data/doc/more_stuff.textile +1 -1
- data/lib/buildr/version.rb +1 -1
- data/spec/addon/custom_pom_spec.rb +24 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fe13bb2bca219aff73958433c3fa62c1c3dde70
|
4
|
+
data.tar.gz: f242c732ab64df6d063cca47992f9c742141837d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17fa7b736cb6adfbdb0b89fe673663fa0056d5e44a8320b76e7c2df49bf703a04bb59bc9f1a6936fb1cf4a6a9361eaff6c3aadeb6f2e812471ba1d923b9b3e11
|
7
|
+
data.tar.gz: 2162c7c765aea99e7bb417cc2faff29911e8c91f6f603f5eda04ea9a7364e4c2b155136dfee16e87f4d81afc0c4e42c61d6e626fea30367ac2d29b53b4ee5a14
|
data/addon/buildr/custom_pom.rb
CHANGED
@@ -213,7 +213,7 @@ module Buildr
|
|
213
213
|
optional_deps = Buildr.artifacts(project.pom.optional_dependencies).collect { |d| d.to_s }
|
214
214
|
deps =
|
215
215
|
Buildr.artifacts(project.compile.dependencies).
|
216
|
-
select { |d| d.is_a?(
|
216
|
+
select { |d| d.is_a?(ActsAsArtifact) }.
|
217
217
|
collect do |d|
|
218
218
|
f = d.to_s
|
219
219
|
scope = provided_deps.include?(f) ? 'provided' :
|
@@ -221,7 +221,7 @@ module Buildr
|
|
221
221
|
'compile'
|
222
222
|
d.to_hash.merge(:scope => scope, :optional => optional_deps.include?(f))
|
223
223
|
end + Buildr.artifacts(project.test.compile.dependencies).
|
224
|
-
select { |d| d.is_a?(
|
224
|
+
select { |d| d.is_a?(ActsAsArtifact) && !project.compile.dependencies.include?(d) }.collect { |d| d.to_hash.merge(:scope => 'test') }
|
225
225
|
deps.each do |dependency|
|
226
226
|
xml.dependency do
|
227
227
|
xml.groupId dependency[:group]
|
data/doc/more_stuff.textile
CHANGED
@@ -445,7 +445,7 @@ define 'myproject' do
|
|
445
445
|
project.group = 'org.myproject'
|
446
446
|
project.version = '1.0'
|
447
447
|
|
448
|
-
pom.
|
448
|
+
pom.add_apache_v2_license
|
449
449
|
pom.add_github_project('jbloggs/myproject')
|
450
450
|
pom.add_developer('jbloggs', 'Joe Bloggs')
|
451
451
|
pom.provided_dependencies.concat [:javax_servlet]
|
data/lib/buildr/version.rb
CHANGED
@@ -156,6 +156,30 @@ describe Buildr::CustomPom do
|
|
156
156
|
verify_dependency(@pom_xml, 'id-test', 'group', '1.0', 'test', nil)
|
157
157
|
end
|
158
158
|
end
|
159
|
+
|
160
|
+
describe 'with a multi-module project' do
|
161
|
+
before do
|
162
|
+
write 'foo/src/main/java/Foo.java', 'public class Foo {}'
|
163
|
+
write 'bar/src/main/java/Bar.java', 'public class Bar {}'
|
164
|
+
define('myproject', :group => 'group', :version => '1.0') do
|
165
|
+
define('foo') do
|
166
|
+
package(:jar)
|
167
|
+
end
|
168
|
+
define(:bar) do
|
169
|
+
compile.with project('foo')
|
170
|
+
package(:jar)
|
171
|
+
pom.description = 'BAR Project'
|
172
|
+
end
|
173
|
+
end
|
174
|
+
task('package').invoke
|
175
|
+
|
176
|
+
@pom_xml = project_pom_xml(project('myproject:bar'))
|
177
|
+
end
|
178
|
+
|
179
|
+
it 'should add foo to the dependencies of bar\'s pom.xml' do
|
180
|
+
verify_dependency(@pom_xml, 'myproject-foo', 'group', '1.0', nil, nil)
|
181
|
+
end
|
182
|
+
end
|
159
183
|
end
|
160
184
|
|
161
185
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0.
|
4
|
+
version: 1.5.0.dev3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apache Buildr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|