buildr 1.4.25 → 1.5.0.dev2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +50 -0
  3. data/NOTICE +1 -1
  4. data/README.rdoc +1 -1
  5. data/addon/buildr/bnd.rb +0 -6
  6. data/addon/buildr/custom_pom.rb +6 -0
  7. data/addon/buildr/org/apache/buildr/BuildrNail$Main.class +0 -0
  8. data/addon/buildr/org/apache/buildr/BuildrNail.class +0 -0
  9. data/addon/buildr/org/apache/buildr/JettyWrapper$1.class +0 -0
  10. data/addon/buildr/org/apache/buildr/JettyWrapper$BuildrHandler.class +0 -0
  11. data/addon/buildr/org/apache/buildr/JettyWrapper.class +0 -0
  12. data/addon/buildr/wsgen.rb +27 -27
  13. data/buildr.buildfile +1 -1
  14. data/buildr.gemspec +13 -9
  15. data/doc/_config.yml +3 -1
  16. data/doc/_layouts/default.html +1 -1
  17. data/doc/artifacts.textile +42 -0
  18. data/doc/download.textile +18 -6
  19. data/doc/languages.textile +15 -1
  20. data/doc/packaging.textile +1 -1
  21. data/doc/preface.textile +1 -1
  22. data/doc/projects.textile +13 -0
  23. data/doc/releasing.textile +14 -0
  24. data/doc/settings_profiles.textile +4 -0
  25. data/lib/buildr.rb +1 -0
  26. data/lib/buildr/core/application.rb +2 -3
  27. data/lib/buildr/core/build.rb +21 -34
  28. data/lib/buildr/core/compile.rb +0 -12
  29. data/lib/buildr/core/filter.rb +7 -0
  30. data/lib/buildr/core/generate.rb +1 -0
  31. data/lib/buildr/core/project.rb +14 -4
  32. data/lib/buildr/core/test.rb +2 -4
  33. data/lib/buildr/core/transports.rb +2 -0
  34. data/lib/buildr/groovy/bdd.rb +0 -7
  35. data/lib/buildr/ide/eclipse.rb +3 -3
  36. data/lib/buildr/java/ant.rb +0 -6
  37. data/lib/buildr/java/bdd.rb +0 -7
  38. data/lib/buildr/java/commands.rb +1 -1
  39. data/lib/buildr/java/deprecated.rb +0 -60
  40. data/lib/buildr/java/ecj.rb +16 -3
  41. data/lib/buildr/java/jruby.rb +19 -1
  42. data/lib/buildr/java/packaging.rb +4 -8
  43. data/lib/buildr/java/pom.rb +17 -12
  44. data/lib/buildr/java/rjb.rb +21 -3
  45. data/lib/buildr/java/tests.rb +0 -21
  46. data/lib/buildr/packaging/archive.rb +1 -1
  47. data/lib/buildr/packaging/artifact.rb +132 -3
  48. data/lib/buildr/packaging/zip.rb +32 -29
  49. data/lib/buildr/packaging/ziptask.rb +7 -5
  50. data/lib/buildr/scala.rb +0 -1
  51. data/lib/buildr/scala/bdd.rb +28 -122
  52. data/lib/buildr/scala/compiler.rb +24 -10
  53. data/lib/buildr/scala/doc.rb +0 -1
  54. data/lib/buildr/scala/org/apache/buildr/Specs2Runner.class +0 -0
  55. data/lib/buildr/scala/org/apache/buildr/Specs2Runner.java +4 -3
  56. data/lib/buildr/scala/org/apache/buildr/ZincRunner.class +0 -0
  57. data/lib/buildr/scala/org/apache/buildr/ZincRunner.java +37 -0
  58. data/lib/buildr/scala/tests.rb +18 -26
  59. data/lib/buildr/version.rb +1 -1
  60. data/spec/addon/bnd_spec.rb +5 -5
  61. data/spec/addon/custom_pom_spec.rb +38 -32
  62. data/spec/addon/jaxb_xjc_spec.rb +0 -4
  63. data/spec/core/application_spec.rb +4 -5
  64. data/spec/core/build_spec.rb +10 -51
  65. data/spec/core/common_spec.rb +7 -0
  66. data/spec/core/compile_spec.rb +0 -6
  67. data/spec/core/console_spec.rb +1 -1
  68. data/spec/core/generate_from_eclipse_spec.rb +22 -8
  69. data/spec/core/project_spec.rb +34 -70
  70. data/spec/core/test_spec.rb +6 -9
  71. data/spec/core/transport_spec.rb +16 -7
  72. data/spec/groovy/compiler_spec.rb +2 -2
  73. data/spec/java/ant_spec.rb +0 -5
  74. data/spec/java/compiler_spec.rb +4 -4
  75. data/spec/java/ecj_spec.rb +244 -45
  76. data/spec/java/java_spec.rb +7 -9
  77. data/spec/java/packaging_spec.rb +23 -23
  78. data/spec/java/pom_spec.rb +37 -0
  79. data/spec/java/tests_spec.rb +0 -5
  80. data/spec/packaging/archive_spec.rb +1 -1
  81. data/spec/packaging/artifact_spec.rb +129 -7
  82. data/spec/packaging/packaging_spec.rb +1 -1
  83. data/spec/sandbox.rb +2 -2
  84. data/spec/scala/bdd_spec.rb +0 -101
  85. data/spec/scala/compiler_spec.rb +20 -16
  86. data/spec/scala/doc_spec.rb +0 -11
  87. data/spec/scala/tests_spec.rb +6 -15
  88. data/spec/spec_helpers.rb +1 -1
  89. data/spec/xpath_matchers.rb +2 -1
  90. metadata +64 -22
  91. data/addon/buildr/cobertura.rb +0 -21
  92. data/addon/buildr/emma.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43b43e223f9b6d6c3a7864bc6b8f09e9062f485d
