buildr 1.5.0.dev2-x86-mswin32 → 1.5.0.dev3-x86-mswin32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d7b89d21a1e972b39844d28e2da495ed75b339e
4
- data.tar.gz: f07199d7246492055d26649193131f0544232e8c
3
+ metadata.gz: c691076ddbcc27f0d8b9163f2d84f466b22cf0bb
4
+ data.tar.gz: 579f0a9b82deb19560deee89fb13c257fd537643
5
5
  SHA512:
6
- metadata.gz: 934bfcc623f2eabc13854ed25789732f812d90985c7096c638739b555b70e9c88a23186811e7569103dfbb196aa3ad9119dbf2f063f2e38655a3d872e84c9f77
7
- data.tar.gz: 8eccd82b0f016db8cac57a6fa82d97abe137d8cceac3ffb9107f5ef836b5679d6ce426d8a3331b9a3d557dd411fbc4370267df0b213c9e8be82c3aff5c0d6ffd
6
+ metadata.gz: b992ae33d8e46a414bed382756f9efb71fb25693d82d81f9c6499cd63394510c3a7fd42cd1dada738fb2f5b53292db2e4330fb5831e66806b0537a7a2b8e1e17
7
+ data.tar.gz: 5ad862e114066aec2163820e35fb84c1e5faa50ba337677cd5f12f9101675601f5c58265c78723d281305ced5611e8fc103de93c81812b679853227b0bc87f61
@@ -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?(Artifact) }.
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?(Artifact) && !project.compile.dependencies.include?(d) }.collect { |d| d.to_hash.merge(:scope => 'test') }
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]
@@ -445,7 +445,7 @@ define 'myproject' do
445
445
  project.group = 'org.myproject'
446
446
  project.version = '1.0'
447
447
 
448
- pom.add_apache2_license
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]
@@ -14,5 +14,5 @@
14
14
  # the License.
15
15
 
16
16
  module Buildr #:nodoc:
17
- VERSION = '1.5.0.dev2'.freeze
17
+ VERSION = '1.5.0.dev3'.freeze
18
18
  end
@@ -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.dev2
4
+ version: 1.5.0.dev3
5
5
  platform: x86-mswin32
6
6
  authors:
7
7
  - Apache Buildr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-22 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake