buildr 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +24 -1
- data/addon/buildr/bnd.rb +7 -5
- data/addon/buildr/custom_pom.rb +3 -272
- data/addon/buildr/git_auto_version.rb +3 -1
- data/addon/buildr/gwt.rb +66 -7
- data/addon/buildr/protobuf.rb +5 -8
- data/buildr.gemspec +2 -3
- data/doc/contributing.textile +3 -20
- data/doc/download.textile +6 -6
- data/doc/index.textile +7 -0
- data/doc/settings_profiles.textile +1 -1
- data/lib/buildr.rb +1 -1
- data/lib/buildr/core/build.rb +1 -1
- data/lib/buildr/core/filter.rb +1 -1
- data/lib/buildr/core/project.rb +1 -1
- data/lib/buildr/core/transports.rb +1 -1
- data/lib/buildr/ide/idea.rb +18 -3
- data/lib/buildr/java/custom_pom.rb +265 -0
- data/lib/buildr/java/ecj.rb +2 -2
- data/lib/buildr/java/jruby.rb +3 -3
- data/lib/buildr/java/packaging.rb +6 -4
- data/lib/buildr/java/rjb.rb +5 -5
- data/lib/buildr/packaging/archive.rb +3 -3
- data/lib/buildr/packaging/artifact.rb +30 -24
- data/lib/buildr/packaging/package.rb +2 -1
- data/lib/buildr/packaging/zip.rb +2 -2
- data/lib/buildr/scala/bdd.rb +21 -21
- data/lib/buildr/scala/compiler.rb +21 -18
- data/lib/buildr/scala/tests.rb +1 -1
- data/lib/buildr/version.rb +1 -1
- data/rakelib/release.rake +5 -3
- data/rakelib/stage.rake +1 -1
- data/spec/addon/jaxb_xjc_spec.rb +0 -1
- data/spec/core/application_spec.rb +1 -1
- data/spec/core/common_spec.rb +1 -1
- data/spec/core/project_spec.rb +3 -3
- data/spec/core/test_spec.rb +1 -1
- data/spec/core/transport_spec.rb +10 -2
- data/spec/{addon → java}/custom_pom_spec.rb +3 -16
- data/spec/java/ecj_spec.rb +2 -2
- data/spec/java/java_spec.rb +1 -1
- data/spec/java/tests_spec.rb +1 -1
- data/spec/packaging/artifact_spec.rb +23 -15
- data/spec/packaging/packaging_spec.rb +10 -2
- data/spec/scala/bdd_spec.rb +0 -1
- data/spec/scala/compiler_spec.rb +4 -4
- data/spec/scala/doc_spec.rb +0 -1
- data/spec/scala/tests_spec.rb +2 -3
- metadata +18 -36
- data/lib/buildr/scala/org/apache/buildr/Specs2Runner.java +0 -37
- data/lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.class +0 -0
- data/lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.java +0 -57
- data/lib/buildr/scala/org/apache/buildr/ZincRunner.class +0 -0
- data/lib/buildr/scala/org/apache/buildr/ZincRunner.java +0 -37
data/lib/buildr/scala/tests.rb
CHANGED
@@ -113,7 +113,7 @@ module Buildr::Scala#:nodoc:
|
|
113
113
|
"org.scalatest:scalatest:jar:#{version}"
|
114
114
|
elsif Buildr::Scala.version < "2.11"
|
115
115
|
"org.scalatest:scalatest_#{Buildr::Scala.version_without_build}:jar:#{version}"
|
116
|
-
else
|
116
|
+
else
|
117
117
|
"org.scalatest:scalatest_#{Buildr::Scala.version_major_minor}:jar:#{version}"
|
118
118
|
end
|
119
119
|
end
|
data/lib/buildr/version.rb
CHANGED
data/rakelib/release.rake
CHANGED
@@ -13,16 +13,18 @@
|
|
13
13
|
# License for the specific language governing permissions and limitations under
|
14
14
|
# the License.
|
15
15
|
|
16
|
+
RC_VERSION = ENV['RC_VERSION'] || ""
|
17
|
+
|
16
18
|
desc 'Release the next version of buildr from existing staged repository'
|
17
19
|
task 'release' do |task, args|
|
18
20
|
user = args.user || ENV['user'] || `whoami`
|
19
|
-
|
21
|
+
|
20
22
|
# First, we need to get all the staged files from Apache to _release.
|
21
23
|
mkpath '_release'
|
22
24
|
lambda do
|
23
|
-
url = "https://dist.apache.org/repos/dist/dev/buildr/#{spec.version}"
|
25
|
+
url = "https://dist.apache.org/repos/dist/dev/buildr/#{spec.version}#{RC_VERSION}"
|
24
26
|
puts "Populating _release directory from #{url} ..."
|
25
|
-
sh "svn co #{url} _release/#{spec.version}"
|
27
|
+
sh "svn co #{url} _release/#{spec.version}"
|
26
28
|
puts '[X] Staged files are now in _release'
|
27
29
|
end.call
|
28
30
|
|
data/rakelib/stage.rake
CHANGED
@@ -191,7 +191,7 @@ p>. ("Release signing keys":#{official}/KEYS)
|
|
191
191
|
# email for you and vote on it.
|
192
192
|
lambda do
|
193
193
|
# Need to know who you are on Apache, local user may be different (see .ssh/config).
|
194
|
-
base_url = "https://dist.apache.org/repos/dist/dev/buildr/#{spec.version}"
|
194
|
+
base_url = "https://dist.apache.org/repos/dist/dev/buildr/#{spec.version}#{RC_VERSION}"
|
195
195
|
# Need changes for this release only.
|
196
196
|
changelog = File.read('CHANGELOG').scan(/(^(\d+\.\d+(?:\.\d+)?)\s+\(\d{4}-\d{2}-\d{2}\)\s*((:?^[^\n]+\n)*))/)
|
197
197
|
changes = changelog[0][2]
|
data/spec/addon/jaxb_xjc_spec.rb
CHANGED
@@ -33,7 +33,7 @@ describe Buildr::Application do
|
|
33
33
|
before(:each) do
|
34
34
|
FileUtils.touch 'Buildfile'
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
it 'should execute *_load methods in order' do
|
38
38
|
order = [:load_gems, :load_artifact_ns, :load_tasks, :raw_load_buildfile]
|
39
39
|
order.each { |method| Buildr.application.should_receive(method).ordered }
|
data/spec/core/common_spec.rb
CHANGED
@@ -401,7 +401,7 @@ describe Buildr::Filter do
|
|
401
401
|
read(file).should eql("#{File.basename(file)} with value1 and value2")
|
402
402
|
end
|
403
403
|
end
|
404
|
-
|
404
|
+
|
405
405
|
it 'should not apply filters to binary files' do
|
406
406
|
["jpg", "jpeg", "gif", "png"].each { |ext| write "images/file.#{ext}", 'something' }
|
407
407
|
filter = @filter.from('images').into('target').using('key1'=>'value1', 'key2'=>'value2')
|
data/spec/core/project_spec.rb
CHANGED
@@ -336,7 +336,7 @@ describe Rake::Task, ' recursive' do
|
|
336
336
|
@order
|
337
337
|
end
|
338
338
|
recursive_task('doda') { project('foo').order << 'foo' }
|
339
|
-
define('bar') {
|
339
|
+
define('bar') {
|
340
340
|
recursive_task('doda') { project('foo').order << 'foo:bar' }
|
341
341
|
define('baz') {
|
342
342
|
recursive_task('doda') { project('foo').order << 'foo:bar:baz' }
|
@@ -578,7 +578,7 @@ end
|
|
578
578
|
describe Rake::Task, ' local directory' do
|
579
579
|
before do
|
580
580
|
@task = Project.local_task(task(('doda')))
|
581
|
-
|
581
|
+
|
582
582
|
end
|
583
583
|
|
584
584
|
it 'should execute project in local directory' do
|
@@ -601,7 +601,7 @@ describe Rake::Task, ' local directory' do
|
|
601
601
|
task('doda') { |task| @task.from project.name }
|
602
602
|
define 'bar'
|
603
603
|
}
|
604
|
-
|
604
|
+
|
605
605
|
in_original_dir('../not_foo') { @task.invoke }
|
606
606
|
end
|
607
607
|
|
data/spec/core/test_spec.rb
CHANGED
data/spec/core/transport_spec.rb
CHANGED
@@ -246,7 +246,7 @@ describe URI::HTTP, '#read' do
|
|
246
246
|
@http.should_receive(:use_ssl=).with(true)
|
247
247
|
URI(@uri.to_s.sub(/http/, 'https')).read
|
248
248
|
end
|
249
|
-
|
249
|
+
|
250
250
|
it 'should use custom SSL CA certificates if provided through the environment variable SSL_CA_CERTS' do
|
251
251
|
ENV['SSL_VERIFY_MODE'] = 'VERIFY_PEER'
|
252
252
|
Net::HTTP.should_receive(:new).with(@host_domain, 443).and_return(@http)
|
@@ -254,7 +254,7 @@ describe URI::HTTP, '#read' do
|
|
254
254
|
@http.should_receive(:verify_mode=).with(OpenSSL::SSL::VERIFY_PEER)
|
255
255
|
URI(@uri.to_s.sub(/http/, 'https')).read
|
256
256
|
end
|
257
|
-
|
257
|
+
|
258
258
|
it 'should use custom verify mode if provided through the environment variable SSL_VERIFY_MODE' do
|
259
259
|
ENV['SSL_CA_CERTS'] = 'tmp/certs'
|
260
260
|
Net::HTTP.should_receive(:new).with(@host_domain, 443).and_return(@http)
|
@@ -421,6 +421,14 @@ describe URI::HTTP, '#write' do
|
|
421
421
|
@uri.write @content
|
422
422
|
end
|
423
423
|
|
424
|
+
it 'should set User-Agent header' do
|
425
|
+
@http.should_receive(:request) do |request|
|
426
|
+
request['User-Agent'].should == "Buildr-#{Buildr::VERSION}"
|
427
|
+
Net::HTTPOK.new(nil, nil, nil)
|
428
|
+
end
|
429
|
+
@uri.write @content
|
430
|
+
end
|
431
|
+
|
424
432
|
it 'should send entire content' do
|
425
433
|
@http.should_receive(:request) do |request|
|
426
434
|
body_stream = request.body_stream
|
@@ -13,20 +13,9 @@
|
|
13
13
|
# License for the specific language governing permissions and limitations under
|
14
14
|
# the License.
|
15
15
|
|
16
|
-
# The testing framework does not support loading and then unloading of addons
|
17
|
-
# thus we can not test this addon until we figure out a mechanism of supporting
|
18
|
-
# unloading addon as the test progresses
|
19
|
-
if false
|
20
|
-
|
21
16
|
require File.expand_path('../spec_helpers', File.dirname(__FILE__))
|
22
17
|
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'xpath_matchers'))
|
23
18
|
|
24
|
-
# Next line should work but does not
|
25
|
-
#Sandbox.require_optional_extension 'buildr/custom_pom'
|
26
|
-
|
27
|
-
# Next line should not be used but is required
|
28
|
-
require 'buildr/custom_pom'
|
29
|
-
|
30
19
|
describe Buildr::CustomPom do
|
31
20
|
|
32
21
|
def xml_document(filename)
|
@@ -156,7 +145,7 @@ describe Buildr::CustomPom do
|
|
156
145
|
verify_dependency(@pom_xml, 'id-test', 'group', '1.0', 'test', nil)
|
157
146
|
end
|
158
147
|
end
|
159
|
-
|
148
|
+
|
160
149
|
describe 'with a multi-module project' do
|
161
150
|
before do
|
162
151
|
write 'foo/src/main/java/Foo.java', 'public class Foo {}'
|
@@ -172,14 +161,12 @@ describe Buildr::CustomPom do
|
|
172
161
|
end
|
173
162
|
end
|
174
163
|
task('package').invoke
|
175
|
-
|
164
|
+
|
176
165
|
@pom_xml = project_pom_xml(project('myproject:bar'))
|
177
166
|
end
|
178
|
-
|
167
|
+
|
179
168
|
it 'should add foo to the dependencies of bar\'s pom.xml' do
|
180
169
|
verify_dependency(@pom_xml, 'myproject-foo', 'group', '1.0', nil, nil)
|
181
170
|
end
|
182
171
|
end
|
183
172
|
end
|
184
|
-
|
185
|
-
end
|
data/spec/java/ecj_spec.rb
CHANGED
@@ -75,7 +75,7 @@ describe 'ecj compiler' do
|
|
75
75
|
file('target/classes/DependencyTest.class').should exist
|
76
76
|
end
|
77
77
|
end
|
78
|
-
|
78
|
+
|
79
79
|
it 'should include tools.jar dependency' do
|
80
80
|
repositories.remote << "http://repo1.maven.org/maven2/"
|
81
81
|
write 'src/main/java/UseJarSigner.java', <<-JAVA
|
@@ -290,7 +290,7 @@ describe 'ecj compiler options' do
|
|
290
290
|
}
|
291
291
|
redirect_java_err { foo.compile.invoke }.should match(/warning/)
|
292
292
|
end
|
293
|
-
|
293
|
+
|
294
294
|
it 'should pick Ecj version from ecj build settings' do
|
295
295
|
begin
|
296
296
|
Buildr::Compiler::Ecj.instance_eval { @dependencies = nil }
|
data/spec/java/java_spec.rb
CHANGED
data/spec/java/tests_spec.rb
CHANGED
@@ -415,7 +415,7 @@ describe Buildr::TestNG do
|
|
415
415
|
project('foo').test.compile.dependencies.should include(artifact("#{group}:jmock:jar:#{JMock.version}"))
|
416
416
|
project('foo').test.dependencies.should include(artifact("#{group}:jmock:jar:#{JMock.version}"))
|
417
417
|
end
|
418
|
-
|
418
|
+
|
419
419
|
it 'should parse test classes in paths containing escaped sequences' do
|
420
420
|
write 'bar%2F/src/test/java/com/example/AnnotatedClass.java', <<-JAVA
|
421
421
|
package com.example;
|
@@ -217,14 +217,14 @@ describe Repositories, 'remote_uri' do
|
|
217
217
|
|
218
218
|
@repos = [ 'https://oss.sonatype.org/', 'http://www.ibiblio.org/maven2', { :url => 'http://repo1.maven.org/maven2', :username => 'user', :password => 'password' } ]
|
219
219
|
end
|
220
|
-
|
220
|
+
|
221
221
|
it 'should convert remote to array of uri' do
|
222
222
|
uri = URI.parse( 'http://repo1.maven.org/maven2' )
|
223
|
-
uri.user = 'user'
|
223
|
+
uri.user = 'user'
|
224
224
|
uri.password = 'password'
|
225
|
-
|
225
|
+
|
226
226
|
uris = [ URI.parse( 'https://oss.sonatype.org/'), URI.parse( 'http://www.ibiblio.org/maven2' ), uri ]
|
227
|
-
|
227
|
+
|
228
228
|
repositories.remote = @repos
|
229
229
|
repositories.remote_uri.should eql(uris)
|
230
230
|
end
|
@@ -235,10 +235,10 @@ describe Repositories, 'mirrors' do
|
|
235
235
|
Buildr.repositories.instance_eval do
|
236
236
|
@local = @remote = @release_to = @mirrors = nil
|
237
237
|
end
|
238
|
-
|
238
|
+
|
239
239
|
@repos = [ 'http://www.ibiblio.org/maven2', 'http://repo1.maven.org/maven2' ]
|
240
240
|
end
|
241
|
-
|
241
|
+
|
242
242
|
it 'should be empty initially' do
|
243
243
|
repositories.mirrors.should be_empty
|
244
244
|
end
|
@@ -247,7 +247,7 @@ describe Repositories, 'mirrors' do
|
|
247
247
|
repositories.mirrors = @repos.first
|
248
248
|
repositories.mirrors.should eql([@repos.first])
|
249
249
|
end
|
250
|
-
|
250
|
+
|
251
251
|
it 'should be settable from array' do
|
252
252
|
repositories.mirrors = @repos
|
253
253
|
repositories.mirrors.should eql(@repos)
|
@@ -257,12 +257,12 @@ describe Repositories, 'mirrors' do
|
|
257
257
|
@repos.each { |url| repositories.mirrors << url }
|
258
258
|
repositories.mirrors.should eql(@repos)
|
259
259
|
end
|
260
|
-
|
260
|
+
|
261
261
|
it 'should log that it is overridding the remote repositories with the mirrors' do
|
262
262
|
@repos.each { |url| repositories.mirrors << url }
|
263
263
|
lambda { repositories.remote }.should show_info /Remote repositories overridden by mirrors /
|
264
264
|
end
|
265
|
-
|
265
|
+
|
266
266
|
it 'should load with all repositories specified in settings file' do
|
267
267
|
write 'home/.buildr/settings.yaml', <<-YAML
|
268
268
|
repositories:
|
@@ -998,7 +998,7 @@ end
|
|
998
998
|
|
999
999
|
|
1000
1000
|
describe ActsAsArtifact, '#upload' do
|
1001
|
-
|
1001
|
+
|
1002
1002
|
it 'should be used to upload artifact' do
|
1003
1003
|
artifact = artifact('com.example:library:jar:2.0')
|
1004
1004
|
# Prevent artifact from downloading anything.
|
@@ -1027,7 +1027,7 @@ describe ActsAsArtifact, '#upload' do
|
|
1027
1027
|
write repositories.locate(artifact.pom)
|
1028
1028
|
lambda { artifact.upload }.should raise_error(Exception, /where to upload/)
|
1029
1029
|
end
|
1030
|
-
|
1030
|
+
|
1031
1031
|
it 'should upload SNAPSHOT with timestamped unique version and maven metadata' do
|
1032
1032
|
artifact = artifact('com.example:library:jar:2.0-SNAPSHOT')
|
1033
1033
|
# Prevent artifact from downloading anything.
|
@@ -1042,7 +1042,7 @@ describe ActsAsArtifact, '#upload' do
|
|
1042
1042
|
URI.should_receive(:upload).once.
|
1043
1043
|
with(URI.parse('sftp://example.com/base/com/example/library/2.0-SNAPSHOT/library-2.0-20110311.140236-1.jar'), artifact.to_s, anything)
|
1044
1044
|
URI.should_receive(:write).once.
|
1045
|
-
with(URI.parse('sftp://example.com/base/com/example/library/2.0-SNAPSHOT/
|
1045
|
+
with(URI.parse('sftp://example.com/base/com/example/library/2.0-SNAPSHOT/maven-metadata.xml'), anything, anything)
|
1046
1046
|
verbose(false) { artifact.upload(:url=>'sftp://example.com/base') }
|
1047
1047
|
end
|
1048
1048
|
|
@@ -1069,7 +1069,7 @@ describe ActsAsArtifact, '#upload' do
|
|
1069
1069
|
URI.should_receive(:upload).once.
|
1070
1070
|
with(URI.parse('sftp://buildr.apache.org/repository/noexist/base/com/example/library/2.0-SNAPSHOT/library-2.0-20161111.140236-1.jar'), artifact.to_s, anything)
|
1071
1071
|
URI.should_receive(:write).once.
|
1072
|
-
with(URI.parse('sftp://buildr.apache.org/repository/noexist/base/com/example/library/2.0-SNAPSHOT/
|
1072
|
+
with(URI.parse('sftp://buildr.apache.org/repository/noexist/base/com/example/library/2.0-SNAPSHOT/maven-metadata.xml'), anything, anything)
|
1073
1073
|
repositories.release_to = 'sftp://buildr.apache.org/repository/noexist/base'
|
1074
1074
|
artifact.upload
|
1075
1075
|
lambda { artifact.upload }.should_not raise_error
|
@@ -1087,7 +1087,7 @@ describe ActsAsArtifact, '#upload' do
|
|
1087
1087
|
URI.should_receive(:upload).once.
|
1088
1088
|
with(URI.parse('sftp://buildr.apache.org/repository/noexist/snapshot/com/example/library/2.0-SNAPSHOT/library-2.0-20161111.140236-1.jar'), artifact.to_s, anything)
|
1089
1089
|
URI.should_receive(:write).once.
|
1090
|
-
with(URI.parse('sftp://buildr.apache.org/repository/noexist/snapshot/com/example/library/2.0-SNAPSHOT/
|
1090
|
+
with(URI.parse('sftp://buildr.apache.org/repository/noexist/snapshot/com/example/library/2.0-SNAPSHOT/maven-metadata.xml'), anything, anything)
|
1091
1091
|
repositories.release_to = 'sftp://buildr.apache.org/repository/noexist/base'
|
1092
1092
|
repositories.snapshot_to = 'sftp://buildr.apache.org/repository/noexist/snapshot'
|
1093
1093
|
artifact.upload
|
@@ -1214,7 +1214,15 @@ end
|
|
1214
1214
|
describe Buildr, '#transitive' do
|
1215
1215
|
before do
|
1216
1216
|
repositories.remote = 'http://buildr.apache.org/repository/noexist'
|
1217
|
-
|
1217
|
+
write artifact('org.sonatype.oss:oss-parent:pom:7').pom.to_s, <<-XML
|
1218
|
+
<project>
|
1219
|
+
<artifactId>oss-parent</artifactId>
|
1220
|
+
<groupId>org.sonatype.oss</groupId>
|
1221
|
+
<version>7</version>
|
1222
|
+
</project>
|
1223
|
+
XML
|
1224
|
+
|
1225
|
+
@simple = %w(saxon:saxon:jar:8.4 saxon:saxon-dom:jar:8.4 saxon:saxon-xpath:jar:8.4)
|
1218
1226
|
@simple.map { |spec| artifact(spec).pom }.each { |task| write task.name, task.pom_xml.call }
|
1219
1227
|
@provided = @simple.first
|
1220
1228
|
@complex = 'group:app:jar:1.0'
|
@@ -356,16 +356,24 @@ describe Project, '#package' do
|
|
356
356
|
end
|
357
357
|
|
358
358
|
it 'should create POM artifact that creates its own POM' do
|
359
|
-
define('foo', :group=>'bar', :version=>'1.0') { package(:jar
|
359
|
+
define('foo', :group=>'bar', :version=>'1.0') { package(:jar) }
|
360
360
|
pom = project('foo').packages.first.pom
|
361
361
|
pom.invoke
|
362
362
|
read(pom.to_s).should eql(<<-POM
|
363
363
|
<?xml version="1.0" encoding="UTF-8"?>
|
364
|
-
<project>
|
364
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
365
365
|
<modelVersion>4.0.0</modelVersion>
|
366
|
+
<parent>
|
367
|
+
<groupId>org.sonatype.oss</groupId>
|
368
|
+
<artifactId>oss-parent</artifactId>
|
369
|
+
<version>7</version>
|
370
|
+
</parent>
|
366
371
|
<groupId>bar</groupId>
|
367
372
|
<artifactId>foo</artifactId>
|
368
373
|
<version>1.0</version>
|
374
|
+
<packaging>jar</packaging>
|
375
|
+
<name>foo</name>
|
376
|
+
<description>foo</description>
|
369
377
|
</project>
|
370
378
|
POM
|
371
379
|
)
|
data/spec/scala/bdd_spec.rb
CHANGED
data/spec/scala/compiler_spec.rb
CHANGED
@@ -155,7 +155,7 @@ share_as :ScalacCompiler_CommonOptions do
|
|
155
155
|
compile_task.using(:warnings=>false)
|
156
156
|
scalac_args.should include('-nowarn')
|
157
157
|
end
|
158
|
-
|
158
|
+
|
159
159
|
it 'should pass options to javac' do
|
160
160
|
compile_task.using(:warnings=>false)
|
161
161
|
javac_args.should include('-nowarn')
|
@@ -307,7 +307,7 @@ describe 'scala compiler 2.9 options' do
|
|
307
307
|
def scalac_args
|
308
308
|
compile_task.instance_eval { @compiler }.send(:scalac_args)
|
309
309
|
end
|
310
|
-
|
310
|
+
|
311
311
|
def javac_args
|
312
312
|
compile_task.instance_eval { @compiler }.instance_eval { @java }.send(:javac_args)
|
313
313
|
end
|
@@ -344,7 +344,7 @@ describe 'zinc compiler (enabled through Buildr.settings)' do
|
|
344
344
|
compiler.should_receive(:compile_with_zinc).once
|
345
345
|
compile_task.invoke
|
346
346
|
end
|
347
|
-
|
347
|
+
|
348
348
|
it_should_behave_like ScalacCompiler
|
349
349
|
|
350
350
|
after :each do
|
@@ -365,4 +365,4 @@ describe 'zinc compiler (enabled through project.scala_options)' do
|
|
365
365
|
compiler.should_receive(:compile_with_zinc).once
|
366
366
|
compile_task.invoke
|
367
367
|
end
|
368
|
-
end
|
368
|
+
end
|
data/spec/scala/doc_spec.rb
CHANGED
data/spec/scala/tests_spec.rb
CHANGED
@@ -208,9 +208,9 @@ describe Buildr::Scala::ScalaTest do
|
|
208
208
|
import org.scalatest._
|
209
209
|
import org.scalatest.fixture.FunSuite
|
210
210
|
import org.scalatest.fixture.ConfigMapFixture
|
211
|
-
|
211
|
+
|
212
212
|
class PropertyTestSuite extends FunSuite with ConfigMapFixture {
|
213
|
-
|
213
|
+
|
214
214
|
test("testProperty") { (configMap: Map[String, Any]) =>
|
215
215
|
assert(configMap("name") === "value")
|
216
216
|
}
|
@@ -283,4 +283,3 @@ describe Buildr::Scala::ScalaTest do
|
|
283
283
|
end
|
284
284
|
|
285
285
|
end
|
286
|
-
|
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.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apache Buildr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.8.3
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: hoe
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 3.15.0
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 3.15.0
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rjb
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,20 +178,6 @@ dependencies:
|
|
192
178
|
- - ">="
|
193
179
|
- !ruby/object:Gem::Version
|
194
180
|
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: orderedhash
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - '='
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: 0.0.6
|
202
|
-
type: :runtime
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - '='
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 0.0.6
|
209
181
|
- !ruby/object:Gem::Dependency
|
210
182
|
name: jekyll
|
211
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -290,6 +262,20 @@ dependencies:
|
|
290
262
|
- - '='
|
291
263
|
- !ruby/object:Gem::Version
|
292
264
|
version: 0.1.0
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: hoe
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - '='
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 3.15.1
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - '='
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 3.15.1
|
293
279
|
- !ruby/object:Gem::Dependency
|
294
280
|
name: rspec-expectations
|
295
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -573,6 +559,7 @@ files:
|
|
573
559
|
- lib/buildr/java/cobertura.rb
|
574
560
|
- lib/buildr/java/commands.rb
|
575
561
|
- lib/buildr/java/compiler.rb
|
562
|
+
- lib/buildr/java/custom_pom.rb
|
576
563
|
- lib/buildr/java/deprecated.rb
|
577
564
|
- lib/buildr/java/doc.rb
|
578
565
|
- lib/buildr/java/ecj.rb
|
@@ -609,11 +596,6 @@ files:
|
|
609
596
|
- lib/buildr/scala/compiler.rb
|
610
597
|
- lib/buildr/scala/doc.rb
|
611
598
|
- lib/buildr/scala/org/apache/buildr/Specs2Runner.class
|
612
|
-
- lib/buildr/scala/org/apache/buildr/Specs2Runner.java
|
613
|
-
- lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.class
|
614
|
-
- lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.java
|
615
|
-
- lib/buildr/scala/org/apache/buildr/ZincRunner.class
|
616
|
-
- lib/buildr/scala/org/apache/buildr/ZincRunner.java
|
617
599
|
- lib/buildr/scala/shell.rb
|
618
600
|
- lib/buildr/scala/tests.rb
|
619
601
|
- lib/buildr/shell.rb
|
@@ -628,7 +610,6 @@ files:
|
|
628
610
|
- rakelib/stage.rake
|
629
611
|
- spec/addon/bnd_spec.rb
|
630
612
|
- spec/addon/checkstyle_spec.rb
|
631
|
-
- spec/addon/custom_pom_spec.rb
|
632
613
|
- spec/addon/drb_spec.rb
|
633
614
|
- spec/addon/jaxb_xjc_spec.rb
|
634
615
|
- spec/core/application_spec.rb
|
@@ -658,6 +639,7 @@ files:
|
|
658
639
|
- spec/java/cobertura_spec.rb
|
659
640
|
- spec/java/commands_spec.rb
|
660
641
|
- spec/java/compiler_spec.rb
|
642
|
+
- spec/java/custom_pom_spec.rb
|
661
643
|
- spec/java/doc_spec.rb
|
662
644
|
- spec/java/ecj_spec.rb
|
663
645
|
- spec/java/emma_spec.rb
|