4
- data.tar.gz: d32547db15caf2e9443698e989b1db7f48d4943d
3
+ metadata.gz: 4d1df22de3fbfb6b76cbe6090e33d359ec7a0f8c
4
+ data.tar.gz: 9cbf7a0bb27c129d30096fb7274d30e657868975
5
5
  SHA512:
6
- metadata.gz: c0ae91aa8456425ca3e7bd8bdd271532ed2ecdfed0239cfddf33aa87d6c4193830906ca5b98b571f2062dd80b40aae388cd3a877187af3e08122c7c2e4f7f0f3
7
- data.tar.gz: 7372d7a16a19a7058c59f0bc147b4493d5f3a12c061d6132c976be3f08aa094c2d99a104940f814dd785be5c0449327a1509dba8c17218bcb72c51f3b1ab8720
6
+ metadata.gz: 3cb8f7cf03652b17ac23a63894e90373e87e6ffdf28dcdf27ae2ca1f5c5f8ff38dda6ec67be567c2227b7e356474c5e38eb4c4dcb66ec2e5105177ee45810cbe
7
+ data.tar.gz: 1baed4682e42d280d8f50d103aa3956e95e0f011564ddc7a564f27c2f5ab55c4c70a26730d4a6ee4daf6a43369e526532a080a4b41aaae52e3f473a3f293e4d8
data/CHANGELOG CHANGED
@@ -1,3 +1,53 @@
1
+ 1.5.0 (Pending)
2
+ * Change: Update RJB to 1.5.4
3
+ * Change: Update rubyzip to 1.2.0
4
+ * Change: Update hoe to 3.15.0
5
+ * Change: Update net-ssh to 3.1.1
6
+ * Change: Update json_pure to 1.8.3
7
+ * Change: Update diff-lcs to 1.2.5
8
+ * Change: Update xml-simple to 1.1.5
9
+ * Change: Update jekyll to 3.1.3
10
+ * Change: Update rdoc to 4.2.2
11
+ * Change: Update ecj to 4.5.1
12
+ * Change: Added jekyll-textile-converter 0.1.0 to generate the site.
13
+ * Change: Move to default on Scala 2.11.
14
+ * Change: Remove Buildr::Project#on_define, deprecated in 1.3
15
+ * Change: Remove JavaWrapper, deprecated in 1.3
16
+ * Change: Remove JUnit::REQUIRES, deprecated in 1.3.3
17
+ * Change: Remove TestNG::REQUIRES, deprecated in 1.3.3
18
+ * Change: Remove Buildr::Ant::REQUIRES, deprecated in version 1.3.3
19
+ * Change: Remove Buildr::CompileTask#classpath, deprecated in version 1.3
20
+ * Change: Remove Buildr::TestTask responding to :using with .using('foo','bar'), deprecated in version 1.3
21
+ * Change: Remove addon/buildr/cobertura.rb, deprecated since 1.3.4
22
+ * Change: Remove addon/buildr/emma.rb, deprecated since 1.3.4
23
+ * Change: Remove support for Rakefile/rakefile, deprecated.
24
+ * Change: Remove project#target, project#reports, deprecated.
25
+ * Change: Remove JBehave::REQUIRES, deprecated.
26
+ * Change: Remove JMock::REQUIRES, deprecated.
27
+ * Change: Remove ScalaCheck::REQUIRES, deprecated.
28
+ * Change: Change Eclipse Scala project natures from ch.epfl.lamp.sdt.core.scalanature to org.scala-ide.sdt.core.scalanature
29
+ * Added: Travis badge to README.rdoc
30
+ * Added: Added Rubygems badges to README.rdoc
31
+ * Added: BUILDR-577 Allow remote repo to be added with http basic auth support. Submitted by Michael Guymon.
32
+ * Added: BUILDR-523 Issue a warning when Java.classpath is modified after Java.load has happened
33
+ * Added: BUILDR-594 Added support for changing the verification mode of SSL certificates
34
+ * Added: BUILDR-595 Added support to providing custom SSL certificates
35
+ * Added: BUILDR-572 Allow to upload unique version (timestamp based) snapshot artifacts to a repository. Submitted by Brice Figureau.
36
+ * Fixed: BUILDR-207 remove 'Skipping tests' messages
37
+ * Added: BUILDR-703 release: allow THIS_VERSION to be defined in another file
38
+ * Fixed: BUILDR-674 Artifacts with bundle extension cannot be downloaded by Buildr
39
+ * Fixed: BUILDR-565 resources are not included in the war if defined after package call
40
+ * Fixed: BUILDR-621 ZipTask creates zip file with entries not sorted by path causing very slow unzipping.
41
+ * Fixed: BUILDR-695 transitive doesn't support ${project.parent.version} in POM.
42
+ * Fixed: BUILDR-653 Using Eclipse compiler (ECJ)
43
+ * Fixed: BUILDR-476 Buildr doesn't respect company repository manager
44
+ * Fixed: BUILDR-454 Definition-level parent-child references-by-name fail in 1.4.0 but not in 1.3.5. Submitted by Rhett Sutphin.
45
+ * Fixed: BUILDR-620 resources.filter should not run on non-text files
46
+ * Fixed: BUILDR-489 Java + Scala joint compiler fails if default encoding and source file encoding are not same and special characters have been used in source code
47
+ * Change: Update the custom_pom addon to generate poms with exclusions section that excludes
48
+ all transitive dependencies. This is required as buildr dependencies are not
49
+ transitive while Maven's dependencies are transitive by default.
50
+ * Change: Remove the BND aqute maven repository, as it was decomissioned. Use Maven Central instead.
1
51
  1.4.25 (2016-04-18)
2
52
  * Change: BUILDR-712 Update jruby-openssl dependency version or support a range of versions
3
53
  * Change: Update gwt addon to add the GWT artifacts to project dependencies as specs rather
data/NOTICE CHANGED
@@ -1,5 +1,5 @@
1
1
  Apache Buildr
2
- Copyright 2007-2009 The Apache Software Foundation
2
+ Copyright 2007-2016 The Apache Software Foundation
3
3
 
4
4
  This product includes software developed at
5
5
  The Apache Software Foundation (http://www.apache.org/).
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- = Buildr
1
+ = Buildr {<img src="https://travis-ci.org/apache/buildr.svg?branch=master" alt="Build status">}[https://travis-ci.org/apache/buildr] {<img src="http://ruby-gem-downloads-badge.herokuapp.com/buildr?type=total" alt="Buildr total downloads">}[https://rubygems.org/gems/buildr] {<img src="http://ruby-gem-downloads-badge.herokuapp.com/buildr" alt="Latest version downloads">}[https://rubygems.org/gems/buildr]
2
2
 
3
3
  This is Buildr, the build system that lets you build like you code.
4
4
 
data/addon/buildr/bnd.rb CHANGED
@@ -30,12 +30,6 @@ module Buildr
30
30
  ["biz.aQute:bnd:jar:#{version}"]
31
31
  end
32
32
 
33
- # Repositories containing the requirements
34
- def remote_repository
35
- Buildr.application.deprecated "'Buildr:Bnd.remote_repository deprecated as the dependencies appear in maven central."
36
- "http://www.aqute.biz/repo"
37
- end
38
-
39
33
  def bnd_main(*args)
40
34
  cp = Buildr.artifacts(self.dependencies).each(&:invoke).map(&:to_s)
41
35
  Java::Commands.java 'aQute.bnd.main.bnd', *(args + [{ :classpath => cp }])
@@ -229,6 +229,12 @@ module Buildr
229
229
  xml.version dependency[:version]
230
230
  xml.scope dependency[:scope] unless dependency[:scope] == 'compile'
231
231
  xml.optional true if dependency[:optional]
232
+ xml.exclusions do
233
+ xml.exclusion do
234
+ xml.groupId '*'
235
+ xml.artifactId '*'
236
+ end
237
+ end
232
238
  end
233
239
  end
234
240
  end
@@ -39,13 +39,13 @@ module Buildr
39
39
  # Buildr::Wsgen.java2wsdl(project, %w(com.example.MyService com.example.MyOtherService), :namespace_url => "http://example.com/services")
40
40
  # Buildr::Wsgen.java2wsdl(project, {"com.example.MyService" => {:service_name => 'MiaService', :namespace_url => "http://example.com/it/services"}))
41
41
  def java2wsdl(project, classnames, options = {})
42
- desc "Generate wsdl from java"
43
- project.task("java2wsdl").enhance([project.compile.target])
42
+ desc 'Generate wsdl from java'
43
+ project.task('java2wsdl').enhance([project.compile.target])
44
44
 
45
45
  base_wsdl_dir = File.expand_path(options[:output_dir] || project._(:target, :generated, :wsgen, :main, :wsdl))
46
46
  project.iml.main_generated_source_directories << base_wsdl_dir if project.iml?
47
47
  project.file(base_wsdl_dir)
48
- project.task("java2wsdl").enhance([base_wsdl_dir])
48
+ project.task('java2wsdl').enhance([base_wsdl_dir])
49
49
 
50
50
  services = classnames.is_a?(Array) ? classnames.inject({}) {|result, element| result[element] = {}; result} : classnames
51
51
 
@@ -69,20 +69,20 @@ module Buildr
69
69
  mkdir_p intermediate_dir
70
70
 
71
71
  args = []
72
- args << "-keep"
73
- args << "-inlineSchemas" if (options[:inlineSchemas] && ENV_JAVA['java.version'] >= '1.7')
74
- args << "-wsdl"
75
- args << "-servicename"
72
+ args << '-keep'
73
+ args << '-inlineSchemas' if (options[:inlineSchemas] && ENV_JAVA['java.version'] >= '1.7')
74
+ args << '-wsdl'
75
+ args << '-servicename'
76
76
  args << "{#{namespace_url}}#{service_name}"
77
- args << "-portname"
77
+ args << '-portname'
78
78
  args << "{#{namespace_url}}#{service_name}Port"
79
- args << "-d "
79
+ args << '-d'
80
80
  args << intermediate_dir
81
- args << "-r"
81
+ args << '-r'
82
82
  args << "#{base_wsdl_dir}/META-INF/wsdl"
83
- args << "-s"
83
+ args << '-s'
84
84
  args << java_dir
85
- args << "-cp"
85
+ args << '-cp'
86
86
  args << cp
87
87
  args << classname
88
88
 
@@ -90,7 +90,7 @@ module Buildr
90
90
  trace command
91
91
  sh command
92
92
  if $? != 0
93
- raise "Problem building wsdl"
93
+ raise 'Problem building wsdl'
94
94
  end
95
95
 
96
96
  content = IO.read(wsdl_file).gsub('REPLACE_WITH_ACTUAL_URL', "http://example.com/#{service_name}")
@@ -98,7 +98,7 @@ module Buildr
98
98
  end
99
99
 
100
100
  project.file(base_wsdl_dir).enhance([wsdl_file])
101
- project.task("java2wsdl").enhance([wsdl_file])
101
+ project.task('java2wsdl').enhance([wsdl_file])
102
102
  end
103
103
 
104
104
  base_wsdl_dir
@@ -128,10 +128,10 @@ module Buildr
128
128
  # Buildr::Wsgen.wsdl2java(project, {_('src/main/wsdl/MyService.wsdl') => {}}, :package => 'com.example' )
129
129
  # Buildr::Wsgen.wsdl2java(project, {_('src/main/wsdl/MyService.wsdl') => {}}, :wsdl_location => 'file:META-INF/wsdl/SpecificTaskService.wsdl' )
130
130
  def wsdl2java(project, wsdls, options = {})
131
- desc "Generate java from wsdl"
132
- project.task("wsdl2java")
131
+ desc 'Generate java from wsdl'
132
+ project.task('wsdl2java')
133
133
 
134
- ws_dir = File.expand_path(options[:output_dir] || project._(:target, :generated, "ws/main/java"))
134
+ ws_dir = File.expand_path(options[:output_dir] || project._(:target, :generated, 'ws/main/java'))
135
135
  project.file(ws_dir)
136
136
  project.task('wsdl2java').enhance([ws_dir])
137
137
 
@@ -145,20 +145,20 @@ module Buildr
145
145
  project.file(java_file => [project.file(wsdl_file)]) do
146
146
  mkdir_p ws_dir
147
147
  command = []
148
- command << "wsimport"
149
- command << "-keep"
150
- command << "-Xnocompile"
151
- command << "-target"
148
+ command << 'wsimport'
149
+ command << '-keep'
150
+ command << '-Xnocompile'
151
+ command << '-target'
152
152
  command << target
153
- command << "-s"
153
+ command << '-s'
154
154
  command << ws_dir
155
- command << "-p"
155
+ command << '-p'
156
156
  command << pkg
157
157
  if config[:extension]
158
- command << "-extension"
158
+ command << '-extension'
159
159
  end
160
160
  if wsdl_location
161
- command << "-wsdllocation"
161
+ command << '-wsdllocation'
162
162
  command << wsdl_location
163
163
  end
164
164
  command << wsdl_file
@@ -168,11 +168,11 @@ module Buildr
168
168
  if $? != 0
169
169
  rm_rf java_file
170
170
  puts output
171
- raise "Problem building webservices"
171
+ raise 'Problem building webservices'
172
172
  end
173
173
  unless File.exist?(java_file)
174
174
  puts output
175
- raise "Problem building webservices"
175
+ raise 'Problem building webservices'
176
176
  end
177
177
  if output =~ /\[WARNING\]/
178
178
  puts output
data/buildr.buildfile CHANGED
@@ -22,7 +22,7 @@ repositories.remote << 'http://repo1.maven.org/maven2'
22
22
  repositories.remote << 'https://oss.sonatype.org/content/groups/scala-tools'
23
23
 
24
24
  define 'buildr' do
25
- compile.using :source=>'1.5', :target=>'1.5', :debug=>false
25
+ compile.using :source=>'1.7', :target=>'1.7', :debug=>false
26
26
 
27
27
  define 'java' do
28
28
  compile.using(:javac).from(FileList['lib/buildr/java/**/*.java']).into('lib/buildr/java')
data/buildr.gemspec CHANGED
@@ -58,17 +58,18 @@ for those one-off tasks, with a language that's a joy to use.
58
58
  # Tested against these dependencies.
59
59
  spec.add_dependency 'rake', '0.9.2.2'
60
60
  spec.add_dependency 'builder', '3.2.2'
61
- spec.add_dependency 'net-ssh', '2.7.0'
61
+ spec.add_dependency 'net-ssh', '3.1.1' if RUBY_VERSION >= '2.0.0'
62
+ spec.add_dependency 'net-ssh', '2.9.4' if RUBY_VERSION < '2.0.0'
62
63
  spec.add_dependency 'net-sftp', '2.1.2'
63
64
  # Required for sftp support under windows
64
65
  spec.add_dependency 'jruby-pageant', '1.1.1' if $platform.to_s == 'java'
65
- spec.add_dependency 'rubyzip', '0.9.9'
66
- spec.add_dependency 'json_pure', '1.8.0'
67
- spec.add_dependency 'hoe', '3.7.1'
68
- spec.add_dependency 'rjb', '1.5.1' if ($platform.to_s == 'x86-mswin32' || $platform.to_s == 'ruby')
66
+ spec.add_dependency 'rubyzip', '1.2.0'
67
+ spec.add_dependency 'json_pure', '1.8.3'
68
+ spec.add_dependency 'hoe', '3.15.0'
69
+ spec.add_dependency 'rjb', '1.5.4' if ($platform.to_s == 'x86-mswin32' || $platform.to_s == 'ruby')
69
70
  spec.add_dependency 'atoulme-Antwrap', '0.7.5'
70
- spec.add_dependency 'diff-lcs', '1.2.4'
71
- spec.add_dependency 'xml-simple', '1.1.2'
71
+ spec.add_dependency 'diff-lcs', '1.2.5'
72
+ spec.add_dependency 'xml-simple', '1.1.5'
72
73
  spec.add_dependency 'minitar', '0.5.4'
73
74
  spec.add_dependency 'jruby-openssl', '~> 0.9.16' if $platform.to_s == 'java'
74
75
  spec.add_dependency 'bundler'
@@ -77,10 +78,12 @@ for those one-off tasks, with a language that's a joy to use.
77
78
 
78
79
  # Unable to get this consistently working under jruby on windows
79
80
  unless $platform.to_s == 'java'
80
- spec.add_development_dependency 'jekyll', '0.11.2'
81
+ spec.add_development_dependency 'jekyll', '3.1.3'
81
82
  spec.add_development_dependency 'RedCloth', '4.2.9'
82
83
  spec.add_development_dependency 'jekylltask', '1.1.0'
83
- spec.add_development_dependency 'rdoc', '4.0.1'
84
+ spec.add_development_dependency 'pygments.rb', '0.6.3'
85
+ spec.add_development_dependency 'rdoc', '4.2.2'
86
+ spec.add_development_dependency 'jekyll-textile-converter', '0.1.0'
84
87
  end
85
88
 
86
89
  spec.add_development_dependency 'rspec-expectations', '2.14.3'
@@ -88,6 +91,7 @@ for those one-off tasks, with a language that's a joy to use.
88
91
  spec.add_development_dependency 'rspec-core', '2.14.5'
89
92
  spec.add_development_dependency 'rspec', '2.14.1'
90
93
  spec.add_development_dependency 'rspec-retry', '0.2.1'
94
+ spec.add_development_dependency 'test-unit', '3.2.1'
91
95
  spec.add_development_dependency 'ci_reporter', '1.9.0'
92
96
  # Ideally we would depend on psych when the platform has >= 1.9.2 support and jruby platform version > 1.6.6
93
97
  #spec.add_development_dependency 'psych' if RUBY_VERSION >= '1.9.2'
data/doc/_config.yml CHANGED
@@ -1 +1,3 @@
1
- pygments: true
1
+ highlighter: pygments
2
+ gems:
3
+ - jekyll-textile-converter
@@ -83,7 +83,7 @@
83
83
  {{ content | toc }}
84
84
  {{ content }}
85
85
  </div>
86
- <div id='footer'>Copyright &copy; 2007-2010 The Apache Software Foundation</div>
86
+ <div id='footer'>Copyright &copy; 2007-2016 The Apache Software Foundation</div>
87
87
  </div>
88
88
  </body>
89
89
  </html>
@@ -108,6 +108,12 @@ If your repository requires HTTP authentication, you can write,
108
108
  repositories.remote << URI.parse("http://user:password@repository.example.com")
109
109
  {% endhighlight %}
110
110
 
111
+ or
112
+
113
+ {% highlight ruby %}
114
+ repositories.remote << { :url => "http://repository.example.com", :user => "user", :pass => "password" }
115
+ {% endhighlight %}
116
+
111
117
  If you need to use a proxy server to access remote repositories, you can set the environment variable @HTTP_PROXY@ to the proxy server URL (use @HTTPS_PROXY@ for proxying HTTPS connections). You can also work without a proxy for certain hosts by specifying the @NO_PROXY@ environment variable. For example:
112
118
 
113
119
  {% highlight sh %}
@@ -139,6 +145,20 @@ Buildr downloads artifacts when it needs to use them, for example, to compile a
139
145
  $ buildr artifacts
140
146
  {% endhighlight %}
141
147
 
148
+ h3(#mirrors). Mirrors
149
+
150
+ You can specify mirrors to override remote repositories. This is useful when you use a Nexus proxy or Artifactory, for example.
151
+
152
+ You can use the same syntax as @repositories.remote@, for example:
153
+
154
+ {% highlight ruby %}
155
+ repositories.mirrors << 'http://corporateserver001.com/repository'
156
+ {% endhighlight %}
157
+
158
+ This is even more useful when you place this in your user settings.
159
+
160
+ See the "Settings/Profiles section":/settings_profiles.html.
161
+
142
162
 
143
163
  h2(#downloading). Downloading Artifacts
144
164
 
@@ -178,6 +198,28 @@ Since we ordered the calls to @artifact@ first and @download@ second, we know th
178
198
 
179
199
  Magic.
180
200
 
201
+ h3(#ssl). SSL and Self-signed certificates
202
+
203
+ There's always that Maven repository you learnt to hate, because it's using a faulty SSL certificate, or a self-signed one.
204
+
205
+ On top of installing that certificate everywhere, it's messing with your build!
206
+
207
+ To get out of there, you can use the environment variable SSL_CA_CERTS to point at a folder containing your certificates.
208
+ For example:
209
+
210
+ {% highlight bash %}
211
+ export SSL_CA_CERTS=/Users/john/certs
212
+ buildr package
213
+ {% endhighlight %}
214
+
215
+ You can also change the OpenSSL verify mode so it won't barf on your certificate. Use the environment variable @SSL_VERIFY_MODE@ to specify one of the following: @VERIFY_NONE@, @VERIFY_PEER@, @VERIFY_CLIENT_ONCE@, @VERIFY_FAIL_IF_NO_PEER_CERT@. See @OpenSSL::SSL@ for more info.
216
+
217
+ For example:
218
+ {% highlight bash %}
219
+ # Don't verify certificates
220
+ export SSL_VERIFY_MODE=VERIFY_NONE
221
+ buildr package
222
+ {% endhighlight %}
181
223
 
182
224
  h2(#install_upload). Install and Upload
183
225
 
data/doc/download.textile CHANGED
@@ -18,16 +18,28 @@ The source code is included in both source and binary distribution, the Gem dist
18
18
 
19
19
  h2(#dist). Binaries and Source Code
20
20
 
21
+ h3. buildr 1.4.25 (2016-04-18)
22
+
23
+ |_. Package |_. MD5 Checksum |_. PGP |
24
+ | "buildr-1.4.25-java.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.25/buildr-1.4.25-java.gem | "eecba636a7ba96863667473dbd012511":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25-java.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25-java.gem.asc |
25
+ | "buildr-1.4.25-x86-mswin32.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.25/buildr-1.4.25-x86-mswin32.gem | "139544a50c180cbcf90c542cf3c49b84":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25-x86-mswin32.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25-x86-mswin32.gem.asc |
26
+ | "buildr-1.4.25.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.25/buildr-1.4.25.gem | "81347fb7fcee450f90933b73caf07344":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25.gem.asc |
27
+ | "buildr-1.4.25.tgz":http://www.apache.org/dyn/closer.cgi/buildr/1.4.25/buildr-1.4.25.tgz | "020aadc399401b4138a53008d6632d7c":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25.tgz.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25.tgz.asc |
28
+ | "buildr-1.4.25.zip":http://www.apache.org/dyn/closer.cgi/buildr/1.4.25/buildr-1.4.25.zip | "7ca869a18fe79cc661eee40a23915806":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25.zip.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.25/buildr-1.4.25.zip.asc |
29
+
30
+ p>. ("Release signing keys":http://www.apache.org/dist/buildr/1.4.25/KEYS)
31
+
32
+
21
33
  h3. buildr 1.4.24 (2016-03-19)
22
34
 
23
35
  |_. Package |_. MD5 Checksum |_. PGP |
24
- | "buildr-1.4.24-java.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.24/buildr-1.4.24-java.gem | "9253f047f331e485309916f5863734b2":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24-java.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24-java.gem.asc |
25
- | "buildr-1.4.24-x86-mswin32.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.24/buildr-1.4.24-x86-mswin32.gem | "efac2aff46e1595eb361ef409158a929":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24-x86-mswin32.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24-x86-mswin32.gem.asc |
26
- | "buildr-1.4.24.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.24/buildr-1.4.24.gem | "5775fd509990659f98af2cf87a5f9e41":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24.gem.asc |
27
- | "buildr-1.4.24.tgz":http://www.apache.org/dyn/closer.cgi/buildr/1.4.24/buildr-1.4.24.tgz | "ab2e5cfa34cdb032efc59f73a430b23a":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24.tgz.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24.tgz.asc |
28
- | "buildr-1.4.24.zip":http://www.apache.org/dyn/closer.cgi/buildr/1.4.24/buildr-1.4.24.zip | "f7f89315d76200d8f72f921346c6e06c":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24.zip.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.24/buildr-1.4.24.zip.asc |
36
+ | "buildr-1.4.24-java.gem":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24-java.gem | "9253f047f331e485309916f5863734b2":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24-java.gem.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24-java.gem.asc |
37
+ | "buildr-1.4.24-x86-mswin32.gem":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24-x86-mswin32.gem | "efac2aff46e1595eb361ef409158a929":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24-x86-mswin32.gem.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24-x86-mswin32.gem.asc |
38
+ | "buildr-1.4.24.gem":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.gem | "5775fd509990659f98af2cf87a5f9e41":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.gem.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.gem.asc |
39
+ | "buildr-1.4.24.tgz":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.tgz | "ab2e5cfa34cdb032efc59f73a430b23a":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.tgz.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.tgz.asc |
40
+ | "buildr-1.4.24.zip":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.zip | "f7f89315d76200d8f72f921346c6e06c":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.zip.md5 | "Sig":http://archive.apache.org/dist/buildr/1.4.24/buildr-1.4.24.zip.asc |
29
41
 
30
- p>. ("Release signing keys":http://www.apache.org/dist/buildr/1.4.24/KEYS)
42
+ p>. ("Release signing keys":http://archive.apache.org/dist/buildr/1.4.24/KEYS)
31
43
 
32
44
 
33
45
  h3. buildr 1.4.23 (2015-06-12)
@@ -26,6 +26,20 @@ The Java compiler supports the following options:
26
26
  | @:target@ | Bytecode compatibility (e.g. '1.4'). |
27
27
  | @:warnings@ | Issue warnings when compiling. True when running in verbose mode. |
28
28
 
29
+ h3. ECJ
30
+
31
+ You can use the "ECJ compiler":http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-using_batch_compiler.htm instead of javac. ECJ abides to the same options as javac.
32
+ For example, to configure the project to use ECJ:
33
+ {% highlight ruby %}
34
+ compile.using :ecj
35
+ {% endhighlight %}
36
+
37
+ To use a custom version of ECJ, add an entry to your "settings":/settings_profiles.html.
38
+ For example, to set the version of ECJ to 3.5.1, add an entry to your project's @buildr.yml@:
39
+
40
+ {% highlight yaml %}
41
+ ecj: 3.5.1
42
+ {% endhighlight %}
29
43
 
30
44
  h3. Testing with Java
31
45
 
@@ -371,7 +385,7 @@ h4. Specs
371
385
 
372
386
  Specs is automatically selected whenever there are @.scala@ source files under the @src/spec/scala@ directory. It is also possible to force selection of the test framework by using the @test.using :specs@ directive. This can sometimes be useful when Scala sources may be found in *both* @src/test/scala@ and @src/spec/scala@. Normally in such cases, ScalaTest will have selection precedence, meaning that in case of a conflict between it and Specs, ScalaTest will be chosen.
373
387
 
374
- Any objects which extend the @org.specs.Specification@ superclass will be automatically detected and run. Note that any *classes* which extend @Specification@ will also be invoked. As such classes will not have a @main@ method, such an invocation will raise an error.
388
+ Any objects which extend the @org.specs.Specification@ or @org.specs2.Specification@ superclass will be automatically detected and run. Note that any *classes* which extend @Specification@ will also be invoked. As such classes will not have a @main@ method, such an invocation will raise an error.
375
389
 
376
390
  A simple specification might look like this:
377
391